This is the documentation for CDH 5.1.x. Documentation for other versions is available at Cloudera Documentation.

Starting HiveServer1 and the Hive Console

  Important:

Because of concurrency and security issues, HiveServer1 is deprecated in CDH 5 and will be removed in a future release. Cloudera recommends you migrate to Beeline and HiveServer2 as soon as possible. The Hive Console is not needed if you are using Beeline with HiveServer2.

To start HiveServer1:
$ sudo service hiveserver start

See also Running HiveServer2 and HiveServer Concurrently.

To start the Hive console:

$ hive
hive>

To confirm that Hive is working, issue the show tables; command to list the Hive tables; be sure to use a semi-colon after the command:

hive> show tables;
OK
Time taken: 10.345 seconds
Page generated September 3, 2015.