Getting exception Failed to find localhost?


(Sam-4) #1

Hi

I'm installed elastic-search-0.16.2 server in Debian operating
system.when I creating node i got below exception:

2011-08-21 14:08:11 WARN network:91 - Failed to find local host
java.net.UnknownHostException: ar01: ar01
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at
org.elasticsearch.common.network.NetworkUtils.(NetworkUtils.java:
53)
at
org.elasticsearch.transport.netty.NettyTransport.(NettyTransport.java:
165)
at org.elasticsearch.transport.netty.NettyTransport$$FastClassByGuice$
$6dc47ed3.newInstance()
at
org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:
40)
at org.elasticsearch.common.inject.DefaultConstructionProxyFactory
$1.newInstance(DefaultConstructionProxyFactory.java:60)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
85)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:
56)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:
56)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:
56)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at
org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at
org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at
org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at
org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at
org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at org.elasticsearch.common.inject.InjectorBuilder
$1.call(InjectorBuilder.java:200)
at org.elasticsearch.common.inject.InjectorBuilder
$1.call(InjectorBuilder.java:194)
at
org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
804)
at
org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:
194)
at
org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:
176)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:
113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:
92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:
69)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:
58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:
147)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.arosys.doqeap.businesslogic.Search.createNode(Search.java:37)
at
com.arosys.doqeap.businesslogic.MatchingService.init(MatchingService.java:
38)
at
com.arosys.doqeap.businesslogic.BusinessLogic.init(BusinessLogic.java:
31)
at
com.arosys.doqeap.handlers.workerhandlers.MQ2MQWorker.init(MQ2MQWorker.java:
107)
at
com.arosys.doqeap.handlers.masterhandlers.MQ2MQServiceMaster.startServiceHandlerWorkers(MQ2MQServiceMaster.java:
156)
at
com.arosys.doqeap.handlers.masterhandlers.MQ2MQServiceMaster.startServiceHandlerMaster(MQ2MQServiceMaster.java:
140)
at
com.arosys.doqeap.servicemanager.ServiceManager.startServiceHandlerMaster(ServiceManager.java:
217)
at
com.arosys.doqeap.servicemanager.ServiceManager.init(ServiceManager.java:
398)
at
com.arosys.doqeap.servicemanager.ServiceManager.main(ServiceManager.java:
430)

I did setting for host in /etc/elastic-search/elasticsearch.yml
file,but after setting the host,this exception come same.I want to
know there is another place to change the HostIP address in place of
localhost and how can resolve this exception.

Thanks


(Paul Brown) #2

On Sun, Aug 21, 2011 at 9:45 PM, sam mishra.sameek@gmail.com wrote:

I'm installed elastic-search-0.16.2 server in Debian operating
system.when I creating node i got below exception:

2011-08-21 14:08:11 WARN network:91 - Failed to find local host
java.net.UnknownHostException: ar01: ar01

On a Linux system, if you're referring to localhost by another name
(e.g., "ar01"), make sure you have that hostname properly declared in
your /etc/hosts file.

-- Paul


(Shay Banon) #3

What did you set in the configuration? network.host? This always gets
logged, regardless of hte setting, you should ignore it. I will push a
change so it won't be logged under warn level.

On Mon, Aug 22, 2011 at 7:45 AM, sam mishra.sameek@gmail.com wrote:

Hi

I'm installed elastic-search-0.16.2 server in Debian operating
system.when I creating node i got below exception:

2011-08-21 14:08:11 WARN network:91 - Failed to find local host
java.net.UnknownHostException: ar01: ar01
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at
org.elasticsearch.common.network.NetworkUtils.(NetworkUtils.java:
53)
at

org.elasticsearch.transport.netty.NettyTransport.(NettyTransport.java:
165)
at
org.elasticsearch.transport.netty.NettyTransport$$FastClassByGuice$
$6dc47ed3.newInstance()
at

org.elasticsearch.common.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:
40)
at org.elasticsearch.common.inject.DefaultConstructionProxyFactory
$1.newInstance(DefaultConstructionProxyFactory.java:60)
at

org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
85)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at

org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at

org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at
org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:
56)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at

org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at

org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at

org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at

org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at

org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at

org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at

org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at

org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at

org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at

org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:
56)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at

org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at

org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at

org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at

org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at

org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at

org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at

org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at

org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at

org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at

org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at
org.elasticsearch.common.inject.FactoryProxy.get(FactoryProxy.java:
56)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at

org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at

org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at

org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:
42)
at

org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:
66)
at

org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:
84)
at org.elasticsearch.common.inject.ConstructorBindingImpl
$Factory.get(ConstructorBindingImpl.java:111)
at org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter
$1.call(ProviderToInternalFactoryAdapter.java:45)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
811)
at

org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:
42)
at org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:54)
at

org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:
48)
at org.elasticsearch.common.inject.InjectorBuilder
$1.call(InjectorBuilder.java:200)
at org.elasticsearch.common.inject.InjectorBuilder
$1.call(InjectorBuilder.java:194)
at

org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:
804)
at

org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:
194)
at

org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:
176)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:
113)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:
92)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:
69)
at

org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:
58)
at
org.elasticsearch.node.internal.InternalNode.(InternalNode.java:
147)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:166)
at com.arosys.doqeap.businesslogic.Search.createNode(Search.java:37)
at
com.arosys.doqeap.businesslogic.MatchingService.init(MatchingService.java:
38)
at
com.arosys.doqeap.businesslogic.BusinessLogic.init(BusinessLogic.java:
31)
at

com.arosys.doqeap.handlers.workerhandlers.MQ2MQWorker.init(MQ2MQWorker.java:
107)
at

com.arosys.doqeap.handlers.masterhandlers.MQ2MQServiceMaster.startServiceHandlerWorkers(MQ2MQServiceMaster.java:
156)
at

com.arosys.doqeap.handlers.masterhandlers.MQ2MQServiceMaster.startServiceHandlerMaster(MQ2MQServiceMaster.java:
140)
at

com.arosys.doqeap.servicemanager.ServiceManager.startServiceHandlerMaster(ServiceManager.java:
217)
at
com.arosys.doqeap.servicemanager.ServiceManager.init(ServiceManager.java:
398)
at
com.arosys.doqeap.servicemanager.ServiceManager.main(ServiceManager.java:
430)

I did setting for host in /etc/elastic-search/elasticsearch.yml
file,but after setting the host,this exception come same.I want to
know there is another place to change the HostIP address in place of
localhost and how can resolve this exception.

Thanks


(system) #4