hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth Jayachandran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16544) NPE during IMPORT when database does not exist
Date Wed, 26 Apr 2017 22:31:04 GMT

    [ https://issues.apache.org/jira/browse/HIVE-16544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15985673#comment-15985673
] 

Prasanth Jayachandran commented on HIVE-16544:
----------------------------------------------

cc/ [~sushanth] not sure if NPE is because of database not existing or something else but
when I created the DB and ran import again it succeeded. 

> NPE during IMPORT when database does not exist
> ----------------------------------------------
>
>                 Key: HIVE-16544
>                 URL: https://issues.apache.org/jira/browse/HIVE-16544
>             Project: Hive
>          Issue Type: Bug
>          Components: repl
>    Affects Versions: 3.0.0
>            Reporter: Prasanth Jayachandran
>
> There was some old database from which I exported a table. Recently I dropped this database.
When I tried to import the table (for which corresponding database was dropped), NPE is thrown
> {code}
> 2017-04-26T17:22:24,374 ERROR [d581f7d4-dba2-4a4f-ad02-1ce089d467d7 main]: ql.Driver
(SessionState.java:printError(1126)) - FAILED: SemanticException [Error 10324]: Import Semantic
Analyzer Error
> org.apache.hadoop.hive.ql.parse.SemanticException: Import Semantic Analyzer Error
> 	at org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer.analyzeInternal(ImportSemanticAnalyzer.java:147)
> 	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:258)
> 	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:544)
> 	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1345)
> 	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1477)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1261)
> 	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1251)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:233)
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:184)
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403)
> 	at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821)
> 	at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759)
> 	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.apache.hadoop.util.RunJar.run(RunJar.java:239)
> 	at org.apache.hadoop.util.RunJar.main(RunJar.java:153)
> Caused by: java.lang.NullPointerException
> 	at org.apache.hadoop.hive.ql.hooks.Entity.doComputeName(Entity.java:336)
> 	at org.apache.hadoop.hive.ql.hooks.Entity.computeName(Entity.java:330)
> 	at org.apache.hadoop.hive.ql.hooks.Entity.<init>(Entity.java:175)
> 	at org.apache.hadoop.hive.ql.hooks.WriteEntity.<init>(WriteEntity.java:65)
> 	at org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer.createRegularImportTasks(ImportSemanticAnalyzer.java:753)
> 	at org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer.prepareImport(ImportSemanticAnalyzer.java:297)
> 	at org.apache.hadoop.hive.ql.parse.ImportSemanticAnalyzer.analyzeInternal(ImportSemanticAnalyzer.java:138)
> 	... 18 more
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message