namenode與datanode的clusterID在重新格式化namenode以后已經(jīng)不再匹配,datanode無法啟動。
另外:
此錯誤會導致在hive導入數(shù)據(jù)時發(fā)生如下錯誤(由于metadata不存在hdfs中,故create table并無報錯):
hive> load data local inpath '/root/dbfile' overwrite into table employees PARTITION (country='US', state='IL');
Loading data to table default.employees partition (country=US, state=IL)
Failed with exception Unable to move source file:/root/dbfile to destination hdfs://localhost:9000/user/hive/warehouse/employees/country=US/state=IL/dbfile
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTas