Home Forums HDP on Linux – Installation Unable to connect to Ambari Login Page

This topic contains 5 replies, has 2 voices, and was last updated by  Jason Rubin 4 months, 4 weeks ago.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #56704

    Jason Rubin
    Participant

    Thank you for the help. I can now access the install page. Not sure what fixed the problem, but I installed EPEL, Node.js, and brunch (HTML5 package). However, when I reach the Target Hosts step, the install fails and returns this error message:

    “{‘exitstatus': 1, ‘log': “Host registration aborted. Ambari Agent host cannot reach Ambari Server ‘[public DNS].compute-1.amazonaws.com:8080′. Please check the network connectivity between the Ambari Agent host and the Ambari Server”}”

    The input I use is [public DNS] for the host name (as I changed the hostname to the public DNS following this tutorial http://docs.hortonworks.com/HDPDocuments/Ambari-1.6.0.0/bk_using_Ambari_book/content/ambari-chap1-5-5.html). Then I use ec2-user as the ssh user, and the PEM key is the key I normally use to log into the server via Putty.

    To answer your previous questions:

    1) I am running Ambari server in an EC2 account with the username ec2-user. I must do sudo ambari-server start to start the server.

    4) I have tried installing with both selinux turned off and turned on.

    Collapse
    #56652

    Jeff Sposetti
    Moderator

    Hi, Can you confirm:

    1) Are you running ambari-server under root or a sudoer user (like ec2-user)? It is root by default and during ambari-server setup, you can change to be ec2-user, for example?
    2) Is that the end of the log?
    3) Can you also provide /var/log/ambari-server/ambari-server.out ?
    4) Also what is you selinux setting?

    http://docs.hortonworks.com/HDPDocuments/Ambari-1.6.0.0/bk_using_Ambari_book/content/ambari-chap1-5-7.html

    Thanks.

    Collapse
    #56601

    Jason Rubin
    Participant

    Can’t fit all of the log (but here is the important stuff I believe) Let me know what you think and if you want to see more of the log:

    09:17:39,708 INFO [main] Configuration:363 – Reading password from existing file
    09:17:39,724 INFO [main] Configuration:553 – Hosts Mapping File null
    09:17:39,725 INFO [main] HostsMap:60 – Using hostsmap file null
    09:17:41,680 INFO [main] AmbariServer:530 – Getting the controller
    09:17:43,338 INFO [main] StackExtensionHelper:358 – No services defined for stack: HDP-1.3.3
    09:17:44,751 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:44,791 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:44,794 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:44,800 INFO [main] ActionDefinitionManager:124 – Added custom action definition for ambari_hdfs_rebalancer
    09:17:44,800 INFO [main] ActionDefinitionManager:124 – Added custom action definition for nagios_update_ignore
    09:17:44,801 INFO [main] CertificateManager:69 – Initialization of root certificate
    09:17:44,801 INFO [main] CertificateManager:71 – Certificate exists:true
    09:17:45,057 INFO [main] Configuration:442 – Credential provider creation failed. Reason: Master key initialization failed.
    but also
    09:17:46,586 INFO [main] Configuration:544 – Web App DIR test /usr/lib/ambari-server/web
    09:17:46,590 INFO [main] CertificateManager:69 – Initialization of root certificate
    09:17:46,590 INFO [main] CertificateManager:71 – Certificate exists:true
    09:17:46,636 ERROR [main] ViewRegistry:700 – Could not create extracted view archive directory /var/lib/ambari-server/resources/views/work.

    Collapse
    #56600

    Jason Rubin
    Participant

    We checked the logs and found at error: UnknownHostException. We used this (http://docs.hortonworks.com/HDPDocuments/Ambari-1.6.0.0/bk_using_Ambari_book/content/ambari-chap1-5-5.html) to change it. We made it our Amazon Public DNS name. I also put the AWS EC2 public ip address into the hosts file and followed all the steps in the link. We tried changing the port but there was no success there. The server is running, but we still can’t access the Ambari Web UI. Here are out server logs:

    09:17:39,708 INFO [main] Configuration:363 – Reading password from existing file
    09:17:39,724 INFO [main] Configuration:553 – Hosts Mapping File null
    09:17:39,725 INFO [main] HostsMap:60 – Using hostsmap file null
    09:17:41,680 INFO [main] AmbariServer:530 – Getting the controller
    09:17:43,338 INFO [main] StackExtensionHelper:358 – No services defined for stack: HDP-1.3.3
    09:17:44,751 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:44,791 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:44,794 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:44,800 INFO [main] ActionDefinitionManager:124 – Added custom action definition for ambari_hdfs_rebalancer
    09:17:44,800 INFO [main] ActionDefinitionManager:124 – Added custom action definition for nagios_update_ignore
    09:17:44,801 INFO [main] CertificateManager:69 – Initialization of root certificate
    09:17:44,801 INFO [main] CertificateManager:71 – Certificate exists:true
    09:17:45,057 INFO [main] Configuration:442 – Credential provider creation failed. Reason: Master key initialization failed.
    09:17:45,373 INFO [main] StackExtensionHelper:358 – No services defined for stack: HDP-1.3.3
    09:17:45,669 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:45,675 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:45,680 INFO [Stack Version Loading Thread] LatestRepoCallable:73 – Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
    09:17:45,684 WARN [main] ActionDefinitionManager:117 – Ignoring action definition as a different definition by that name already exists. ActionDefinition: actionName: ambari_hdfs_rebalancer actionType: SYSTEM inputs: threshold,[principal],[keytab] description: HDFS Rebalance targetService: HDFS targetComponent: NAMENODE defaultTimeout: 600 targetType: ANY

    (CONTINUE LOG IN NEXT POST)

    Collapse
    #56588

    Jeff Sposetti
    Moderator

    In the ec2 blog post, can you confirm you’ve opened-up port 8080 on the ambari server so it is reachable from the outside world?

    Also, check /var/log/ambari-server/ambari-server.log for any errors.

    Collapse
Viewing 5 replies - 1 through 5 (of 5 total)