elasticsearch - Elastic: Failed to resolve config path -
i'm banging head against screen problem. i'm trying configure stopwords index. works on local system, ubuntu system.
using elastic 1.7.2
curl -x post -h "content-type: application/json" -h "cache-control: no-cache" -h "postman-token: 34bbe264-ad79-de46-d5cd-293c5a9a1584" -d '{ "settings": { "analysis": { "analyzer": { "my_english": { "type": "english", "stopwords_path": "stopwords/stopwords_en.txt" } } } } }' 'http://10.40.1.55:9200/my_index'
this trace caused using java api (both curl , java produce error)
caused by: org.elasticsearch.env.failedtoresolveconfigexception: failed resolve config path [/stopwords/stopwords_en.txt], tried file path [/stopwords/stopwords_en.txt], path file [/etc/elasticsearch/stopwords/stopwords_en.txt], , classpath @ org.elasticsearch.env.environment.resolveconfig(environment.java:213) @ org.elasticsearch.index.analysis.analysis.getwordlist(analysis.java:230) @ org.elasticsearch.index.analysis.analysis.parsewords(analysis.java:165) @ org.elasticsearch.index.analysis.analysis.parsestopwords(analysis.java:185) @ org.elasticsearch.index.analysis.analysis.parsestopwords(analysis.java:181) @ org.elasticsearch.index.analysis.standardanalyzerprovider.<init>(standardanalyzerprovider.java:53) @ sun.reflect.generatedconstructoraccessor135.newinstance(unknown source) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:526) @ org.elasticsearch.common.inject.defaultconstructionproxyfactory$1.newinstance(defaultconstructionproxyfactory.java:54) @ org.elasticsearch.common.inject.constructorinjector.construct(constructorinjector.java:86) @ org.elasticsearch.common.inject.constructorbindingimpl$factory.get(constructorbindingimpl.java:98) @ org.elasticsearch.common.inject.factoryproxy.get(factoryproxy.java:52) @ org.elasticsearch.common.inject.injectorimpl$5$1.call(injectorimpl.java:781) @ org.elasticsearch.common.inject.injectorimpl.callincontext(injectorimpl.java:837) @ org.elasticsearch.common.inject.injectorimpl$5.get(injectorimpl.java:777) @ org.elasticsearch.common.inject.assistedinject.factoryprovider2.invoke(factoryprovider2.java:221) @ com.sun.proxy.$proxy18.create(unknown source)
permissions on /etc/elasticsearch wide open.
drwxrwxrwx 3 root root 4096 sep 30 15:03 ./ drwxr-xr-x 111 root root 4096 sep 18 16:01 ../ -rwxrwxrwx 1 root root 13476 apr 27 10:07 elasticsearch.yml* -rwxrwxrwx 1 root root 2054 sep 14 11:51 logging.yml* -rwxr--r-- 1 root root 4588 sep 30 15:03 stopwords_en.txt*
there nothing in elasticsearch.log
any insight appreciated.
this result of clustering while didn't know. installed elastic project on same network.
the log states found master
[2015-09-30 15:34:30,498][info ][cluster.service ] [bedlam ii] detected_master [abominatrix][cihwaycjtzufgmb4cw0utq][p-v00284][inet[/10.40.1.54:9300]], added {[abominatrix][cihwaycjtzufgmb4cw0utq][p-v00284][inet[/10.40.1.54:9300]],}, reason: zen-disco-receive(from master [[abominatrix][cihwaycjtzufgmb4cw0utq][p-v00284][inet[/10.40.1.54:9300]]]) [2015-09-30 15:34:30,642][info ][http ] [bedlam ii] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/10.40.1.55:9200]}
Comments
Post a Comment