hive的命令行启动方式
程序员文章站
2022-04-27 20:27:09
...
一、hiveCli
bin/hive [-e] [-f] --database name "SET xxx = ;SET xxx = ;"
二、hiveServer2
bin/hiveserver2
bin/beeline -u jdbc:hive2://localhost:10000
三、hive配置
$ bin/hive --hiveconf x1=y1 --hiveconf x2=y2 //this sets the variables x1 and x2 to y1 and y2 respectively
$ bin/hiveserver2 --hiveconf x1=y1 --hiveconf x2=y2 //this sets server-side variables x1 and x2 to y1 and y2 respectively
$ bin/beeline --hiveconf x1=y1 --hiveconf x2=y2 //this sets client-side variables x1 and x2 to y1 and y2 respectively.