I am following elastic guideto install xpack. (ref: https://www.elastic.co/guide/en/elasticsearch/reference/6.2/installing-xpack-es.html)
but when i try to setup-password (command : bin/x-pack/setup-passwords interactive) i get the following error :
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8946; nested exception is:
java.net.BindException: Address already in use (Bind failed)
The port seems to be used to by elasticsearch itself. this port is in use when i start elasticsearch which is as per step 6 in the guide.
is that we need to shut elasticsearch while setting up the password ?