Hadoop 问题 & 解决
1、将旧版本hadoop升级后,如从hadoop-1.1.2升级到hadoop-1.2.1,会发现使用start-all.sh命令,没有办法启动namenode,即jps,发现没有namenode
原因:分析namenode-log文件发现,语句:“file system image contains an old layout version”和“please restart namenode with -upgrade option”,说明是FileSystem需要更新。
解决:停掉所有的东西,然后start-dfs.sh -upgrade,详细方法见:https://www.inkling.com/read/hadoop-definitive-guide-tom-white-3rd/chapter-10/maintenance或者http://www.michael-noll.com/blog/2011/08/23/performing-an-hdfs-upgrade-of-an-hadoop-cluster/