I have an application that requires ElasticSearch as one of its components to work with the application. After successfully installing ElasticSearch, my application wants me to run the CURL -XGET command from another server. When I run the command from another server I get curl: (7) Failed connect to "ipaddressfromESserver":9200 Connection refused. I also get the same error message on the server that has ES installed. ElasticSearch 2.4 is hosted on Red Hat 7.2.
What are the potential reasons why I am experiencing this issue?
Hello when I type "ipaddressfromESServer" in this forum, I am referring to the ip address of the server. What is consider the localhost? Is the 127.0.0.1 address or you referring to the ip address of the where ES is installed?
Thanks for providing the info. I check out localhost earlier. In regards to my issues, I change the network.host to 0.0.0.0. When I enter the following I still receive an error message: [root@OUSNWA2H elasticsearch]# curl -XGET OUSNWA2H:9200
curl: (7) Failed connect to OUSNWA2H:9200; Connection refused
[root@OUSNWA2H elasticsearch]#
How can I get the curl command to use the servername provided. How can I also used the same command with the servername in the syntax from another server?
[root@OUSNWA2H elasticsearch]# vi elasticsearch.log.2018-02-15
[2018-02-15 11:53:37,096][INFO ][node ] [Watcher] stopping ...
[2018-02-15 11:53:37,115][INFO ][node ] [Watcher] stopped
[2018-02-15 11:53:37,115][INFO ][node ] [Watcher] closing ...
[2018-02-15 11:53:37,122][INFO ][node ] [Watcher] closed
[2018-02-15 11:53:38,033][INFO ][node ] [Jawynn Dueck the Iron Christian of Faith] version[2.4.0], pid[29223], build[ce9f0c7/2016-08-29T09:14:17Z]
[2018-02-15 11:53:38,034][INFO ][node ] [Jawynn Dueck the Iron Christian of Faith] initializing ...
[2018-02-15 11:53:38,673][INFO ][plugins ] [Jawynn Dueck the Iron Christian of Faith] modules [reindex, lang-expression, lang-groovy], plugins [], sites []
[2018-02-15 11:53:38,701][INFO ][env ] [Jawynn Dueck the Iron Christian of Faith] using [1] data paths, mounts [[/var (/dev/mapper/rootvg-var)]], net usable_space [5.6gb], net total_space [6.4gb], spins? [possibly], types [xfs]
[2018-02-15 11:53:38,701][INFO ][env ] [Jawynn Dueck the Iron Christian of Faith] heap size [990.7mb], compressed ordinary object pointers [true]
[2018-02-15 11:53:40,668][INFO ][node ] [Jawynn Dueck the Iron Christian of Faith] initialized
[2018-02-15 11:53:40,668][INFO ][node ] [Jawynn Dueck the Iron Christian of Faith] starting ...
[2018-02-15 11:53:40,741][INFO ][transport ] [Jawynn Dueck the Iron Christian of Faith] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2018-02-15 11:53:40,748][INFO ][discovery ] [Jawynn Dueck the Iron Christian of Faith] elasticsearch/bMO39iuVQyaFHsxXTnxquA
[2018-02-15 11:53:43,803][INFO ][cluster.service ] [Jawynn Dueck the Iron Christian of Faith] new_master {Jawynn Dueck the Iron Christian of Faith}{bMO39iuVQyaFHsxXTnxquA}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
/[root@OUSNWA2H elasticsearch]# vi elasticsearch.log
[2018-02-16 10:19:05,405][WARN ][http.netty ] [Professor X] Caught exception while handling client http traffic, closing connection [id: 0xab749283, /0:0:0:0:0:0:0:1:56482 => /0:0:0:0:0:0:0:1:9200]
java.lang.IllegalArgumentException: empty text
at org.jboss.netty.handler.codec.http.HttpVersion.(HttpVersion.java:89)
at org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.java:62)
at org.jboss.netty.handler.codec.http.HttpRequestDecoder.createMessage(HttpRequestDecoder.java:75)
at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:191)
at org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMessageDecoder.java:102)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:485)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:75)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)/
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.