Quantcast
Channel: Hortonworks » All Topics
Viewing all articles
Browse latest Browse all 5121

hadoop format formats wrong directory

$
0
0

Replies: 7

Hello,
when trying to perform a manual installation I have come across a weird behavior when performing the command ‘su – hdfs -c “/usr/lib/hadoop/bin/hadoop namenode -format” ‘.
Hadoop tries to format a tmp folder (/tmp/hadoop-${user.name}), which is not the folder specified in hdfs-site.xml under the dfs.data.dir / dfs.name.dir.
As a result, starting the namenode after the format fails since the namenode is not located in the formatted location.

Investigating this subject shows that the value for the tmp folder is taken from a variable hadoop.tmp.dir, but I can’t find it in hdfs-site.xml or in core-site.xml.
Am I missing something, how Can I make sure hadoop namenode -format uses the correct variable from hdfs-site.xml?

Thanks,


Viewing all articles
Browse latest Browse all 5121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>