not able to start elasticsearch after installing search guard plugin

I am new to elasticsearch and safe guard. here i wanted to implement HTTPS for elasticsearch. i mean SSL/TLS communication between logstash and elasticsearch .

i tried to install safe-guard plugin
steps followed :

  1. cloned code from https://github.com/floragunncom/search-guard.git
    2)built using command mvn package -DskipTests
    3)installed plugin using following command
    " bin/plugin -u file:/root/madhu/elasticsearch-1.6.0/search-guard/target/releases/search-guard-0.6-SNAPSHOT.zip -i search-guard "

after that when i tried to run elasticsearch using bin/elasticsearch i got this

"{1.6.0}: Initialization Failed …

  • ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder] NoClassDefFoundError[org/elasticsearch/common/ContextHolder] ClassNotFoundException[org.elasticsearch.common.ContextHolder] "

if i download zip

** i get follwing message when i start elasticsearch

{1.6.0}: Initialization Failed …

  1. ElasticsearchException[You’re trying to run elasticsearch as root or Windows Administrator and thats forbidden.]

please help me in this regard.

Thanks in advance.

You are trying to start ElasticSearch as an administrator of the server.
If you want to do so, make sure that in your elasticsearch.yml:

searchguard.check_for_root: false
If you are planning on running your cluster in production you should create a separate account that will start the nodes. If elasticsearch may be compromised someone could run arbitrary code on your machine.

···

On Monday, June 29, 2015 at 8:24:10 PM UTC+2, MADHUSUDAN D wrote:

I am new to elasticsearch and safe guard. here i wanted to implement HTTPS for elasticsearch. i mean SSL/TLS communication between logstash and elasticsearch .

i tried to install safe-guard plugin
steps followed :

  1. cloned code from https://github.com/floragunncom/search-guard.git
    2)built using command mvn package -DskipTests
    3)installed plugin using following command
    " bin/plugin -u file:/root/madhu/elasticsearch-1.6.0/search-guard/target/releases/search-guard-0.6-SNAPSHOT.zip -i search-guard "

after that when i tried to run elasticsearch using bin/elasticsearch i got this

"{1.6.0}: Initialization Failed …

  • ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder] NoClassDefFoundError[org/elasticsearch/common/ContextHolder] ClassNotFoundException[org.elasticsearch.common.ContextHolder] "

if i download zip

** i get follwing message when i start elasticsearch

{1.6.0}: Initialization Failed …

  1. ElasticsearchException[You’re trying to run elasticsearch as root or Windows Administrator and thats forbidden.]

please help me in this regard.

Thanks in advance.

1) for ES 1.6 you need to pull the es1.6 branch from here https://github.com/floragunncom/search-guard/tree/es1.6
2) don't start ES as root or windows admin (if you have to do so the see anwer from simon)

···

Am 29.06.2015 um 20:24 schrieb MADHUSUDAN D <madhumi4321@gmail.com>:

I am new to elasticsearch and safe guard. here i wanted to implement HTTPS for elasticsearch. i mean SSL/TLS communication between logstash and elasticsearch .

i tried to install safe-guard plugin
steps followed :
1) cloned code from https://github.com/floragunncom/search-guard.git
2)built using command mvn package -DskipTests
3)installed plugin using following command
" bin/plugin -u file:/root/madhu/elasticsearch-1.6.0/search-guard/target/releases/search-guard-0.6-SNAPSHOT.zip -i search-guard "

after that when i tried to run elasticsearch using bin/elasticsearch i got this

"{1.6.0}: Initialization Failed ...

  • ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/common/ContextHolder] NoClassDefFoundError[org/elasticsearch/common/ContextHolder] ClassNotFoundException[org.elasticsearch.common.ContextHolder] "

if i download zip
** i get follwing message when i start elasticsearch
{1.6.0}: Initialization Failed ...
1) ElasticsearchException[You're trying to run elasticsearch as root or Windows Administrator and thats forbidden.]

please help me in this regard.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Search Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.
To post to this group, send email to search-guard@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/c3b307da-8714-4c3b-bb54-83336de1bf3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.