elatisctserchh和solr哪个好

How to run Elasticsearch 2.1.1 as root user in Linux machine - Stack Overflow
Stack Overflow Salary Calculator
Find out what developers like you are earning.
Learn, Share, Build
Each month, over 50 million developers come to Stack Overflow to learn, share their knowledge, and build their careers.
Join the world’s largest developer community.
I am trying to run Elasticsearch 2.1.1 in my Linux machine which I am the root user of it.
When I tried to execute the Elasticsearch.I am getting the following error,
Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
I referred some suggestion available in internet, they mentioned to run it as different user. My scenario is to run as root user only. How to overcome this problem without running as different user.
Thanks in advance
Based of the following
looks like you should be able to achieve this by
enabling property
es.insecure.allow.root
bin/elasticsearch -Des.insecure.allow.root=true
11.3k32736
Open script file:
vi bin/elasticsearch
Add property for allow root:
ES_JAVA_OPTS="-Des.insecure.allow.root=true"
Save and close.
You can start by root now.
Good luck.
You can also create alias
alias elasticsearch='elasticsearch -Des.insecure.allow.root=true'
Add above line in bashrc file, After that elasticsearch command will work.
You should change the owner and group of the elasticsearch-X.X.X and run as that user. It works in elasticsearch-5.3.0
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledPowering Data Search, Log Analysis, Analytics
powered by
Reliably and securely take data from any source, in any format, and
search, analyze, and visualize it in real time.
Get product updates.
Ingest any data, from any source, in any format.
Ingest any data, from any source, in any format.
Beats is a platform for lightweight shippers that send&data from edge machines to Logstash and Elasticsearch.
Logstash is a dynamic data collection pipeline with an extensible plugin ecosystem&and strong Elasticsearch synergy.
Beats is a platform for lightweight shippers that send&data from edge machines to Logstash and Elasticsearch.
X-Pack is a single extension that integrates handy features — , , , , , and
— you can trust across the Elastic Stack.
Public cloud, private cloud, or somewhere in between — we make it easy for you to run and manage the Elastic Stack and X-Pack.
As a Service
The Elasticsearch as a service offering that lets you spin up and scale the latest versions of the Elastic Stack and X-Pack with ease.
Enterprise
Centralize management of the Elastic Stack and X-Pack. Download and deploy on the infrastructure you choose.
Sometimes&the best way to see the value in something is to dive right in and play.
Thanks for subscribing! We'll keep you updated with new releases.

我要回帖

更多关于 elasticserch 的文章

 

随机推荐