I am trying to install Elasticsearch 1.0.1 on Ubuntu 12.04. So far I have
done:
First I removed the old elasticsearch 0.90 package
sudo dpkg -r elasticsearch
Then
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.deb
sudo dpkg -i elasticsearch-1.0.1.deb
The last step results in the following
(Reading database ... 57341 files and directories currently installed.)
Preparing to replace elasticsearch 1.0.1 (using elasticsearch-1.0.1.deb) ...
Unpacking replacement elasticsearch ...
Setting up elasticsearch (1.0.1) ...
chown: cannot access `/etc/elasticsearch/*': No such file or directory
So I created /etc/elasticsearch with a dummy file in it and then did
sudo chmod 777 /etc/elasticsearch
Now when I run
sudo dpkg -i elasticsearch-1.0.1.deb
I get
(Reading database ... 57341 files and directories currently installed.)
Preparing to replace elasticsearch 1.0.1 (using elasticsearch-1.0.1.deb) ...
Unpacking replacement elasticsearch ...
Setting up elasticsearch (1.0.1) ...
Processing triggers for ureadahead ...
But nothing appears in /etc/elasticsearch
However I do get a folder appear in
/usr/share/elasticsearch
With the following contents
bin core-signatures.txt lib NOTICE.txt README.textile
From here if I run
sudo bin/elasticsearch
I get
log4j:WARN No appenders could be found for logger (node). log4j:WARN Please
initialize the log4j system properly. log4j:WARN See
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
And continues to run
If I open a new window and run
curl -XGET 'localhost:9200'
I get
{
"status" : 200,
"name" : "Volstagg",
"version" : {
"number" : "1.0.1",
"build_hash" : "5c03844e1978e5cc924dab2a423dc63ce881c42b",
"build_timestamp" : "2014-02-25T15:52:53Z",
"build_snapshot" : false,
"lucene_version" : "4.6"
},
"tagline" : "You Know, for Search"
}
So it appears to be running, and I can populate the search (symfony2
FOSElasticaBundle) with
php app/console fos:elastica:populate
But if I do a search no results are found.
There is nothing in /etc/elasticsearch apart from the dummy file I placed
in there.
I have found the configuration file at /etc/default/elasticsearch which is
all commented out at present.
The Symfony2 error I get when trying to search is: ERROR - Caught
exception: SearchPhaseExecutionException[Failed to execute phase [query],
all shards failed
So the question is please, has it installed or not and why isn't it working
properly?
Thanks
Patrick
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0dd824da-8c36-4954-9d3f-ffd037a36ab8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.