How to config in command agruments

So, as the title, here's what i have tried:
./elasticsearch -E -E -E http.port=9200 -E[""]

the reason for this is i want to setup 2 node in one machine and i really want to config it as command agrument, not in config file. i have work with this error for hours.

and here is the result: invalid IPv6 address at ~[?:1.8.0_121] at ~[?:1.8.0_121] at org.elasticsearch.transport.TcpTransport.parse( ~[elasticsear at org.elasticsearch.transport.TcpTransport.addressesFromString( at org.elasticsearch.transport.TransportService.addressesFromString(TransportService.j at org.elasticsearch.discovery.zen.UnicastZenPing.lambda$null$0( at ~[?:1.8.0_121] at org.elasticsearch.common.util.concurrent.ThreadContext$ at java.util.concurrent.ThreadPoolExecutor.runWorker( [?: at java.util.concurrent.ThreadPoolExecutor$ [?: at [?:1.8.0_121]

please anyone show me what i'm missing?
Thanks so much.

There are a few issues with the value

  1. There is no need to set the unicast hosts for localhost. Elasticsearch will properly find locally running nodes.
  2. The value does not accepts port ranges. Actually you should not be specifying any port at all in unicast hosts setting.
  3. The port range 9200 is for http connection. For transportation connection the default range is 9300.

So just remove the and it will start (and also connect to other locally running nodes)

removing solves my problem!
Thank you thiago.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.