HDP on Linux – Installation Forum

Unable to setup ambari

  • #30175

    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- Hortonworks Data Platform Utils Version – HDP-UTILS- 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

to create new topics or reply. | New User Registration

  • Author
  • #30297
    Sasha J

    Do you have sufficient disk space to install JDK?
    Try to install it manually, by executing the following command:

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

    Thank you!


    I have enough space but still the problem exists

    Sasha J

    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!

You must be to reply to this topic. | Create Account

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.