created a wrapper for elastic search. it working fine while running as java
application. But while i create OSGI bundle it throwing a error.
Errror:
org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve
config path [names.txt], tried file path [names.txt], path file
[/home/local/user/sidharthan.r/config/names.txt], and classpath
at org.elasticsearch.env.Environment.resolveConfig(Environment.java:207)
at
org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:118)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:154)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:120)
at
com.payoda.commons.elasticsearch.util.GenericEsSearch.getES(GenericEsSearch.java:54)
if i copy names.txt file from elasticsearch.jar to path [/home/local/user/sidharthan.r/config/names.txt]
it working fine.. But how to change default path to custom path or how can
i point out the names.txt inside elasticsearch.jar/config/names.txt
i dont have an awful lot of osgi experience, but a valid workaround might
be to set the "node.name" setting by yourself, when initializing the
TransportClient, as this should prevent trying to load the names.txt file
created a wrapper for Elasticsearch. it working fine while running as
java application. But while i create OSGI bundle it throwing a error.
Errror:
org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve
config path [names.txt], tried file path [names.txt], path file
[/home/local/user/sidharthan.r/config/names.txt], and classpath
at org.elasticsearch.env.Environment.resolveConfig(Environment.java:207)
at
org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:118)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:154)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:120)
at
com.payoda.commons.elasticsearch.util.GenericEsSearch.getES(GenericEsSearch.java:54)
if i copy names.txt file from elasticsearch.jar to path [/home/local/user/sidharthan.r/config/names.txt]
it working fine.. But how to change default path to custom path or how can
i point out the names.txt inside elasticsearch.jar/config/names.txt
If i create one node means it easy to mention name to node. But, In multi
node Environment, i need to create more than one node. That time i cant
mention node name to TransportClient each time. Please Suggest me some
thing else.
Many Thanks,
Sidharthan C R
On Thu, Feb 6, 2014 at 3:40 PM, Alexander Reelsen alr@spinscale.de wrote:
Hey,
i dont have an awful lot of osgi experience, but a valid workaround might
be to set the "node.name" setting by yourself, when initializing the
TransportClient, as this should prevent trying to load the names.txt file
created a wrapper for Elasticsearch. it working fine while running as
java application. But while i create OSGI bundle it throwing a error.
Errror:
org.elasticsearch.env.FailedToResolveConfigException: Failed to resolve
config path [names.txt], tried file path [names.txt], path file
[/home/local/user/sidharthan.r/config/names.txt], and classpath
at org.elasticsearch.env.Environment.resolveConfig(Environment.java:207)
at
org.elasticsearch.node.internal.InternalSettingsPreparer.prepareSettings(InternalSettingsPreparer.java:118)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:154)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:120)
at
com.payoda.commons.elasticsearch.util.GenericEsSearch.getES(GenericEsSearch.java:54)
if i copy names.txt file from elasticsearch.jar to path [/home/local/user/sidharthan.r/config/names.txt]
it working fine.. But how to change default path to custom path or how can
i point out the names.txt inside elasticsearch.jar/config/names.txt
--
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.