Hue问题记录

问题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


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值