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( ~[elasticsearch-5.4.1.jar:5.4.1]
        at org.elasticsearch.transport.TcpTransport.addressesFromString( ~[elasticsearch-5.4.1.jar:5.4.1]
        at org.elasticsearch.transport.TransportService.addressesFromString( ~[elasticsearch-5.4.1.jar:5.4.1]
        at org.elasticsearch.discovery.zen.UnicastZenPing.lambda$null$0( ~[elasticsearch-5.4.1.jar:5.4.1]
        at ~[?:1.8.0_111]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ [elasticsearch-5.4.1.jar:5.4.1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_111]
        at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_111]
        at [?:1.8.0_111]
Jun 19, 2020 in ELK Stack by akhtar
• 38,210 points

1 answer to this question.

0 votes


You need to set the hostname in the elasticsearch.yml file. You can use the below-given code in your elasticsearch.yml file. elasticsearch node1
path.conf: "/etc/elasticsearch" "/vol/data/elasticsearch"
path.logs: "/vol/log/elasticsearch"
http.port: 9200

I hope this will help.

answered Jun 19, 2020 by MD
• 95,300 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
+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,300 points
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,170 points
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