今天遇到一个问题,执行hive无法连接mysql。纠结好久,各种查找无果。后来发现mysql没有启动!!!
service mysqld status
mysqld is stopped
启动mysql
成功连接
[root@min1 ~]# service mysqld start
Starting mysqld: [ OK ]
[root@min1 ~]# hive
Logging initialized using configuration in jar:file:/home/hadoop/develop_env/apache-hive-1.2.1-bin/lib/hive-common-1.2.1.jar!/hive-log4j.properties
Putting the global hiverc in $HIVE_HOME/bin/.hiverc is deprecated. Please use $HIVE_CONF_DIR/.hiverc instead.
hive>