Hadoop Installation
Hadoop Installation
d. Install MySql Server and MySql Client sudo apt-get install mysql-server mysql-client
5. Below are the configuration related to parti ular l’s file to ru o Psuedo ode.
core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:8020</value>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/hadoop/Work/hadoopdata/tmp</value>
</property>
</configuration>
hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.name.dir</name>
<value>/home/hadoop/Work/hadoopdata/dfs/name</value>
</property>
<property>
<name>dfs.data.dir</name>
<value>/home/hadoop/Work/hadoopdata/dfs/data</value>
</property>
</configuration>
Hadoop Installation
mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:8021</value>
</property>
<property>
<name>mapred.local.dir</name>
<value>/home/hadoop/Work/hadoopdata/mapred/local</value>
</property>
<property>
<name>mapred.system.dir</name>
<value>/mapred/system</value>
</property>
</configuration>
go to e d of the file, after fi li k e ter a d e ter the elow state e ts to set the
environment variables
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk
export HADOOP_HOME=/home/hadoop/Work/hadoop-1.1.2
export HIVE_HOME=/home/hadoop/Work/hive-0.10.0
export DERBY_HOME=/home/hadoop/Work/db-derby-10.10.1.1-bin
export PIG_HOME=/home/hadoop/Work/pig-0.11.1
export HBASE_HOME=/home/hadoop/Work/hbase-0.94.8
export ZOOKEEPER_HOME=/home/hadoop/Work/zookeeper-3.4.5
export SQOOP_HOME=/home/hadoop/Work/sqoop-1.4.3.bin__hadoop-1.0.0
export FLUME_HOME=/home/hadoop/Work/apache-flume-1.4.0-bin
export OOZIE_HOME=/home/hadoop/Work/oozie-3.3.2
Hadoop Installation
export
PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$HIVE_HOME/bin:$DERBY_HOME/bin:$P
IG_HOME/bin:$HBASE_HOME/bin:$OOZIE_HOME/bin:$ZOOKEEPER_HOME/bin:$SQOOP
_HOME/bin:$FLUME_HOME/bin:$PATH
7. Once the above step completes, close the bashrc file and close the existing terminal to reflect
the changes of bashrc file or you can refresh the bashrc file using refresh command to reflect
the saved changes from existing terminal.
Type the below commands to verify the variables which we have set earlier in bashrc file
echo $JAVA_HOME
echo $HADOOP_HOME
a. ssh localhost
b. ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
c. cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys