See this page for more details about Beeline:
https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients
Launch Beeline:
Use the command
!exit
to quit Beeline.
Connect to Hive:
You might get an error when you connect as
hive
user (you might get the same error with another user):
To fix this error,
you have to edit the file
${HADOOP_HOME}/etc/hadoop/core-site.xml
and add the following:
You should be able to connect to the Hive after applying the changes and restarting Hadoop:
To connect directly to a specific database:
Show Tables: