MasterNotDiscoveredException in Elastic Search when creating an index - elasticsearch

I've followed the simple tutorial to install elastic-search on a clean debian lenny machine:
http://www.elasticsearch.org/tutorials/2010/07/02/setting-up-elasticsearch-on-debian.html
However, when trying to create index with mapping:
curl -XPUT "localhost:9200/searchdata" -d #index.json
I get this error:
{"error":"MasterNotDiscoveredException[]","status":500}
I've used the index.json on another instance of ES, so I know that it works. I'm assuming I'm missing something the the ES config file. currently I have this:
cluster:
name: MyCluster
network:
host: _eth0_
As docs are pretty scarce for ES, I thought I'd see if anyone can lead me to a solution. Thanks in advance.

Not sure the issue, but a clean install of the OS fixed it.

Related

Elasticsearch container empty

I tried two hosters. Massivegrid and Unispace.
On both I created a new environment.
Then choose docker install. Choose elasticsearch.
After it finished, I took the url ipv4 address and pasted on the browser with port as 9200 and nothing popped up.
So I went into terminal and netstat told me there was no elastic service running. In fact nothing related to elastic was installed. No /etc/elasticsearch.
I used this tutorial https://docs.jelastic.com/elasticsearch
I failed on "Connection via Public IP" part.
Wondering what am I missing.
Edit: I created another new enviorment and installed Elasticsearch 6.8.1 image and this works as per tutorial. The newer range from 7.0 onwards is all blank inside. No Java, no elasticsearch etc.
In order to fix the problem with version 7.2 the next steps can be taken:
Add the following string in the /usr/local/bin/docker-entrypoint.sh file:
ulimit -n 65536
And in the elasticsearch.yml file (/usr/share/elasticsearch/config/elasticsearch.yml) please add:
cluster.initial master_nodes: node-1
After that restart the container.
Correct setting for elasticsearch.yml should look like the following:
cluster.initial_master_nodes: node-1

plugin:elasticsearch service not available in kibana

In order to use sense plugin, I have some problems when integrating kibana with elastic search. Everyting goes well. Elastic search and kibana installed properly in my machine.
When I run this command :
cd elasticsearch/bin/elasticsearch.bat
and then I go to http://localhost:9200/,
I got success message.
When I run this command :
cd kibana/bin/kibana.bat
and then I go to http://localhost:5601/app/sense
I got notification that
plugin:elasticsearch is not available.
this is prove that my elastic already running
this is my kibana.yml
this is my elastic.yml
What's going wrong?

Elasticsearch not responding after update (1.7.5 -> 2.3.1)

I had Elasticsearch 1.7.5 and kopf plugin installed.
I've updated Elasticsearch to 2.3.1 and kopf to 2.0 and now it's not responding (Unable to connect error in browser). When I downgrade both to previous versions all work fine.
I run Ubuntu 14.04 + Apache2.
I checked here and here but did not find anything (tried various settings).
Thank you for any help.
So finally I got to the point where all works fine again.
you need to remember that it is yaml file so every character counts - I had unnecessary white spaces in it.
I added settings:
network.host: site (please remember to add _ before and after)
http.cors.enabled: true
http.cors.allow-origin: /https?://localhost(:[0-9]+)?/
and finally in my PHP code I set the host
$client =
ClientBuilder::create()->setHosts(['http://domain.local:9200'])->build();
In command line I'm calling and getting positive result
curl -XGET http://domain.local:9200/
Very, very big thank you for your help.

Elasticsearch 1.5 can't find the plugin manager

I'm currently trying to install the JDBC river on an 1.5 elasticsearch instance.
When running:
/bin/plugin --install jdbc --url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.5.0.0/elasticsearch-river-jdbc-1.5.0.0.zip
I obtain the following error:
Error: Could not find or load main class org.elasticsearch.plugins.PluginManager
Do you have any idea of the origin of the problem?
EDIT: I tried
bin/plugin
And get the same error, so it's not related to the url.
EDIT2: I'm using Windows.
The url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.5.0.0/elasticsearch-river-jdbc-1.5.0.0.zip is incorrect.
If you check the url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.5.0.0/ in your browser, you will see there is no elasticsearch-river-jdbc-1.5.0.0.zip file there. There is however a jar file of the same name. Perhaps you meant to use that one instead?
./bin/plugin --install river-jdbc --url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.5.0.4/elasticsearch-river-jdbc-1.5.0.4.jar

ElasticSearch: Indexing times out if number_of_replicas is greater than 1

I'm experimenting with scaling ElasticSearch and want to increase the amount of replicas, but I am unable to index anything if the number_of_replicas is set higher than 1.
I've been able to replicate the issue with a fresh install of ES:
Download and unzip ES
Modify the config/elasticsearch.yml file and set the index.number_of_replicas setting to 2
Run bin/elasticsearch
Index a test document: curl -XPUT 'localhost:9200/test/example/1' -d '{body:"Hello"}'
Timeout
I'm running the latest version of ES (1.2.1) on a Mac OSX 10.9.2. I've also been running ES on an Ubuntu Wheezy VM, but I encountered the same problem there. Setting the number of replicas on an index-basis (using a PUT request) has the same effect. It makes me feel like I'm missing something fundamental.
Power up more ES nodes (see my second comment)

Resources