not able to start elasticsearch after installing search guard plugin

586 views
Skip to first unread message

MADHUSUDAN D

unread,
Jun 29, 2015, 2:24:10 PM6/29/15
to search...@googlegroups.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.

simon....@gmail.com

unread,
Jun 30, 2015, 7:46:21 AM6/30/15
to search...@googlegroups.com
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.

SG

unread,
Jul 1, 2015, 9:34:11 AM7/1/15
to search...@googlegroups.com
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)
> --
> 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...@googlegroups.com.
> To post to this group, send email to search...@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.

Reply all
Reply to author
Forward
0 new messages