[
https://issues.apache.org/jira/browse/ATLAS-2611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16454351#comment-16454351
]
Madhan Neethiraj commented on ATLAS-2611:
-----------------------------------------
[~bpgergo] - can you please add details to reproduce this issue?
bq. It may be important to note that Atlas was running with Hive2 when this NPE
occured.
Is this issue seen only in Hive2 (and not Hive)?
> NPE in Hive hook
> ----------------
>
> Key: ATLAS-2611
> URL: https://issues.apache.org/jira/browse/ATLAS-2611
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 1.0.0
> Reporter: Péter Gergő Barna
> Assignee: Péter Gergő Barna
> Priority: Major
> Fix For: 1.0.0
>
> Attachments: ATLAS-2611.patch
>
>
> NPE thrown from this line
> {code:java}
> for (BaseColumnInfo baseColumn : entry.getValue().getBaseCols()) {{code}
> Entry comes from
>
> {code:java}
> for (Map.Entry<DependencyKey, Dependency> entry : lineageInfo.entrySet()) {
> {code}
> Hive log
>
> {noformat}
> 2018-04-25T16:23:46,792 ERROR [HiveServer2-Background-Pool: Thread-1474]
> hook.HiveHook: HiveHook.run(): failed to process operation CREATEVIEW
> java.lang.NullPointerException: null at
> org.apache.atlas.hive.hook.events.CreateHiveProcess.processColumnLineage(CreateHiveProcess.java:140)
> ~[hive-bridge-0.8.0.2.6.5.0-270.jar:0.8.0.2.6.5.0-270] at
> org.apache.atlas.hive.hook.events.CreateHiveProcess.getEntities(CreateHiveProcess.java:110)
> ~[hive-bridge-0.8.0.2.6.5.0-270.jar:0.8.0.2.6.5.0-270] at
> org.apache.atlas.hive.hook.events.CreateHiveProcess.getNotificationMessages(CreateHiveProcess.java:56)
> ~[hive-bridge-0.8.0.2.6.5.0-270.jar:0.8.0.2.6.5.0-270] at
> org.apache.atlas.hive.hook.HiveHook.run(HiveHook.java:157)
> [hive-bridge-0.8.0.2.6.5.0-270.jar:0.8.0.2.6.5.0-270] at
> org.apache.atlas.hive.hook.HiveHook.run(HiveHook.java:52)
> [hive-bridge-shim-0.8.0.2.6.5.0-270.jar:0.8.0.2.6.5.0-270] at
> org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1775)
> [hive-exec-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1414)
> [hive-exec-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> org.apache.hadoop.hive.ql.Driver.run(Driver.java:1211)
> [hive-exec-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> org.apache.hadoop.hive.ql.Driver.run(Driver.java:1204)
> [hive-exec-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:242)
> [hive-service-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> org.apache.hive.service.cli.operation.SQLOperation.access$800(SQLOperation.java:91)
> [hive-service-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:336)
> [hive-service-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_161] at
> javax.security.auth.Subject.doAs(Subject.java:422) [?:1.8.0_161] at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1869)
> [hadoop-common-2.7.3.2.6.5.0-270.jar:?] at
> org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:350)
> [hive-service-2.1.0.2.6.5.0-270.jar:2.1.0.2.6.5.0-270] at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [?:1.8.0_161] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:1.8.0_161] at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [?:1.8.0_161] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:1.8.0_161]
>
> {noformat}
>
> It may be important to note that Atlas was running with Hive2 when this NPE
> occured.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)