Home Forums HDP on Linux – Installation Unable to setup ambari

This topic contains 3 replies, has 2 voices, and was last updated by  Sasha J 1 year, 2 months ago.

  • Creator
    Topic
  • #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

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #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

    Collapse
    #30624


    Member

    I have enough space but still the problem exists

    Collapse
    #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

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