Created 04-13-2016 03:23 PM
How to grant a user with "-" in its user name such as 'ambari-qa'?
0: jdbc:hive2://> show grant user ambari-qa in ALL;
Error: Error while compiling statement: FAILED: ParseException line 1:22 missing EOF at '-' near 'ambari' (state=42000,code=40000)
0: jdbc:hive2://> show grant user ambari\\-qa in ALL;
Error: Error while compiling statement: FAILED: ParseException line 1:22 character '\' not supported here line 1:23 character '\' not supported here (state=42000,code=40000)
Created 04-13-2016 03:46 PM
hive> show grant user `ambari-qa` on ALL;
Created 04-13-2016 03:46 PM
hive> show grant user `ambari-qa` on ALL;
Created 04-13-2016 06:55 PM
Thanks. back tick works.