Posts

Showing posts with the label hadoop

SOLVED org apache hadoop hdfs server namenode SafeModeException Name node is in safe mode How to leave

SOLVED org apache hadoop hdfs server namenode SafeModeException Name node is in safe mode How to leave Namenode daemon in Hadoop Framework enters into safe mode in unusual situations. For example when disk is full, also in the start-up phase. You can see something like this. org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/root/t. Name node is in safe mode So Hadoop needs to leave safemode. Running below command leaves safemode. bin/hadoop dfsadmin -safemode leave After doing the above command, Run  hadoop fsck  so that any inconsistencies crept in the hdfs might be sorted out. Use   hdfs   command instead of   hadoop  command for newer distributions: hdfs dfsadmin -safemode leave hadoop dfsadmin  has been deprecated, all hdfs related tasks are being moved to a separate command  hdfs. download file now

Step By Step Mapreduce Example run on hadoop 2 7 1 with video

Image
Step By Step Mapreduce Example run on hadoop 2 7 1 with video Step 1: open terminal using ctrl+alt+T Step 2: go to hadoop user using hadoopashish@ubuntu:su hadoop-user Step 3: Start all Hadoop using below command hadoop-user@ubantu : start-all.sh Step 4: Make new Data Directory on Desktop and create on text file in side Data folder which is on desktop Desktop/data/text.txt Step 5: After start hadoop just type below text hadoop-user@ubantu : jps 6385 ResourceManager 6146 SecondaryNameNode 5637 NameNode 6696 NodeManager 5866 DataNode 12510 Jps Step 6: after doing this You have to go on below path hadoop-user@ubantu : cd   /usr/local/hadoop/ or which path inside your Directory Mine is hadoop-user@ubantu : cd   /usr/local/hadoop-2.7.1/ Step 7 : after going in this folder you have to type hadoop-user@ubantu : cd /usr/local/hadoop-2.7.1 $ bin/hdfs dfs -mkdir /user after this press enter hadoop-user@ubantu : cd /usr/local/hadoop-2.7.1 $ bin/hdfs dfs -mkdir /user/ashish/...