build elasticsearch from source

Filed under: cloud,elasticsearch,Linux — nax @ 16:52

1. I downloaded vanilla Ubuntu Server 15.10 (you need about 10G disk space later)
2. Installed new version of gradle:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get install gradle 2.10

3. Installed oracle jdk8 and setup JAVA_HOME to point to it

cat >> /etc/environment
rm /usr/bin/java
ln -s /usr/lib/jvm/jdk1.8.0_72/bin/java /usr/bin/java

4. Downloaded latest elasticsearch mater snapshot from git and unzipped it
5. Run build, tests and package it:

gradle build
gradle test
gradle assemble
cd ./distribution/deb/build/distributions
sudo dpkg -i elasticsearch-3.0.0-SNAPSHOT.deb
cd .../../../src/main/resources/config/
sudo cp elasticsearch.yml /etc/elasticsearch/

6. Start elasticsearch and do my own first request to it

curl -X GET http://localhost:9200/
"name" : "virtual-node-1",
"cluster_name" : "mycluster",
"version" : {
"number" : "3.0.0",
"build_hash" : "N/A",
"build_date" : "2016-01-28T09:29:44.971Z",
"build_snapshot" : true,
"lucene_version" : "5.5.0"
"tagline" : "You Know, for Search"

Comments are closed.

Powered by WordPress