java lang IllegalArgumentException Invalid bracketed host port range

0 votes

Hi Guys,

I am trying to start the ElasticSearch server in my Linux system. But it is showing me the below error.

[2020-06-19][WARN ][o.e.d.z.UnicastZenPing   ] [ElasticSearch-i-051b2c3eea79d3f62] failed to resolve host [[ElasticSearch-i-036a95f01a737f4a2]
java.lang.IllegalArgumentException: Invalid bracketed host/port range: [ElasticSearch-i-036a95f01a737f4a2
        at org.elasticsearch.transport.TcpTransport.parse(TcpTransport.java:871) ~[elasticsearch-5.4.1.jar:5.4.1]
        at org.elasticsearch.transport.TcpTransport.addressesFromString(TcpTransport.java:852) ~[elasticsearch-5.4.1.jar:5.4.1]
        at org.elasticsearch.transport.TransportService.addressesFromString(TransportService.java:674) ~[elasticsearch-5.4.1.jar:5.4.1]
        at org.elasticsearch.discovery.zen.UnicastZenPing.lambda$null$0(UnicastZenPing.java:213) ~[elasticsearch-5.4.1.jar:5.4.1]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_111]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) [elasticsearch-5.4.1.jar:5.4.1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_111]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
Jun 19, 2020 in ELK Stack by akhtar
• 38,260 points
2,051 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to set the hostname in the elasticsearch.yml file. You can use the below-given code in your elasticsearch.yml file.

cluster.name: elasticsearch
node.name: node1
path.conf: "/etc/elasticsearch"
path.data: "/vol/data/elasticsearch"
path.logs: "/vol/log/elasticsearch"
network.host: 0.0.0.0
http.port: 9200

I hope this will help.

answered Jun 19, 2020 by MD
• 95,460 points

Related Questions In ELK Stack

+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,063 views
+2 votes
1 answer
0 votes
1 answer

java.lang.RuntimeException: can not run elasticsearch as root

Hi@akhtar, ElasticSearch will not require root privilege to ...READ MORE

answered Jun 19, 2020 in ELK Stack by MD
• 95,460 points
20,262 views
0 votes
1 answer

Hadoop: java.lang.IllegalArgumentException: Wrong FS: expected: file:///

Try this: Configuration configuration = new Configuration(); FileSystem fs ...READ MORE

answered Dec 12, 2018 in Big Data Hadoop by Omkar
• 69,220 points
7,883 views
0 votes
1 answer
0 votes
2 answers

java.lang.StringIndexOutOfBoundsException: String index out of range: 1

When using the Java substring() method, a ...READ MORE

answered Mar 13, 2020 in Apache Spark by evanbung
• 180 points
7,688 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP