Database Reference
In-Depth Information
In this section, we will discuss the Hive setup, its execution modes, and integration
with Cassandra.
Setup and Configuration
To set up Hive in MapReduce mode, we need to configure Hadoop installation for a
few steps. Please note, you may refer to
Chapter 5
for more details about MapReduce
and Hadoop.
1.
With Hadoop, make sure that
JAVA_HOME
is configured properly.
You may configure it by modifying
$HADOOP_HOME/conf/
hadoop-env.sh
and add
JAVA_HOME
to point
jdk
installation
directory:
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
2.
Start the Hadoop installation by running
$HADOOP_HOME/bin/start-all.sh
3.
Please make sure that the name node is properly formatted. Please
refer to
Chapter 5
for more details. If you're getting error such as
connect to host localhost port 22: Connection
refused
you need to install an SSH server on your box. For Ubuntu boxes,
you can install it by running
sudo apt-get install
openssh-server
.
4.
After this, please verify that all Hadoop processes are running prop-
erly (
Figure 6-14
).