hadoop-错误总结
本来hadoop实验已经做完,打算把最后一个实验报告写完,就去自习室学习的。没想到啊,没想到~恢复虚拟机的时候slave起不来了~~slave关机重启后,master的hive操作发生了错误!并且已经将所有的服务启动,master的hadoop也关了,重新启动~没用~,最后发现,是两个实例时间不同步,以前都是虚拟机暂停的,所以服务可以使用~。
mapreduce erros
hive返回的信息
Number of reduce tasks is set to 0 since there's no reduce operator Starting Job = job_1494973524176_0069, Tracking URL = http://master:18088/proxy/application_1494973524176_0069/ Kill Command = /home/liu/hadoop-2.5.2/bin/hadoop job -kill job_1494973524176_0069 Hadoop job information for Stage-1: number of mappers: 0; number of reducers: 0 2017-06-13 20:50:54,767 Stage-1 map = 0%, reduce = 0% Ended Job = job_1494973524176_0069 with errors Error during job, obtaining debugging information... FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask MapReduce Jobs Launched: Job 0: HDFS Read: 0 HDFS Write: 0 FAIL Total MapReduce CPU Time Spent: 0 msec
网页查看错误http://master:18088/cluster/app/application_1494973524176_0072
This token is expired. current time is 1497442339283 found 1497414139585 at sun.reflect.GeneratedConstructorAccessor44.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
- 同步时间
su root
htpdate -u ntp.api.bz (ntp 上海服务器)
hive重新启动任务
参考