hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject 答复: Show current roles failing on Apache hive 0.13.1
Date Thu, 20 Nov 2014 11:05:56 GMT
Refer to the org.apache.Hadoop.hive.ql.exec.DDLTask.roleDDL function, AuthorizationMode doesn't
support  SHOW CURRENT ROLES statement
But AuthorizationModeV2 supports this:

private int roleDDLV2(RoleDDLDesc roleDDLDesc) throws HiveException, IOException {
      List<String> roleNames = authorizer.getCurrentRoleNames();
      writeListToFileAfterSort(roleNames, roleDDLDesc.getResFile());

But by default,hive uses AuthorizationMode (because the default value of
means AuthorizationMode )
If you want to use AuthorizationModeV2,you must use another authorization class which implements
the interface
but not the interface
such as

发件人: Ravi Kumar []
发送时间: 2014年11月17日 21:51
主题: Show current roles failing on Apache hive 0.13.1

Hi All
I am trying to run ‘Show current roles’ on Apache hive 0.13.1 but getting following error,

Error in role operation show_current_role on role name null, error message Unkown role operation
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

Can someone tell me whether this command is supported on apache Hive 0.13.1 or not. If it
is supported the what could be the issue. Any pointer would be really helpful.

Thanks and regrads,

DISCLAIMER ========== This e-mail may contain privileged and confidential information which
is the property of Persistent Systems Ltd. It is intended only for the use of the individual
or entity to which it is addressed. If you are not the intended recipient, you are not authorized
to read, retain, copy, print, distribute or use this message. If you have received this communication
in error, please notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.

This communication is intended only for the addressee(s) and may contain information that
is privileged and confidential. You are hereby notified that, if you are not an intended recipient
listed above, or an authorized employee or agent of an addressee of this communication responsible
for delivering e-mail messages to an intended recipient, any dissemination, distribution or
reproduction of this communication (including any attachments hereto) is strictly prohibited.
If you have received this communication in error, please notify us immediately by a reply
e-mail addressed to the sender and permanently delete the original e-mail communication and
any attachments from all storage devices without making or otherwise retaining a copy.

View raw message