gpt4 book ai didi

java - 获取java.lang.NullPointerException hadoop map-reduce程序

转载 作者:行者123 更新时间:2023-12-02 22:04:40 25 4
gpt4 key购买 nike

从db提取数据并加载到另一个表时出现以下错误:

15/07/01 04:23:15 INFO mapreduce.Job: Task Id : attempt_1434100146148_0014_m_000000_0, Status : FAILED
Error: java.lang.NullPointerException
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.initialize(MapTask.java:525)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:763)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:167)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1557)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)

最佳答案

谢谢Subba

上面的问题解决了。我的输入SQL查询中的列名有错误。我的查询是

select * from allTypes where **key** = ?;(correct) 
select * from allTypes where **id** = ?;(wrong ...no column as id)

关于java - 获取java.lang.NullPointerException hadoop map-reduce程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31199926/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com