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

Anne Yu commented on SENTRY-719:
--------------------------------

HMS log:
{code}
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
        at 
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
        at org.apache.sentry.hdfs.PathsUpdate.parsePath(PathsUpdate.java:90)
        at 
org.apache.sentry.hdfs.MetastorePlugin.addPath(MetastorePlugin.java:195)
        at 
org.apache.sentry.binding.metastore.SentryMetastorePostEventListener.onCreateTable(SentryMetastorePostEventListener.java:96)
        at 
org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:1407)
        at 
org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_with_environment_context(HiveMetaStore.java:1426)
        ... 19 more
{code}

> create external table tablename, if tablename exists, instead of warning user 
> table already exists, throws exception: 
> MetaException(message:java.lang.NullPointerException) (state=08S01,code=1) 
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-719
>                 URL: https://issues.apache.org/jira/browse/SENTRY-719
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Anne Yu
>            Assignee: Prasad Mujumdar
>             Fix For: 1.5.0
>
>
> {code}
> 0: jdbc:hive2://a2110.halxg.cloudera.com:1000> CREATE external TABLE 
> employees2(name STRING, salary FLOAT, subordinates ARRAY<STRING>, deductions 
> MAP<STRING, FLOAT>, address STRUCT<street:STRING, city:STRING, state:STRING, 
> zip:INT>) PARTITIONED BY(country STRING, state STRING) ROW FORMAT DELIMITED 
> FIELDS TERMINATED BY '\001' COLLECTION ITEMS TERMINATED BY '\002' MAP KEYS 
> TERMINATED BY '\003' LINES TERMINATED BY '\n' LOCATION '/data/employees';
> Error: Error while processing statement: FAILED: Execution Error, return code 
> 1 from org.apache.hadoop.hive.ql.exec.DDLTask. 
> MetaException(message:java.lang.NullPointerException) (state=08S01,code=1)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to