hive load data 报“return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask” 解决办法

根据网上实例学习hive(https://www.cnblogs.com/qingyunzong/p/8708057.html),将 student.txt load 进hive时报错

Loading data to table default.t_mx_result_nojson
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask. org.apache.thrift.TApplicationException: Internal error processing fire_listener_event
Exception in thread "Hive Hook Proto Event Handler 1" java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1469)
	at java.util.HashMap$EntryIterator.next(HashMap.java:1503)
	at java.util.HashMap$EntryIterator.next(HashMap.java:1501)
	at java.util.AbstractCollection.toArray(AbstractCollection.java:196)
	at com.google.common.collect.Iterables.toArray(Iterables.java:300)
	at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:701)
	at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:686)
	at org.apache.hadoop.hive.ql.log.PerfLogger.getEndTimes(PerfLogger.java:218)
	at org.apache.hadoop.hive.ql.hooks.HiveProtoLoggingHook$EventLogger.getPostHookEvent(HiveProtoLoggingHook.java:396)
	at org.apache.hadoop.hive.ql.hooks.HiveProtoLoggingHook$EventLogger.generateEvent(HiveProtoLoggingHook.java:268)
	at org.apache.hadoop.hive.ql.hooks.HiveProtoLoggingHook$EventLogger.lambda$handle$0(HiveProtoLoggingHook.java:243)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)

解决方法:
通过在hive-site.xml中添加配置hive.metastore.dml.eventsfalse解决

posted @ 2024-11-08 11:07  wangzhen3798  阅读(42)  评论(0编辑  收藏  举报