As the title asks, is it possible to start Elasticsearch in the foreground in Windows? I have Elasticsearch running as a service on a non standard port on my workstation, and I occasionally need to look into datasets from other servers. Can I start Elasticsearch with some command line parameters to specify a port to bind to, and a data folder/cluster name to use?
Everything I found in the docs involved installing Elasticsearch as a service, which I would like to avoid if possible.
Yes, you can. Just use the bin/elasticsearch.bat script that is provided with the archive distributions. The command line parameters you're looking for are covered in the docs (look for network.host, http.port, transport.tcp.port, path.data, and cluster.name).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.