Hive连接方式:
cd /home/wql/app/apache-hive-1.2.2-bin/bin;
nohup hiveserver2 1>/home/wql/app/logs/hiveserver.log 2>/home/wql/app/logs/hiveserver.err &
wql@wql-pc:~/app/apache-hive-1.2.2-bin/bin$ beeline
Beeline version 1.2.1.spark2 by Apache Hive
beeline> !connect jdbc:hive2://wql-pc:10000
Connecting to jdbc:hive2://wql-pc:10000
Enter username for jdbc:hive2://wql-pc:10000: wql
Enter password for jdbc:hive2://wql-pc:10000: ***
log4j:WARN No appenders could be found for logger (org.apache.hive.jdbc.Utils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Connected to: Apache Hive (version 1.2.2)
Driver: Hive JDBC (version 1.2.1.spark2)
Transaction isolation: TRANSACTION_REPEATABLE_READ
JDBC方式:
wql@wql-pc:~/app/apache-hive-1.2.2-bin/bin$ beeline -u jdbc:hive2://wql-pc:10000 -n wql