I am trying to connect to hive installed in my machine through Beeline client. when I give the \'beeline\' command & connect to Hive, the client is asking for user name
beeline --incremental=true
Note: The command line option “—incremental=true” is optional, but will extend the amount of time that you can remain idle and not have your connection dropped.
!connect jdbc:hive2://silver-server-
hive.app.google.com:10000/default
Note: You will be prompted for your username & password. USE user name and Password
beeline> !connect jdbc:hive2:// silver-server-hive.app.google.com:10000/default
scan complete in 3ms
Connecting to jdbc:hive2:// silver-server-hive.app.google.com:10000/default
Enter username for jdbc:hive2:// silver-server-hive.app.google.com:10000/default:suman
Enter password for jdbc:hive2:// silver-server-hive.app.google.com:10000/default: *********
set mapred.job.queue.name=;
Note: You need to set a queue in order to run queries.
USE google_map_data;
Note: You should be in a database when executing queries.
!reconnect jdbc:hive2:// silver-server-hive.app.google.com:10000/default;
!quit
Notes:
beeline -u jdbc:hive2:// silver-server-hive.app.google.com:10000\
-n -p --incremental=true**
Beeline supports a rich set of SQL query functions.
SHOW DATABASES;
USE ;
SHOW TABLES;
DESC ;
DESC FORMATTED ;
Simple limited select statements
SELECT * FROM google_map_city limit 25;
- 热议问题