Hadoop study notes - how to reformat hadoop hdfs

[size=medium][color=red]1 stop all the hbase or hadoop deamon[/color][/size]
$stop-all.sh

[size=medium][color=red]2 check the physical file system location[/color][/size]
Hdfs-site.xml

dfs.name.dir
${hadoop.tmp.dir}/dfs/name


dfs.data.dir
${hadoop.tmp.dir}/dfs/data


mapred.local.dir
${hadoop.tmp.dir}/mapred/local


mapred.system.dir
${hadoop.tmp.dir}/mapred/system


mapreduce.jobtracker.staging.root.dir
${hadoop.tmp.dir}/mapred/staging


mapred.temp.dir
${hadoop.tmp.dir}/mapred/temp

[size=medium][color=red]3 then rm -rf all the file system listed[/color][/size]

[size=medium][color=red]4 start hadoop format the namenode[/color][/size]

$start-all.sh
$hadoop namenode -format

[size=medium][color=red]5 restart haoop[/color][/size]
$stop-all.sh
$start-all.sh

[size=medium][color=red]6 check the hdfs sytem[/color][/size]
$hadoop dfsadmin -report
$hadoop fsck /

Qestion:
in setp 4, maybe we don't need to start namenode in order to format it.
Next time, study further

你可能感兴趣的:(java,软件综合)