Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Blur Wiki" for change 
notification.

The "PseudoDistributed" page has been changed by AaronMcCurry:
https://wiki.apache.org/blur/PseudoDistributed

New page:
== Pseudo Distributed / Quick Start ==

=== Prerequisites ===

You will at a minimum need the following:

 * Java installed

==== Setup passphraseless ssh ====

These instructions are taken from the Hadoop Quick Start Guide.

Now check that you can ssh to the localhost without a passphrase:
{{{#!bash
ssh localhost
}}}

If you cannot ssh to localhost without a passphrase, execute the following 
commands:
{{{#!bash
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa 
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
}}}

NOTE: Also you will need to know what the JAVA_HOME directory.

=== Download ===

Download Blur from [[target|here]].

=== Install ===

Extract the contents of the file.
{{{#!bash
tar -xzvf apache-blur-*-bin.tar.gz
}}}

While it's not required it is a good idea to set BLUR_HOME in your environment 
variables.

For bash edit .bash_profile and add:

{{{#!bash
export BLUR_HOME=<directory where Blur was extracted>
}}}

=== Minimum Configuration ===

For edit $BLUR_HOME/conf/blur-env.sh and set JAVA_HOME:

{{{#!bash
export JAVA_HOME=Java Home Directory
}}}

=== Start ===

To start Blur run the following command:

{{{#!bash
$BLUR_HOME/bin/start-all.sh
}}}

This will start a single Controller server and a single Shard server on your 
localhost.

You should see:

{{{#!bash
localhost: Shard [0] starting as process 9368.
localhost: Controller [0] starting as process 9495.
}}}

If you run the start command again you should see:

{{{#!bash
localhost: Shard server already running as process 9368. Stop it first.
localhost: Controller server already running as process 9495. Stop it first.
}}}

If you see it starting the servers again, then there is likely some issue with 
startup.  Look in the $BLUR_HOME/logs directory for log and out files.

{{{#!bash
cd incubator-blur/src
mvn install
# or for a faster install
mvn install -DskipTests
}}}

=== Shell ===

To start the shell run blur shell in the bin directory.

Execute:

{{{#!bash
$BLUR_HOME/bin/blur shell
}}}

Once in the shell, tables and be created, enabled, disabled, and removed.  Type 
help to get a list of the commands.

=== Simple Shell Example ===

The below example creates a table and stores the contents of the table in a 
local directory of ''/data/testTableName'' which will only work if you are 
running blur in a single instance.  Normally if you are running a hadoop 
cluster this will be a hdfs URI for example 
''hdfs://host:port/blur/tables/testTableName''.

{{{#!bash
blur> create <example>
blur> mutaterow <example>
blur> query <example>

}}}

Reply via email to