Archive for March, 2014

Resources for elasticsearch

March 20, 2014

elasticsearch is an open-source search technology that recently reached the stable 1.0 version after many years of development. It has a great API and works very well. Here’s a list of resources to help you learn about this product

Official resources

elasticsearch – the definitive guide
New book written by the elasticsearch team, will eventually be available as an ebook/paper copy but also available for free online. The work is in progress and you can submit issues on github since it’s open-source
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/index.html

official documentation
Where you can find the full documentation for the product
http://www.elasticsearch.org/guide/

Non-official resources

exploring elasticsearch
Free ebook with tutorials to learn more about elasticsearch when you get started. It was made before the 1.0 version so keep in mind it might not be entirely up to date, but it definitely serves as a good intro.
http://exploringelasticsearch.com/

Learn and play with Elasticsearch | Found
Lots of  technical articles about elasticsearch, by a company that offers an elasticsearch as a service cloud solution. Very high quality
https://www.found.no/foundation/

Updated on December 8th 2014

Install Oracle Endeca Commerce Tools and Frameworks v11 on Linux

March 4, 2014

If you are trying to install Tools and Frameworks under the new Oracle Endeca Commerce v11 with Linux, you might have noticed that the installer just got more complicated. We used to be able to install Tools and Frameworks by moving an unzipped directory to the right location and that would be all.

Now we need to run an installer located at:

/app/endeca/cd/Disk1/install/runInstaller.sh

If you are connecting through the console of a Linux box using SSH, you might have got this error

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-03-04_02-06-11PM. Please wait ...<br />DISPLAY not set. Please set the DISPLAY and try again.<br />Depending on the Unix Shell, you can use one of the following commands as examples to set the DISPLAY environment variable:<br />- For csh: % setenv DISPLAY 192.168.1.128:0.0<br />- For sh, ksh and bash: $ DISPLAY=192.168.1.128:0.0; export DISPLAY<br />Use the following command to see what shell is being used:<br />echo $SHELL<br />Use the following command to view the current DISPLAY environment variable setting:<br />echo $DISPLAY<br />- Make sure that client users are authorized to connect to the X Server.<br />To enable client users to access the X Server, open an xterm, dtterm or xconsole as the user that started the session and type the following command:<br />% xhost +<br />To test that the DISPLAY environment variable is set correctly, run a X11 based program that comes with the native operating system such as 'xclock':<br />% &amp;lt;full path to xclock.. see below&amp;gt;<br />If you are not able to run xclock successfully, please refer to your PC-X Server or OS vendor for further assistance.<br />Typical path for xclock: /usr/X11R6/bin/xclock

The installer is trying to run the program through a visual user interface that is using a X window, which isn’t possible through a text-based terminal.

From there, you can use the silentInstaller (see documentation for more details) but there are less options available and I personally had issues running it. So instead, here are the steps if you want to run the installer with X11 to be able to interact with the user interface.

If you are on Mac, download and install Xquartz, which is an open-source X.Org X Window System (if running OS X before 10.8, it is bundled with the OS).

http://xquartz.macosforge.org/landing/

For other operating systems, you will have to find your own version of X.Org X11 and install it.

Then, all you have to do is connect on the Linux server where Endeca will be installed by using the -X parameter (which enables a X11 forwarding funnel to your own machine)

Example:

ssh -X username@hostname

Then, when you will run the installer

/app/endeca/cd/Disk1/install/runInstaller.sh

The installer will automatically launch XQuartz (or your own version of X.org on your operating system) on your machine and you’ll be able to install Endeca Tools and Frameworks on the Linux box.

Tools and Framework installer for Oracle Endeca Commerce