So probably a permission issue.
change owner of file to be the same as the one who runs elasticsearch.

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 20 décembre 2013 at 12:48:45, swapnil joshi ([email protected]) a 
écrit:

Now i have change file location and create new curl request

at that time i have check log

[2013-12-20 17:13:01,192][INFO ][river.wikipedia          ] [Hermes] 
[wikipedia][wikipedia] starting wikipedia stream
[2013-12-20 17:13:01,266][INFO ][cluster.metadata         ] [Hermes] 
[wikipedia] creating index, cause [api], shards [1]/[0], mappings []
[2013-12-20 17:13:01,301][ERROR][river.wikipedia          ] [Hermes] 
[wikipedia][wikipedia] failed to parse stream
java.io.FileNotFoundException: /opt/wiki/enwiki-20131202-pages-articles.xml.bz2 
(Permission denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:137)
        at java.io.FileInputStream.<init>(FileInputStream.java:96)
        at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:87)
        at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:178)
        at java.net.URL.openStream(URL.java:1031)
        at 
org.elasticsearch.river.wikipedia.support.WikiXMLParser.getInputSource(WikiXMLParser.java:77)
        at 
org.elasticsearch.river.wikipedia.support.WikiXMLSAXParser.parse(WikiXMLSAXParser.java:68)
        at 
org.elasticsearch.river.wikipedia.WikipediaRiver$Parser.run(WikipediaRiver.java:192)
        at java.lang.Thread.run(Thread.java:679)
[2013-12-20 17:13:01,362][INFO ][cluster.metadata         ] [Hermes] [_river] 
update_mapping [wikipedia] (dynamic)

my log status as like this

but i had given all file permission to xxx.bz2 file.

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAFBccRDoiLtcKJo%2BmVgKWb9AxC-iwRr_XHQPoc%3DYHZG2FrQtuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.52b4368d.d34b6a8.111%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to