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

HDP on Linux – Installation Forum

Unable to setup ambari

  • #30175
    Member

    Hi,
    Tried to setup ambari on centos but got the following error:
    [root@master centos]# ambari-server setup
    Using python /usr/bin/python2.6
    Initializing …
    Setup ambari-server
    Checking SELinux…
    SELinux status is ‘disabled’
    Checking iptables…
    iptables is disabled now
    Checking JDK…
    Downloading JDK from http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-6u31-linux-x64.bin to /var/lib/ambari-server/resources/jdk-6u31-linux-x64.bin
    JDK distribution size is 85581913 bytes
    jdk-6u31-linux-x64.bin… 100% (81.6 MB of 81.6 MB)
    Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-6u31-linux-x64.bin
    To install the Oracle JDK you must accept the license terms found at http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u21-license-159167.txt. Not accepting will cancel the Ambari Server setup.
    Do you accept the Oracle Binary Code License Agreement [y/n] (y)? y
    Installing JDK to /usr/jdk64
    /usr/sbin/ambari-server.py:626: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
    print “Installation of JDK has failed: %s\n” % e.message
    Installation of JDK has failed: Installation JDK returned code 1

    System Information:
    —————————-
    [root@master centos]# uname -a
    Linux master 2.6.32-358.0.1.el6.i686 #1 SMP Wed Feb 27 03:24:34 UTC 2013 i686 i686 i386 GNU/Linux
    [root@master centos]# yum repolist
    Loaded plugins: fastestmirror, refresh-packagekit
    Loading mirror speeds from cached hostfile
    * base: centos.fastbull.org
    * extras: centos.fastbull.org
    * updates: centos.spd.co.il
    repo id repo name status
    HDP-UTILS-1.1.0.15 Hortonworks Data Platform Utils Version – HDP-UTILS-1.1.0.15 53
    Updates-ambari-1.x ambari-1.x – Updates 35
    ambari-1.x Ambari 1.x 5
    base CentOS-6 – Base 4,802
    extras CentOS-6 – Extras 12
    updates CentOS-6 – Updates 762
    repolist: 5,669

  • Author
    Replies
  • #30297
    Sasha J
    Moderator

    Do you have sufficient disk space to install JDK?
    Try to install it manually, by executing the following command:
    /var/lib/ambari-server/resources/jdk-6u31-linux-x64.bin

    See if there any error message.
    Make sure you run this as root.

    Thank you!
    Sasha

    #30624
    Member

    I have enough space but still the problem exists

    #30626
    Sasha J
    Moderator

    you have 32 bit system:
    [root@master centos]# uname -a
    Linux master 2.6.32-358.0.1.el6.i686 #1 SMP Wed Feb 27 03:24:34 UTC 2013 i686 i686 i386

    You MUST have 64 bit.

    This clearly listed in prerequisites:

    The following operating systems are supported:

    Red Hat Enterprise Linux (RHEL) v5.x or 6.x (64-bit)

    CentOS v5.x or 6.x (64-bit)

    SUSE Linux Enterprise Server (SLES) 11, SP1 (64-bit)

    Thank you!
    Sasha

The forum ‘HDP on Linux – Installation’ 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.