问题1:
Could not connect to quickstart.cloudera:10000
gotten and still exists when having issued:
sudo service hive-server2 restart
解决方案:
sudo -u hdfs hadoop dfsadmin -safemode leave
service hive-metastore restart
netstat -tanp | grep 10000
问题2:
java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient
解决方案:
原因:因为没有正常启动Hive 的 Metastore Server服务进程。
解决方法:启动Hive 的 Metastore Server服务进程,执行如下命令:
./hive --service metastore &
netstat -tanp | grep 9083
kill -9 进程号
hive --service metastore &
重点目录位置3:
查看服务
[root@quickstart /]# cd /etc/init.d/
[root@quickstart init.d]# ls
命令位置
[root@quickstart init.d]# which hive
/usr/bin/hive
hue.ini文件配置
[root@quickstart init.d]# find / -name hue.ini
/etc/hue/conf.empty/hue.ini
[root@quickstart init.d]# vim /etc/hue/conf.empty/hue.ini
问题4:
Hive Failed to access Hive warehouse: /user/hive/warehouse
http://gethue.com/how-to-configure-hue-in-your-hadoop-cluster/
常用操作:
docker run --privileged=true --hostname=quickstart.cloudera --name lh2 -t -i -d cloudera/quickstart /usr/bin/docker-quickstart
service hue restart
service mysqld restart
service cloudera-scm-server restart
service cloudera-scm-agent restart
service hadoop-hdfs-namenode restart
service hadoop-hdfs-datanode restart
service hadoop-hdfs-secondarynamenode restart
service hadoop-yarn-nodemanager restart
service hadoop-yarn-resourcemanager restart
service hadoop-mapreduce-historyserver restart
service hadoop-hdfs-journalnode restart
service hadoop-httpfs restart
service hive-metastore restart
service hive-server2 restart
service impala-server restart
service impala-catalog restart
service impala-state-store restart
----------------------------------
8020:8020 -p
8888:8888 -p
7180:7180 -p
21050:21050 -p
50070:50070 -p
50075:50075 -p
50010:50010 -p
50020:50020
0.0.0.0:7180->7180/tcp,
0.0.0.0:8020->8020/tcp,
0.0.0.0:8888->8888/tcp,
0.0.0.0:10000->10000/tcp,
0.0.0.0:21050->21050/tcp,
0.0.0.0:50010->50010/tcp,
0.0.0.0:50020->50020/tcp,
0.0.0.0:50070->50070/tcp,
0.0.0.0:50075->50075/tcp