atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-2850) Atlas Sqoop hook throws NPE
Date Fri, 02 Nov 2018 14:40:01 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-2850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Madhan Neethiraj updated ATLAS-2850:
------------------------------------
    Fix Version/s:     (was: 0.8.3)
                   0.8.4

> Atlas Sqoop hook throws NPE
> ---------------------------
>
>                 Key: ATLAS-2850
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2850
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-intg
>    Affects Versions: 0.8.2
>            Reporter: Daniel Kelencz
>            Priority: Major
>             Fix For: 0.8.4
>
>
> When trying to import tables into hive with Atlas hooks configured, the following throws
NPE:
> {noformat}
> ./sqoop import-all-tables --connect jdbc:mysql://sql.server/mydb --username sqooptest
--password sqooptest -m 1 --warehouse-dir /user/sqoop --hive-import --verbose{noformat}
> the output contains:
> {noformat}
> 18/08/30 06:55:51 WARN mapreduce.PublishJobData: Unable to publish import data to publisher
SqoopHook.publish() failed.
> org.apache.atlas.hook.AtlasHookException: SqoopHook.publish() failed.
>         at org.apache.atlas.sqoop.hook.SqoopHook.publish(SqoopHook.java:96)
>         at org.apache.atlas.sqoop.hook.SqoopHook.publish(SqoopHook.java:51)
>         at org.apache.sqoop.mapreduce.PublishJobData.publishJobData(PublishJobData.java:52)
>         at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:284)
>         at org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:692)
>         at org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:127)
>         at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:507)
>         at org.apache.sqoop.tool.ImportAllTablesTool.run(ImportAllTablesTool.java:111)
>         at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>         at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
>         at org.apache.sqoop.Sqoop.runTool(Sqoop.java:225)
>         at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
>         at org.apache.sqoop.Sqoop.main(Sqoop.java:243)
> Caused by: java.lang.NullPointerException
>         at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.getTableQualifiedName(HiveMetaStoreBridge.java:747)
>         at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.getTableQualifiedName(HiveMetaStoreBridge.java:766)
>         at org.apache.atlas.sqoop.hook.SqoopHook.createHiveTableInstance(SqoopHook.java:113)
>         at org.apache.atlas.sqoop.hook.SqoopHook.publish(SqoopHook.java:83)
>         ... 13 more{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message