Advertisement
Guest User

Untitled

a guest
Aug 10th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. val hiveContext = new HiveContext(sc)
  2. HiveThriftServer2.startWithContext(hiveContext)
  3. val df = hiveContext.read.parquet("file:/some.parquet.gz")
  4. df.registerTempTable("test")
  5.  
  6. 0: jdbc:hive2://localhost:10000/default (closed)> !connect jdbc:hive2://localhost:10000/default root root
  7. Connecting to jdbc:hive2://localhost:10000/default
  8. Connected to: Spark SQL (version 1.6.1)
  9. Driver: Spark Project Core (version 1.6.2)
  10. Transaction isolation: TRANSACTION_REPEATABLE_READ
  11. 1: jdbc:hive2://localhost:10000/default> show tables;
  12. +------------+--------------+--+
  13. | tableName | isTemporary |
  14. +------------+--------------+--+
  15. +------------+--------------+--+
  16. No rows selected (0.315 seconds)
  17. 1: jdbc:hive2://localhost:10000/default>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement