Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
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.