If I restart the app, the example fs rivers are created again...
Interestingly enough, all of them get created as "dummy".
{"object":[{"name":"myfirstriver","id":"myfirstriver","type":"dummy","start":false,"indexname":"docs","typename":"doc"},{"name":"TigerRiver","id":"TigerRiver","type":"dummy","start":true,"indexname":"TigerDocs","typename":"TigerDoc"},{"name":"mysecondriver","id":"mysecondriver","type":"dummy","start":false,"indexname":"docs","typename":"doc"}],"ok":true,"errors":null}
I was thinking that it was a problem with Java 7, because it does not
includes the "jar" command (guess it was an install error that I did
not notice)
But I removed java 7 and, working with java 6, everything is quite the
same... dummy.
Then I found that individual docs have not permissions for anyone
else... So I gave the permission.
But nothing. Will not index my docs.
Then I checked the GlassFish logs once again, and found an error
telling me that the name of the river should be all lowercase.
So I delete the river and create it again...
Now the logs says it is ok (see below) but it still gets created as dummy.
[#|2013-06-15T06:43:24.435-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,435
DEBUG [RiverService]
createIndexIfNeeded(FSRiver=[id="tiger",start=true,excludes=".mp4",updateRate=1,typename="tigerdoc",name="tiger",analyzer="standard",type="fs",includes=".txt,
*.html, *.pdf, *.doc",url="/usr/local/Tiger/text_files",indexname="tigerdocs"])
|#]
[#|2013-06-15T06:43:24.437-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,435
DEBUG [ESHelper] createIndexIfNeeded(tigerdocs, tigerdoc, standard)
|#]
[#|2013-06-15T06:43:24.437-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,437
DEBUG [ESHelper] Index tigerdocs doesn't exist. Creating it.
|#]
[#|2013-06-15T06:43:24.688-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,688
DEBUG [ESHelper] Mapping [tigerdocs]/[folder] doesn't exist. Creating
it.
|#]
[#|2013-06-15T06:43:24.749-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,748
DEBUG [ESHelper] Mapping definition for [tigerdocs]/[folder]
succesfully created.
|#]
[#|2013-06-15T06:43:24.751-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,751
DEBUG [ESHelper] Mapping [tigerdocs]/[tigerdoc] doesn't exist.
Creating it.
|#]
[#|2013-06-15T06:43:24.765-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,765
DEBUG [ESHelper] Mapping definition for [tigerdocs]/[tigerdoc]
succesfully created.
|#]
[#|2013-06-15T06:43:24.765-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,765
DEBUG [ESHelper] /createIndexIfNeeded()
|#]
[#|2013-06-15T06:43:24.767-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,767
DEBUG [RiverService]
/createIndexIfNeeded(FSRiver=[id="tiger",start=true,excludes=".mp4",updateRate=1,typename="tigerdoc",name="tiger",analyzer="standard",type="fs",includes=".txt,
*.html, *.pdf, *.doc",url="/usr/local/Tiger/text_files",indexname="tigerdocs"])
|#]
[#|2013-06-15T06:43:24.768-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:24,768
DEBUG [RiverService]
checkState(FSRiver=[id="tiger",start=true,excludes=".mp4",updateRate=1,typename="tigerdoc",name="tiger",analyzer="standard",type="fs",includes=".txt,
*.html, *.pdf, *.doc",url="/usr/local/Tiger/text_files",indexname="tigerdocs"])
|#]
[#|2013-06-15T06:43:25.771-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:25,771
DEBUG [RiverService]
checkState(FSRiver=[id="tiger",start=true,excludes=".mp4",updateRate=1,typename="tigerdoc",name="tiger",analyzer="standard",type="fs",includes=".txt,
*.html, *.pdf, *.doc",url="/usr/local/Tiger/text_files",indexname="tigerdocs"])
|#]
[#|2013-06-15T06:43:26.774-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:26,774
DEBUG [RiverService]
/add(FSRiver=[id="tiger",start=true,excludes=".mp4",updateRate=1,typename="tigerdoc",name="tiger",analyzer="standard",type="fs",includes=".txt,
*.html, *.pdf, *.doc",url="/usr/local/Tiger/text_files",indexname="tigerdocs"])
|#]
[#|2013-06-15T06:43:26.776-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:26,776
DEBUG [AdminFSRiverService]
/start(FSRiver=[id="tiger",start=true,excludes=".mp4",updateRate=1,typename="tigerdoc",name="tiger",analyzer="standard",type="fs",includes=".txt,
*.html, *.pdf, *.doc",url="/usr/local/Tiger/text_files",indexname="tigerdocs"])
|#]
[#|2013-06-15T06:43:35.579-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:35,579
DEBUG [SearchService] google('globish', 0, 10)
|#]
[#|2013-06-15T06:43:35.656-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:35,656
DEBUG [SearchService] /google(globish) : 0
|#]
[#|2013-06-15T06:43:37.296-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|06:43:37,296
DEBUG [SearchService] google('globish', 0, 10)
|#]
[#|2013-06-15T06:43:37.338-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|06:43:37,338
DEBUG [SearchService] /google(globish) : 0
|#]
[#|2013-06-15T06:43:37.678-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:37,678
DEBUG [SearchService] google('globish', 0, 10)
|#]
[#|2013-06-15T06:43:37.694-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:37,694
DEBUG [SearchService] /google(globish) : 0
|#]
[#|2013-06-15T06:43:37.931-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|06:43:37,931
DEBUG [SearchService] google('globish', 0, 10)
|#]
[#|2013-06-15T06:43:37.960-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|06:43:37,960
DEBUG [SearchService] /google(globish) : 0
|#]
[#|2013-06-15T06:43:38.087-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:38,087
DEBUG [SearchService] google('globish', 0, 10)
|#]
[#|2013-06-15T06:43:38.099-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:38,099
DEBUG [SearchService] /google(globish) : 0
|#]
[#|2013-06-15T06:43:38.205-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|06:43:38,205
DEBUG [SearchService] google('globish', 0, 10)
|#]
[#|2013-06-15T06:43:38.218-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=24;_ThreadName=Thread-1;|06:43:38,218
DEBUG [SearchService] /google(globish) : 0
|#]
[#|2013-06-15T06:43:48.016-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:48,016
DEBUG [AdminRiverService] get()
|#]
[#|2013-06-15T06:43:48.019-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:48,019
DEBUG [RiverService]
checkState(org.scrutmydocs.webapp.api.settings.rivers.basic.data.BasicRiver@7c6589ea)
|#]
[#|2013-06-15T06:43:48.021-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:48,021
DEBUG [AdminRiverService]
/get()=[org.scrutmydocs.webapp.api.settings.rivers.basic.data.BasicRiver@7c6589ea]
|#]
[#|2013-06-15T06:43:48.021-0300|INFO|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|06:43:48,021
DEBUG [RiverService]
checkState(org.scrutmydocs.webapp.api.settings.rivers.basic.data.BasicRiver@7c6589ea)
|#]
Do not really know what else to check.
Thanks in advance.
2013/6/14 Fatima Castiglione Maldonado 发 castiglionemaldonado@gmail.com
Oh, excuse me, did not really take into account that pasting images could
be a problem.
- missing images
Image 1 is a print of my running processes seen usinghtop, there is a
dozen or so processes for user "elasticsearch".
Image 2 is a print of the folder permissions, belongs to root and
"everybody else" has read permission, so I understand it should be ok to be
read by the elasticsearch user processes.
- glassfish logs
not much in jvm log (30 KB), but way too many things happening
in server log (1.2 MB)
should I attach them?
- elasticsearch logs
I do not understand where to find them
do you have a logging.yml example file that you could spare?
Thanks a lot
2013/6/14 David Pilato david@pilato.fr
Hey
I can't see images 1 and 2.
BTW, you should only copy and paste text when possible.
c. when I run
http://localhost:8080/scrutmydocs-0.2.0/api/1/settings/rivers
the river is there but to me it looks strange that the river type is dummy
(should not it be fs ???)
This is really weird. I can't understand how it created a dummy river.
As far as I remember the source code, it can't happen. Do you see
anything interesting in your glass fish logs?
--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs
--
Fátima Castiglione Maldonado
castiglionemaldonado@gmail.com
____
,'_ |
____________|||
<_____ ) .------.
-----------,------.-' ,-'
-.
| | | ,' . ,' | | ,'
.
| _,-' |__ / \
_,'-' `. `---.___|_____________ \
.--' -----. | _____________________ `-. ----- |
| ___| | | \ ,- \ |
| ___| |===========================((|) | |
| | | | _____________________/ `- / |
`--._ -----' | _________________,-' ----- |
`.-._ ,' __.---' | /
| `-. | \ /
`. | | `. ,'
| | | `. ,'
____,-----------------
-. `-. _,-'
<_______________________) ------' | _| |
.|
=================================
--
Fátima Castiglione Maldonado
castiglionemaldonado@gmail.com
____
,'_ |
|||
< ) .------.
-----------,------.-' ,-'
-.
| | | ,' . ,' | | ,'
.
| ,-' | /
,'-' .
---.|_________
.--' -----. | _____________________ -. ----- | | ___| | | \ ,- \ | | ___| |===========================((|) | | | | | | _____________________/
- / |
--._ -----' | _________________,-' ----- |
.-._ ,' __.---' | /
| -. | \ /
. | | . ,' | | |
. ,'
_____,-----------------
-. -._ _,-' <___________________________)
------'
| | |
`.___|
=================================
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.