Elasticsearch throw an exception unknown setting [path.conf] when start

Elasticsearch version : 7.0.0

start cmd :
./bin/elasticsearch -Epath.conf=config/instance1 -p /Users/yf/es/instance1.pid

I want to self define config dir with -Epath.conf , but throw an exception

"java.lang.IllegalArgumentException: unknown setting [path.conf] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"

can anyone help me?thanks

You can set a custom configuration directory using the ES_PATH_CONF environment variable. AFAIK the -Epath.conf method for configuring Elasticsearch was removed in version 6.

1 Like

It works.great! thanks very much.:grinning:

start cmd :
ES_PATH_CONF=config/instance1 ./bin/elasticsearch -p /Users/yf/es/instance1.pid

1 Like

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