Hadoop Single Node Installation
Hadoop Single Node Installation
2 INSTALLING ON
UBUNTU 20
(SINGLE-NODE CLUSTER)
1- Install Java 1.8.
aramadan@ubuntu: ~$ cd ~
Done.
Other []:
3- Installing SSH.
ssh has two main components:
ssh : The command we use to connect to remote machines - the client.
sshd : The daemon that is running on the server and allows clients to
connect to the server.
su hduser
hduser@ubuntu: ~$ cd Hadoop-2.7.2
hduser@ubuntu:~/hadoop-2.7.2$ ls /usr/local/hadoop/
1. ~/.bashrc
2. /usr/local/hadoop/etc/hadoop/hadoop-env.sh
3. /usr/local/hadoop/etc/hadoop/core-site.xml
4. /usr/local/hadoop/etc/hadoop/mapred-site.xml.template
5. /usr/local/hadoop/etc/hadoop/hdfs-site.xml
1.~/.bashrc
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-
openjdk-amd64/jre/bin/java
Nothing to configure.
# Add to the end of the file (Java & Hadoop Variables Environment)
export JAVA_HOME=usr/lib/jvm/java-8-openjdk-amd64
export HADOOP_INSTALL=/usr/local/hadoop
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
2./usr/local/hadoop/etc/hadoop/hadoop-env.sh
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/app/hadoop/tmp</value>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:54310</value>
</property>
</configuration>
4./usr/local/hadoop/etc/hadoop/mapred-site.xml
hduser@ubuntu:~ $ cp /usr/local/hadoop/etc/hadoop/mapred-site.xml.template
/usr/local/hadoop/etc/hadoop/mapred-site.xml
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:54311</value>
<description>The host and port that the MapReduce job tracker runs
</description>
</property>
</configuration>
5./usr/local/hadoop/etc/hadoop/hdfs-site.xml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
The actual number of replications can be specified when the file is created.
</description>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:/usr/local/hadoop_store/hdfs/namenode</value>
</property>
<property>
<name>dfs.datanode.data.dir</name>
<value>file:/usr/local/hadoop_store/hdfs/datanode</value>
</property>
</configuration>
hduser@ubuntu:~ $ jps
15888 Jps
15682 NodeManager
15218 DataNode
15415 SecondaryNameNode
15050 NameNode
15550 ResourceManager