ANN Ubuntu PPA

Hello,

I've made a PPA for elasticsearch (currently, 0.15.2 and 0.16.0). Its
available at:

https://launchpad.net/~rgl/+archive/elasticsearch

To use it, follow these steps (tested on Ubuntu Lucid 10.04):

sudo add-apt-repository ppa:rgl/elasticsearch
sudo apt-get update
sudo apt-get install openjdk-6-jre-headless
sudo apt-get install elasticsearch
sudo service elasticsearch status
sudo tail -f /opt/elasticsearch/logs/elasticsearch.log
gnome-open http://localhost:9200

Let met known how it works for you!

Best regards,
Rui Lopes

Hi Rui,

I tried to test it on my Ubuntu laptop but when I try to update apt, I get
this warning :
W: Impossible de récupérer
http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/source/Sources.gz
404 Not Found
W: Impossible de récupérer
http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/binary-i386/Packages.gz
404 Not Found

Does it make sense to you ? Why are theses packages not found (404 error).

So, sudo apt-get install elasticsearch doesn't work...

I use Ubuntu 10.10 on i386 laptop.

Thanks
David.

2011/4/25 Rui Lopes rui.godinho.lopes@gmail.com

Hello,

I've made a PPA for elasticsearch (currently, 0.15.2 and 0.16.0). Its
available at:

elasticsearch : Rui Lopeshttps://launchpad.net/~rgl/+archive/elasticsearch

To use it, follow these steps (tested on Ubuntu Lucid 10.04):

sudo add-apt-repository ppa:rgl/elasticsearch
sudo apt-get update
sudo apt-get install openjdk-6-jre-headless
sudo apt-get install elasticsearch
sudo service elasticsearch status
sudo tail -f /opt/elasticsearch/logs/elasticsearch.log
gnome-open http://localhost:9200

Let met known how it works for you!

Best regards,
Rui Lopes

Hello David,

Its expected. I've only made packages for Ubuntu Lucid 10.04 (its the
only version I use). In future I expect to have Ubuntu Natty Narwhal
11.04 too... not for 10.10 though...

For 10.10 you have to try to manually install the debian package;
something like:

sudo apt-get install jsvc curl
curl -O http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch_0.16.0-0ubuntu1_i386.deb
sudo dpkg -i elasticsearch_0.16.0-0ubuntu1_i386.deb

If that does not work, I guess you can rebuild the package for 10.10.
I'm not sure this is the right way, but in principle, you can do it
with something like:

sudo apt-get install devscripts build-essential fakeroot dh-make
dget http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch_0.16.0-0ubuntu1.dsc
dpkg-source -x elasticsearch_0.16.0-0ubuntu1.dsc # ignore signature checks...
cd elasticsearch-0.16.0
dpkg-buildpackage -rfakeroot
sudo dpkg -i ../elasticsearch_0.16.0-0ubuntu1_i386.deb

I hope I didn't forget anything...

HTH.

Best regards,
Rui Lopes

On Mon, Apr 25, 2011 at 22:18, David Pilato
david.pilato@douane.finances.gouv.fr wrote:

Hi Rui,

I tried to test it on my Ubuntu laptop but when I try to update apt, I get
this warning :
W: Impossible de récupérer
http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/source/Sources.gz
404 Not Found
W: Impossible de récupérer
http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/dists/maverick/main/binary-i386/Packages.gz
404 Not Found

Does it make sense to you ? Why are theses packages not found (404 error).

So, sudo apt-get install elasticsearch doesn't work...

I use Ubuntu 10.10 on i386 laptop.

Thanks
David.

2011/4/25 Rui Lopes rui.godinho.lopes@gmail.com

Hello,

I've made a PPA for elasticsearch (currently, 0.15.2 and 0.16.0). Its
available at:

elasticsearch : Rui Lopes

To use it, follow these steps (tested on Ubuntu Lucid 10.04):

sudo add-apt-repository ppa:rgl/elasticsearch
sudo apt-get update
sudo apt-get install openjdk-6-jre-headless
sudo apt-get install elasticsearch
sudo service elasticsearch status
sudo tail -f /opt/elasticsearch/logs/elasticsearch.log
gnome-open http://localhost:9200

Let met known how it works for you!

Best regards,
Rui Lopes

Hi Rui,

For 10.10 you have to try to manually install the debian package;

something like:

sudo apt-get install jsvc curl
curl -O
http://ppa.launchpad.net/rgl/elasticsearch/ubuntu/pool/main/e/elasticsearch/elasticsearch_0.16.0-0ubuntu1_i386.deb
sudo dpkg -i elasticsearch_0.16.0-0ubuntu1_i386.deb

It's working fine. It's a pretty simple way to have elasticsearch as a
service with start/stop/status commands.

Thanks for this packaging.

David.

Hi Rui,

I'd like to build a similar install for elasticsearch 0.17.5. Would you be able to share you build process for this PPA?

Thanks,
Phil

Hi Guys, did Rui ever share his PPA build? I need to put 0.17 to production today (who would guess word_delimiter doesn't exist in <= 0.16!) And unless someone shared their build script, I guess I need to learn how to write package build scripts for Ubuntu!

Thanks,
Lee

Hi Lee,

I didn't hear anything back. This is my current build process....

wget
https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.5.tar.gz
tar -zxvf elasticsearch-0.17.5.tar.gz
mv elasticsearch-0.17.5 /opt/
sudo mv elasticsearch-0.17.5 /opt/
cd /opt/
sudo ln -s elasticsearch-0.17.5 elasticsearch
cd /tmp
sudo apt-get install git-core
git clone git://github.com/elasticsearch/elasticsearch-servicewrapper.git
cp -r elasticsearch-servicewrapper/service /opt/elasticsearch/bin/
sudo /opt/elasticsearch/bin/service/elasticsearch install
sudo service elasticsearch start
tail -F /opt/elasticsearch/wrapper.log

Cheers,
Phil

Blog : http://www.philwhln.com