安装后无法访问couldera manager 5 web控制台

0md85ypi  于 2021-06-02  发布在  Hadoop
关注(0)|答案(0)|浏览(359)

我正在centos 7机器上设置一个hadoop集群(2.6),有三个节点,集群现在运行良好。但是,在完成cm安装后,我无法访问cloudera manager(5.6)web控制台,尽管它的服务似乎正在运行。
以下是我的发现,请帮助我可能的原因:
所有进程都已启动并运行!

[root@vm-txxxxxx1 ~]# jps
27978 ResourceManager
15368 Main
27052 Jps
27400 DataNode
27639 SecondaryNameNode
28106 NodeManager
27258 NameNode

防火墙已停止

[root@vm-txxxxx1 ~]# service iptables stop
Redirecting to /bin/systemctl stop  iptables.service

[root@vm-txxxxxx1 ~]# service iptabes status
Redirecting to /bin/systemctl status  iptabes.service
iptabes.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
Mar 24 19:24:05 vm-txxxxx1 systemd[1]: Stopped IPv4 firewall with iptables.

监听端口7180并在本地进行测试

[root@vm-txxxxxx1 ~]# netstat -tulpn | grep 7180
tcp        0      0 0.0.0.0:7180            0.0.0.0:*               LISTEN      15368/java

[root@vm-txxxxx1 ~]# telnet localhost 7180
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

selinux已禁用:

[root@vm-txxxxxx1 ~]# getenforce
Disabled

主机文件条目

[root@vm-txxxxxx1 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4
172.16.xx.x1 vm-txxxxxx1
172.16.xx.x2 vm-xxxxxxx2
172.16.xx.x4 del1-vm-poc04

验证cloudera manager是否正在运行:

[root@vm-txxxxxx1 ~]# service cloudera-scm-server status
cloudera-scm-server.service - LSB: Cloudera SCM Server
   Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-server)
   Active: active (exited) since Tue 2016-03-22 17:09:55 IST; 2 days ago
  Process: 15344 ExecStart=/etc/rc.d/init.d/cloudera-scm-server start (code=exited, status=0/SUCCESS)

Mar 22 17:09:50 vm-txxxxxx1 systemd[1]: Starting LSB: Cloudera SCM Server...
Mar 22 17:09:50 vm-txxxxx1 su[15366]: (to cloudera-scm) root on none
Mar 22 17:09:55 vm-txxxxxx1 cloudera-scm-server[15344]: Starting cloudera-scm-server:...]
Mar 22 17:09:55 vm-txxxxxx1 systemd[1]: Started LSB: Cloudera SCM Server.
Hint: Some lines were ellipsized, use -l to show in full.

下面是cloudera服务器日志中的行

[root@vm-txxxxx1 ~]# tail -f /var/log/cloudera-scm-server/cloudera-scm-server.log

2016-03-24 18:21:00,398 INFO StaleEntityEviction:com.cloudera.server.cmf.StaleEntityEvictionThread: Reaped total of 0 deleted commands
2016-03-24 18:21:00,400 INFO StaleEntityEviction:com.cloudera.server.cmf.StaleEntityEvictionThread: Found no commands older than 2014-03-25T12:51:00.399Z to reap.
2016-03-24 18:21:00,400 INFO StaleEntityEviction:com.cloudera.server.cmf.StaleEntityEvictionThread: Wizard is active, not reaping scanners or configurators

我正在访问cloudera管理器页面http://172.16.xx.1x:7180最后它说“连接超时”,看起来我的http请求无法连接到服务器,这就是为什么日志中没有出现任何内容。如果我遗漏了什么,请提出建议。
提前谢谢!
@havnar:谢谢你的建议,我确认ssl现在没有启用,并分享curl结果。

[root@vm-txxxx1 ~]# curl -i -u 'admin:admin' http://localhost:7180/api/v1/tools/echo
HTTP/1.1 200 OK
Expires: Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: CLOUDERA_MANAGER_SESSIONID=1etaj5o42vprlndf43ua7rbaf;Path=/;HttpOnly
Content-Type: application/json
Date: Fri, 25 Mar 2016 05:50:36 GMT
Transfer-Encoding: chunked
Server: Jetty(6.1.26.cloudera.4)

{
  "message" : "Hello, World!"

我试图停止并重新启动cloudera服务,没有发现可疑的,有一个警告,这是看起来有点可疑,搜索他们谷歌,没有任何看起来相关。

[root@vm-txxxxx1 ~]# vi /var/log/cloudera-scm-server/cloudera-scm-server.log

2016-03-24 20:22:29,002 WARN main:org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory: HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.internal.StandardQueryCache]; using defaults.
2016-03-24 20:22:28,581 INFO main:org.hibernate.engine.jdbc.internal.LobCreatorBuilder: HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException

@哈夫纳:我不明白你说的“在运行cm的机器上试试猫”是什么意思,如果还有什么需要检查的话,请告诉我。
谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题