...
No Format |
---|
$ $HIVE_HOME/bin/hive |
HiveServer2 (introduced in Hive 0.11) has its own CLI called Beeline. HiveCLI is now deprecated in favor of Beeline, as it lacks the multi-user, security, and other capabilities of HiveServer2. To run HiveServer2 and Beeline from shell:
No Format |
---|
$ $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:
No Format |
---|
$ $HIVE_HOME/bin/beeline -u jdbc:hive2://
|
Running HCatalog
To run the HCatalog server from the shell in Hive release 0.11.0 and later:
...