sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrés Cordero (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SENTRY-700) Alter view broken with Sentry Sync
Date Mon, 22 Jun 2015 21:47:01 GMT

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

Andrés Cordero commented on SENTRY-700:
---------------------------------------

[~prasadm], I'm still seeing an error with this action on CDH5.4.2, albeit slightly different
message/stack:

Beeline:
{noformat}
0: jdbc:hive2://localhost:10000/default> CREATE OR REPLACE VIEW jview AS SELECT * FROM
j1;
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.
Unable to alter table. java.lang.IllegalArgumentException: data may not be null (state=08S01,code=1)
{noformat}

HS2 Log:
{noformat}
2015-06-22 20:58:51,540 ERROR org.apache.hive.service.cli.operation.Operation: Error running
hive query: 
org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution
Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. java.lang.IllegalArgumentException:
data may not be null
	at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:315)
	at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:147)
	at org.apache.hive.service.cli.operation.SQLOperation.access$100(SQLOperation.java:70)
	at org.apache.hive.service.cli.operation.SQLOperation$1$1.run(SQLOperation.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:415)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1671)
	at org.apache.hive.service.cli.operation.SQLOperation$1.run(SQLOperation.java:209)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	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: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to alter table. java.lang.IllegalArgumentException:
data may not be null
	at org.apache.hadoop.hive.ql.metadata.Hive.alterTable(Hive.java:465)
	at org.apache.hadoop.hive.ql.metadata.Hive.alterTable(Hive.java:451)
	at org.apache.hadoop.hive.ql.exec.DDLTask.createView(DDLTask.java:4188)
	at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:337)
	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:88)
	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1638)
	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1397)
	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1181)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1047)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1042)
	at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:145)
	... 11 more
Caused by: MetaException(message:java.lang.IllegalArgumentException: data may not be null)
	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_with_cascade_result$alter_table_with_cascade_resultStandardScheme.read(ThriftHiveMetastore.java:37961)
	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_with_cascade_result$alter_table_with_cascade_resultStandardScheme.read(ThriftHiveMetastore.java:37938)
	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_with_cascade_result.read(ThriftHiveMetastore.java:37880)
	at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_alter_table_with_cascade(ThriftHiveMetastore.java:1290)
	at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.alter_table_with_cascade(ThriftHiveMetastore.java:1274)
	at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.alter_table(HiveMetaStoreClient.java:329)
	at org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.alter_table(SessionHiveMetaStoreClient.java:251)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:91)
	at com.sun.proxy.$Proxy10.alter_table(Unknown Source)
	at org.apache.hadoop.hive.ql.metadata.Hive.alterTable(Hive.java:463)
	... 22 more
{noformat}

> Alter view broken with Sentry Sync
> ----------------------------------
>
>                 Key: SENTRY-700
>                 URL: https://issues.apache.org/jira/browse/SENTRY-700
>             Project: Sentry
>          Issue Type: Bug
>         Environment: CDH5.3.2
>            Reporter: Johndee Burks
>
> If HDFS Sentry Sync is being used you cannot alter a view without failure. 
> Example: 
> {code}
> 0: jdbc:hive2://localhost:10000/default> create or replace view jview as select *
from j1;
> Error: Error while processing statement: FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. (state=08S01,code=1)
> {code}
> HS2 Log: 
> {code}
> 2015-04-17 22:22:42,987 ERROR hive.ql.exec.DDLTask: org.apache.hadoop.hive.ql.metadata.HiveException:
Unable to alter table.
>         at org.apache.hadoop.hive.ql.metadata.Hive.alterTable(Hive.java:428)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.createView(DDLTask.java:4382)
>         at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:321)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:153)
>         at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:85)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1554)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1321)
>         at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1139)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:962)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:957)
>         at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:145)
>         at org.apache.hive.service.cli.operation.SQLOperation.access$000(SQLOperation.java:69)
>         at org.apache.hive.service.cli.operation.SQLOperation$1$1.run(SQLOperation.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:415)
>         at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1642)
>         at org.apache.hadoop.hive.shims.HadoopShimsSecure.doAs(HadoopShimsSecure.java:502)
>         at org.apache.hive.service.cli.operation.SQLOperation$1.run(SQLOperation.java:213)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         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: MetaException(message:java.lang.NullPointerException)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_with_environment_context_result$alter_table_with_environment_context_resultStandardScheme.read(ThriftHiveMetastore.java:34075)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_with_environment_context_result$alter_table_with_environment_context_resultStandardScheme.read(ThriftHiveMetastore.java:34052)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$alter_table_with_environment_context_result.read(ThriftHiveMetastore.java:33994)
>         at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_alter_table_with_environment_context(ThriftHiveMetastore.java:1163)
>         at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.alter_table_with_environment_context(ThriftHiveMetastore.java:1147)
>         at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.alter_table(HiveMetaStoreClient.java:277)
>         at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.alter_table(HiveMetaStoreClient.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:90)
>         at com.sun.proxy.$Proxy10.alter_table(Unknown Source)
>         at org.apache.hadoop.hive.ql.metadata.Hive.alterTable(Hive.java:426)
>         ... 22 more
> {code}
> HMS Log: 
> {code}
> 2015-04-17 22:22:42,942 DEBUG org.apache.sentry.hdfs.MetastorePlugin: #### Creating HMS
Path Update SeqNum : [36]
> 2015-04-17 22:22:42,942 DEBUG org.apache.sentry.hdfs.MetastorePlugin: #### HMS Path Update
[OP : renameAuthzObject, oldName : default.jview,newPath : null,newName : default.jview,newPat
> h : null]
> {code}
> The cause appears to be the fact that a null is being passed as part of paths update
which will result in the NPE on the Thrift layer seen on HS2. 



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

Mime
View raw message