Solved

IndexTank installation

Posted on 2013-01-17
1
467 Views
Last Modified: 2013-01-18
I am interested in standing up my own server with IndexTank installed on it.  I know nothing about setting it up and I am not experienced at all at Java.  But I know how to sudo into my server and run commands.  Can anyone walk me through the process of setting up IndexTank Engine and Services.

When LinkedIn acquired IndexTank they made it opensource.

Thanks.
0
Comment
Question by:yoshcomputers
1 Comment
 

Accepted Solution

by:
yoshcomputers earned 0 total points
ID: 38793683
Well I solved it incase any one wants to see my setup instructions for using Dreamhost VPS:

setup new server.
Add user with Shell access (I reference that user as {usernamegoeshere} in this document)
Download Maven from:
http://maven.apache.org/download.cgi
apache-maven-3.0.4-bin.tar.gz

Created subfolder 'apache-maven' within the {usernamegoeshere} folder
upload apache-maven-3.0.4-bin.tar.gz file into apache-maven folder

(help can be found at http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html)

run from shell
$ tar -zxvf apache-maven-3.0.4-bin.tar.gz
after it has been extracted then run the following 5 commands
$ export M2_HOME=/home/{usernamegoeshere}/apache-maven/apache-maven-3.0.4
$ export M2=$M2_HOME/bin
$ export MAVEN_OPTS="-Xms256m -Xmx512m"
$ export PATH=$M2:$PATH
$ export JAVA_HOME=/usr/local/dh/java  [specific for Dreamhost]
(help can be found here:
http://wiki.dreamhost.com/Java)


You can run a test to verify it has been installed
$ mvn --version

Now pull the repository for indextank
The following steps are from https://github.com/linkedin/indextank-engine
$ git clone git://github.com/linkedin/indextank-engine.git

it will create a subdirectory called indextank-engine
$ cd indextank-engine


Now create the pacakge:
$ mvn compile package assembly:single
install eclips
$ mvn eclipse:eclipse
These may take a while because it has to download alot of stuff

After running the package generation:

$ nohup java -cp target/indextank-engine-1.0.0-jar-with-dependencies.jar com.flaptor.indextank.api.Launcher

(The use of nohup is if you are using a shell window to keep the service for stopping when you hangup/exit the shell)

Now go test in a browser with
http://{yourwebsitehere}:20220/v1/indexes/idx/search?q=love
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question