【问题标题】:Apache Ambari not starting in hortonworks sandboxApache Ambari 未在 hortonworks 沙箱中启动
【发布时间】:2016-04-06 21:30:30
【问题描述】:

我正在使用hortonworks sandbox,但我无法让 Apache Ambari 工作。

如您所见,在访问 Hortonworks 沙盒的欢迎页面时,我收到一条消息:

服务默认禁用。要启用该服务,您需要以 ambari 管理员身份登录。 ambari 管理员密码可以通过以 root 身份通过 ssh'ing 进入 vm 来设置,如“安全 Shell (SSH) 客户端”一节中所述。以 root 用户身份登录后,执行 ambari-admin-password-reset 并按照提示操作

我这样做了,但是当我访问链接时:127.0.0.1:8080 仍然无法正常工作。我检查了 ambari-server 是否正在运行:

[root@sandbox ~]# service ambari-server status
Using python  /usr/bin/python2
Ambari-server status
Ambari Server running
Found Ambari Server PID: 1497 at: /var/run/ambari-server/ambari-server.pid

我在 Hortonworks 沙箱中检查以确认 Ambari Server 正在侦听端口号 8080

[root@sandbox ~]# netstat -anop | grep 8080 
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      6320/java           off (0.00/0/0)
[root@sandbox ~]# 
[root@sandbox ~]# 
[root@sandbox ~]# ps aux | grep 6320
root      6320  9.0  4.9 4596612 398396 pts/0  Sl   05:28   3:43 /usr/lib/jvm/java/bin/java -server -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=60 -Dsun.zip.disableMemoryMapping=true -Xms512m -Xmx2048m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -Xms512m -Xmx2048m -Djava.security.auth.login.config=/etc/ambari-server/conf/krb5JAASLogin.conf -Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false -cp /etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/share/java/postgresql-jdbc.jar org.apache.ambari.server.controller.AmbariServer
root      8750  0.0  0.0   8452   908 pts/0    S+   06:09   0:00 grep 6320
[root@sandbox ~]# 

iptables 防火墙没有运行:

#service iptables status 
iptables: Firewall is not running.

从Guest到Host的端口转发设置正确

如何解决这个问题?

【问题讨论】:

    标签: hadoop hortonworks-data-platform ambari


    【解决方案1】:

    检查沙箱中的防火墙是否阻止它。

    [..]# service iptables status

    然后在停止 iptables 后尝试访问它。

    [..]# service iptables stop

    如果这也没有帮助,请检查您的 Virtual Box 的端口转发设置(我假设您使用的是 Virtual Box)。

    【讨论】:

    • 谢谢,我查过了,但似乎不是原因。
    • 我明白了。那么,当您从主机访问localhost:8080 时,它会导致 404 还是仅仅需要永远加载或任何其他错误消息?也可以从浏览器查看您是否可以访问其他服务,例如(localhost:4200、web ssh 或 Zeppelin 等)
    • 我可以访问 web ssh 和 Zeppelin,但是在尝试访问 8080 (apache ambari) 时出现连接被拒绝错误 #telnet 127.0.0.1 8080 Trying 127.0.0.1... telnet: Unable to connect到远程主机:连接被拒绝
    • 我猜你的访客系统有静态 IP。
    【解决方案2】:

    ​我在端口转发设置中设置了Guest IP地址并重新启动了VM,现在它可以工作了。

    【讨论】:

      【解决方案3】:

      我将 horton 沙盒导入 Vmware 播放器。现在我应该如何分配主机IP地址和端口号(8080)Apache Ambari

      【讨论】:

        【解决方案4】:

        如果有人在寻找 ambari 的管理员密码;它是:

        User: admin
        Pass: 4o12t0n 
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2021-01-14
          • 1970-01-01
          • 1970-01-01
          • 2020-04-25
          相关资源
          最近更新 更多