![]() 17:52:13,717 INFO common.Storage: Storage directory /opt/hadoop/hadoopdata/hdfs/namenode has been successfully formatted. 17:52:09,678 INFO namenode.NameNode: STARTUP_MSG: WARNING: /home/hadoop/hadoop/logs does not exist. Step 7: We need to format Hadoop NameNode using the below command prior tobefore starting the Hadoop cluster. Step 6: Edit Hadoop XML Configuration files Step 5: Setting up Hadoop Environment mkdir -p /data/hadoop-data/nnĮdit $HADOOP_HOME/etc/hadoop/hadoop-env.sh file and set JAVA_HOME environment variable Step 4: Download Hadoop 3.2.1 and extract it to /opt/ directory wget Įcho "# HADOOP Variables #" > /etc/profileĮcho "export HADOOP_HOME=/opt/hadoop-3.2.1" > /etc/profileĮcho "export HADOOP_MAPRED_HOME=\$HADOOP_HOME" > /etc/profileĮcho "export HADOOP_COMMON_HOME=\$HADOOP_HOME" > /etc/profileĮcho "export HADOOP_HDFS_HOME=\$HADOOP_HOME" > /etc/profileĮcho "export YARN_HOME=\$HADOOP_HOME" > /etc/profileĮcho "export HADOOP_COMMON_LIB_NATIVE_DIR=\$HADOOP_HOME/lib/native" > /etc/profileĮcho "export PATH=\$PATH:\$HADOOP_HOME/sbin:\$HADOOP_HOME/bin" > /etc/profile Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)Įcho "# Setting JAVA_HOME and PATH for all USERS #" > /etc/profileĮcho "export JAVA_HOME=/usr/java/jdk1.8.0_221" > /etc/profileĮcho "export PATH=\$PATH:\$JAVA_HOME/bin" > /etc/profile Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Step 3: Install Java on CentOS7 Download Tar or RPM file of Java 8:Īlternatives -install /usr/bin/java java /usr/java/jdk1.8.0_221/bin/java 2Īlternatives -install /usr/bin/javaws javaws /usr/java/jdk1.8.0_221/bin/javaws 2Īlternatives -install /usr/bin/javac javac /usr/java/jdk1.8.0_221/bin/javac 2Īlternatives -install /usr/bin/jar jar /usr/java/jdk1.8.0_221/bin/jar 2Īlternatives -install /usr/bin/jps jps /usr/java/jdk1.8.0_221/bin/jps 2
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |