[
https://issues.apache.org/jira/browse/HIVE-26436?focusedWorklogId=796618&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-796618
]
ASF GitHub Bot logged work on HIVE-26436:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 30/Jul/22 13:39
Start Date: 30/Jul/22 13:39
Worklog Time Spent: 10m
Work Description: ganlute commented on PR #3485:
URL: https://github.com/apache/hive/pull/3485#issuecomment-1200159756
hello @ayushtkn, thanks for your suggestion, I have add unit test to it.
BTW, I found that not all the operator has the problem and it can happen at
FileSinkOperator so I add it to the test case.
Issue Time Tracking
-------------------
Worklog Id: (was: 796618)
Time Spent: 50m (was: 40m)
> Hive on MR NullPointerException
> -------------------------------
>
> Key: HIVE-26436
> URL: https://issues.apache.org/jira/browse/HIVE-26436
> Project: Hive
> Issue Type: Bug
> Components: Query Planning
> Affects Versions: 3.1.2
> Reporter: TE
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 2022-07-27 11:23:26,337 INFO [AsyncDispatcher event handler]
> org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: Diagnostics
> report from attempt_1658508427196_17228_m_000000_3: Error:
> java.lang.RuntimeException: Hive Runtime Error while closing operators
> at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.close(ExecMapper.java:211)
> at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:61)
> at
> org.apache.hadoop.hive.ql.exec.mr.ExecMapRunner.run(ExecMapRunner.java:37)
> at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:465)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:349)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:174)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:422)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1762)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:168)
> Caused by: java.lang.NullPointerException
> at
> org.apache.hadoop.hive.ql.exec.Operator.getCounterName(Operator.java:502)
> at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:742)
> at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:757)
> at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:757)
> at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.close(ExecMapper.java:193)
> ... 9 more
>
> Hive on MR run failed and the error details is above.
> Hive version: 3.1.2
>
> When initializeOp has not been called and close called, this exception will
> happen.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)