Skip to content

Instantly share code, notes, and snippets.

@arcolife
Created December 21, 2017 11:32
Show Gist options
  • Save arcolife/8b98c557bf2957d24022222bf5f86f8b to your computer and use it in GitHub Desktop.
Save arcolife/8b98c557bf2957d24022222bf5f86f8b to your computer and use it in GitHub Desktop.
elasticsearch commandline option differences in 1.7.x and 6.1.x

ES 1.7.x rpm

$ /usr/share/elasticsearch/bin/elasticsearch --help

Usage: /usr/share/elasticsearch/bin/elasticsearch [-vdh] [-p pidfile] [-D prop] [-X prop]
Start elasticsearch.
    -d            daemonize (run in background)
    -p pidfile    write PID to <pidfile>
    -h
    --help        print command line options
    -v            print elasticsearch version, then exit
    -D prop       set JAVA system property
    -X prop       set non-standard JAVA system property
   --prop=val
   --prop val     set elasticsearch property (i.e. -Des.<prop>=<val>)

ES 6.1.x rpm

$ /usr/share/elasticsearch/bin/elasticsearch --help
starts elasticsearch

Option                Description                                               
------                -----------                                               
-E <KeyValuePair>     Configure a setting                                       
-V, --version         Prints elasticsearch version information and exits        
-d, --daemonize       Starts Elasticsearch in the background                    
-h, --help            show help                                                 
-p, --pidfile <Path>  Creates a pid file in the specified path on start         
-q, --quiet           Turns off standard output/error streams logging in console
-s, --silent          show minimal output                                       
-v, --verbose         show verbose output   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment