|
QuickStart
Requirements
Download and Build
$ cd /home/username/ available from download page . $cd anuenue
$ant mainSetup PassphraseFirst check that you can login to the localhost without a passphrase: $ssh localhost If you are asked for a passphrase when you ssh to the localhost, please run the following commands. $ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa $cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys You can also setup ssh-agent for the passphrase less login. Running AnuenueNow let's run Anuenue with attached input files. Single Node Setup
$cd /home/username/anuenue $sh bin/anuenue-distdaemon.sh start $sh bin/anuenue-distcommands.sh post --arg src/java/test/resources/example-docs $sh bin/anuenue-distcommands.sh commit Let's check wether the document was posted or not by the web interface. You can access the web interface (http://localhost:8983/anuenue/admin). The following is the image of the Anuenue web interface.
We can test the index by sending a query from the form in the page. For example, sending query "hadoop", we can get the result as follows.
Cluster SetupIn this section, we have a quick tour on the installation and configuration of Anuenue cluster. Here we assume we have a three computer named "aaaa", "bbbb", and "cccc" and then set up the Anuenue cluster on the three machines. The three Anuenue instances have one different role. The Anuenue instance in the host "aaaa" is a merger instance and receives the queries from clients and transfers the queries to the slave instance "cccc". The instance in "bbbb" is a master instance and indexes the input data. The instance in "cccc" is the slave which replicates the index from the instance in "bbbb" and receives the queries from the merger and then return the results. More details on the roles, please see Configuration. The following figure shows the Anuenue cluster which we are building. Now let's build the Anuenue cluster. |