The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Ambari Forum

Ambari Installation HDP 2.0 Base URL Failing

  • #57401
    Vikas Sharma
    Participant

    I am trying to Setup Hadoop Cluster using Ambari. I am new to Hadoop and HDP. I am facing

    several challenges. Looking for help so that I can setup my cluster

    During Install Cluster Wizard on “Select Stack” , I selected HDP 2.0.6 and I am installing

    it on CentOS 6.4 64 bit machines. I have configured Password Less SSH for all Nodes from

    Ambari Server host.

    Installation Wizard fails on “Advance Repository Options” during Base URL Validation. I

    am not able to move forward as Base URL for HDP 2.0 Repository could not be validated ,

    Getting 400 Bad Request

    Urgent Help is required

    Thanks
    – Vikas Sharma

  • Author
    Replies
  • #57402
    Jeff Sposetti
    Moderator

    Can you confirm which version of Ambari you are using?

    Ambari 1.6.1 is the latest.

    http://docs.hortonworks.com/HDPDocuments/Ambari-1.6.1.0/index.html

    What is the Base URL being shown? Can you include a screenshot?

    #57417
    Vikas Sharma
    Participant

    I have upgraded to Ambari 1.6.1 but still I am getting the same issue. I am behind web proxy.

    Please let me know how could I share the screenshot.

    #57422
    Yusaku Sako
    Moderator

    If your system is set up to use a web proxy, then you would need to configure Ambari Server with appropriate proxy settings (otherwise, the Base Repo URLs are checked without a proxy and is expected to fail).
    Please take a look at http://docs.hortonworks.com/HDPDocuments/Ambari-1.6.1.0/bk_ambari_reference/content/ambari_internet_proxy.html

    #57424
    Vikas Sharma
    Participant

    I have already added the proxy details there and my file look like follows

    AMBARI_PASSHPHRASE=”DEV”
    export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS’ -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 -Dhttp.proxyHost=http://{myproxyaddress} -Dhttp.proxyPort=8080 -Dhttp.proxyUser={myProxyUser} -Dhttp.proxyPassword={myproxyPassword}’

    Please let me know if I am doing something wrong as it is still not working for me. This issue has become really critical for me…

    Thanks a lot in Advance

    #57431
    Jeff Sposetti
    Moderator

    Is there anything being printed to the /var/log/ambari-server/ambari-server.log? What if you check the “Skip validation” option?

    After you click HDP 2.0 Stack, what are the Base URLs that are in the input fields by default?

    #57497
    Vikas Sharma
    Participant

    Hi Jeff,

    It fails on the Hosts Check on next Step if I use Skip Validation option and Following is the Log written in Ambari-server.log:,

    *******************************
    8:47:20,048 ERROR [qtp725211281-21] AmbariManagementControllerImpl:2736 – IOException loading the base URL
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
    at sun.net.www.http.HttpClient.New(HttpClient.java:307)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:977)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
    at org.apache.ambari.server.controller.internal.URLStreamProvider.processURL(URLStreamProvider.java:140)
    at org.apache.ambari.server.controller.internal.URLStreamProvider.readFrom(URLStreamProvider.java:100)
    at org.apache.ambari.server.controller.internal.URLStreamProvider.readFrom(URLStreamProvider.java:175)
    at org.apache.ambari.server.controller.AmbariManagementControllerImpl.updateRespositories(AmbariManagementControllerImpl.java:2733)
    at org.apache.ambari.server.controller.internal.RepositoryResourceProvider$1.invoke(RepositoryResourceProvider.java:109)
    at org.apache.ambari.server.controller.internal.RepositoryResourceProvider$1.invoke(RepositoryResourceProvider.java:106)
    at org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:295)
    at org.apache.ambari.server.controller.internal.RepositoryResourceProvider.updateResources(RepositoryResourceProvider.java:106)
    at org.apache.ambari.server.controller.internal.ClusterControllerImpl.updateResources(ClusterControllerImpl.java:295)
    at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.update(PersistenceManagerImpl.java:99)
    at org.apache.ambari.server.api.handlers.UpdateHandler.persist(UpdateHandler.java:42)
    at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:72)
    at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
    at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:103)
    at org.apache.ambari

The forum ‘Ambari’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.