ERROR: D is not a recognized option


(Stecino) #1

Hello,

Here is snippet from my init script that kicks off elasticsearch as daemon service on Centos6

  • set 'ES_JAVA_OPTS= -Xms6g -Xmx6g'
  • echo -n 'Starting elasticsearch: '
    Starting elasticsearch: + daemon --user t --pidfile /home/t/elasticsearch-5.4.1-red/var/run/elasticsearch.pid /home/t/elasticsearch-5.4.1-red/bin/elasticsearch -p /home/t/elasticsearch-5.4.1-red/var/run/elasticsearch.pid -d -Des.default.path.home=/home/t/elasticsearch-5.4.1-red -Des.default.path.logs=/home/t/elasticsearch-5.4.1-red/logs -Des.default.path.data=/home/t/elasticsearch-5.4.1-red/data -Des.default.path.work=/home/t/elasticsearch-5.4.1-red/tmp -Des.default.path.conf=/home/t/elasticsearch-5.4.1-red/config

It appears as if elasticsearch starts

Then I get:

starts elasticsearch

Option Description


-E Configure a setting
-V, --version Prints elasticsearch version information and exits
-d, --daemonize Starts Elasticsearch in the background
-h, --help show help
-p, --pidfile Creates a pid file in the specified path on start
-q, --quiet Turns off standard ouput/error streams logging in console
-s, --silent show minimal output
-v, --verbose show verbose output
ERROR: D is not a recognized option


(David Pilato) #2

-Des.xxx has been replaced by -Exxx


(system) #3

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