1

I'm trying to deploy elasticSearch on my EC2 instance, but I got this error :

    [2014-04-04 12:23:30,499][INFO ][node                     ] [Franklin Hall] version[1.0.1], pid[4516], build[5c03844/2014-02-25T15:52:53Z]
    [2014-04-04 12:23:30,500][INFO ][node                     ] [Franklin Hall] initializing ...
    [2014-04-04 12:23:30,531][INFO ][plugins                  ] [Franklin Hall] loaded [cloud-aws], sites []
    {1.0.1}: Initialization Failed ...
    - ExecutionError[java.lang.NoClassDefFoundError: org/elasticsearch/ElasticSearchIllegalArgumentException]
    NoClassDefFoundError[org/elasticsearch/ElasticSearchIllegalArgumentException]
    ClassNotFoundException[org.elasticsearch.ElasticSearchIllegalArgumentException]

when I launch ElasticSearch with the command

sudo bin/elasticsearch -Xss256k -Xmx2048m

Here is my installed versions :

Elastic Search 1.0.1
Elasticsearch-cloud-aws 1.0.0

Do you guys have any idea of what is going wrong ?

4

2 回答 2

6

I had the same problem. With me it was, that I installed from Ubuntu repositories and followed the tutorials that suggested installation of elasticsearch/elasticsearch-cloud-aws/1.4.0.

If you have done that than

cd /usr/share/elasticsearch sudo bin/plugin -remove elasticsearch/elasticsearch-cloud-aws/1.4.0

and to install the working version, do

cd /usr/share/elasticsearch
sudo bin/plugin -install elasticsearch/elasticsearch-cloud-aws/2.2.0
于 2014-07-04T16:45:22.153 回答
1

Don't know what -Xss256k -Xmx2048m parameters are but this and this one tutorials worked perfect for me.

Both suggest sudo bin/elasticsearch -f so try this one.

于 2014-04-04T13:46:20.053 回答