hive bin下的進入beeline 命令行和hive有什么不同?


Hive 0.11中引入的HiveServer2有一個自己的CLI叫Beeline. HiveCLI現在已經過時,與Beeline相比,其缺少多用戶、安全和其他與HiveServer2兼容的特性。

從Shell啟動HiveServer2和Beeline的方法如下: 
  $ $HIVE_HOME/bin/hiveserver2

  $ $HIVE_HOME/bin/beeline -u jdbc:hive2://$HS2_HOST:$HS2_PORT

Beeline is started with the JDBC URL of the HiveServer2, which depends on the address and port where HiveServer2 was started.  By default, it will be (localhost:10000), so the address will look like jdbc:hive2://localhost:10000.

Or to start Beeline and HiveServer2 in the same process for testing purpose, for a similar user experience to HiveCLI:
  $ $HIVE_HOME/bin/beeline -u jdbc:hive2://


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM