Hadoop Installation Issue - error while doing : hdfs namenode -format



0
I have followed the installation steps and got stuck at the point where I need to format the namenode. Please help. More details below..
Ran the command: hdfs namenode -format
Error: Cannot create directory /ur/local/hadoop_store/hdfs/namenode/current.

1 Answer(s)


0

i think you have not set the temp directory as per the instructions check the slide 115-116 in the day1 pdf that abhishek sent us in email.(or video)

Configuring conf/*-site.xml files
•Need to set the hadoop.tmp.dir parameter
to a directory of your choice.
•We will use /app/hadoop/tmp
•sudo mkdir -p /app/hadoop/tmp
•sudo chmod 777 /app/hadoop/tmp

Configuring HDFS core-site.xml(Pseudo Distributed Mode)




hadoop.tmp.dir
/app/hadoop/tmp


fs.default.name
hdfs://localhost/


Note: