Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. [root@pvillard ~]# su test
  2. [test@pvillard root]$ beeline
  3. Beeline version 1.2.1000.2.5.3.0-37 by Apache Hive
  4. beeline> !connect jdbc:hive2://pvillard:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
  5. Connecting to jdbc:hive2://pvillard:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2
  6. Enter username for jdbc:hive2://pvillard:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2: test
  7. Enter password for jdbc:hive2://pvillard:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2: ********
  8. Connected to: Apache Hive (version 1.2.1000.2.5.3.0-37)
  9. Driver: Hive JDBC (version 1.2.1000.2.5.3.0-37)
  10. Transaction isolation: TRANSACTION_REPEATABLE_READ
  11. 0: jdbc:hive2://pvillard> show tables;
  12. +-----------+--+
  13. | tab_name |
  14. +-----------+--+
  15. | student |
  16. +-----------+--+
  17. 1 row selected (0.199 seconds)
  18. 0: jdbc:hive2://pvillard> select * from student;
  19. +---------------+--+
  20. | student.name |
  21. +---------------+--+
  22. +---------------+--+
  23. No rows selected (0.599 seconds)
  24. 0: jdbc:hive2://pvillard> insert into table student values ('test');
  25. Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [test] does not have [SELECT] privilege on [default/values__tmp__table__1/tmp_values_col1] (state=42000,code=40000)
  26. 0: jdbc:hive2://pvillard>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement