Home Forums HDP on Linux – Installation ambari-server setup error

This topic contains 17 replies, has 2 voices, and was last updated by  Sivagamasundari Veerabahu 6 months ago.

  • Creator
    Topic
  • #40347

    I installed the ambari server successfully and trying to setup the server on RHEL 5.8
    I am getting the below error while trying issue the cmd
    sudo ambari-server setup

    sudo: ambari-server: command not found

    Pardon for my ignorance not sure what I am doing wrong here… where should i be issuing this cmd and why is it not working ?
    Please advice

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

The topic ‘ambari-server setup error’ is closed to new replies.

  • Author
    Replies
  • #40740

    Sure Thanks.. Dave,
    Yes I started the Ambari server yesterday, after fixing the property file (ambari.properties) it was pointing to the wrong Java home path.

    Collapse
    #40661

    Dave
    Moderator

    Hi,

    Can you check /usr/jdk64/jdk1.6.0_31/
    Does this directory exist?
    Java Home should point to this.

    Also, your ambari server is started. Did you check the logs? Did you check to see if it was listening on 8080?

    Can you start a new thread with the actual problem you are facing, as we have fixed the ambari-server setup issue.

    Thanks

    Dave

    Collapse
    #40655

    This is what it says when I try to start.. but it does not start.

    t15bw5h@if21t02ha ~]$ sudo ambari-server start
    Using python /usr/bin/python2.6
    Starting ambari-server
    Ambari Server running with ‘root’ privileges.
    Checking iptables…
    iptables is disabled now. please reenable later.
    Server PID at: /var/run/ambari-server/ambari-server.pid
    Server out at: /var/log/ambari-server/ambari-server.out
    Server log at: /var/log/ambari-server/ambari-server.log
    Ambari Server ‘start’ completed successfully.

    Also I see that ambari.properties in /etc/ambari-server/conf is refering to java home as /usr/bin/java
    Shoudlnt the java home point to JDk? like /usr/java/jdk1.7.0_25 ?

    Collapse
    #40644

    Thanks Dave, I will try to get rid of version 1.7 and install 1.6 update 31 and try again..

    When I tried to re-run the ambari-server setup
    without the -j option, I expected it to try to install the jdk.. but it did not.. It straight away went into Checking JDK and completed.
    Any reason why it did not attempt to download ?

    Collapse
    #40642

    Dave
    Moderator

    Hi,

    The ambari-server logs are found in /var/log/ambari-server/
    When you issue the command ambari-server start it should give you some indication as to what may be happening.

    Thanks

    Dave

    Collapse
    #40641

    I tried with the -jce option.. it says it completed fine.. setup completed without any warning messages.. But ambari is not starting.

    Where I can find the logs?

    Collapse
    #40640

    Dave
    Moderator

    Hi Sivagamasundari,

    Please note that HDP is not QA’d with JDK 1.7 and you will run into issues.

    Thanks

    Dave

    Collapse
    #40633

    I am trying to install HDP 1.3.2 On Linux RHEL -5.8

    sudo find / -name java
    Bring me back this list

    /etc/java
    /etc/alternatives/java
    /opt/openv/java
    /opt/openv/java/jre/bin/java
    /usr/java
    /usr/java/jdk1.7.0_25/bin/java
    /usr/java/jdk1.7.0_25/jre/bin/java
    /usr/bin/java
    /usr/lib/jvm-exports/java
    /usr/lib/jvm/java
    /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/bin/java
    /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/bin/java
    /usr/lib/java
    /usr/include/c++/4.1.1/java
    /usr/include/c++/4.1.1/gnu/java
    /usr/share/java
    /usr/share/doc/db4-devel-4.3.29/ref/java
    /usr/share/doc/libidn-devel-0.6.5/contrib/java
    /usr/share/swig/1.3.29/java
    /var/lib/alternatives/java

    So I am assuming the yum install ambari server did not install Java.. its the setup cmd that will try to install if you dont give the -j option.
    I tried running without -j option and because the way our server is setup, its failing to grap the file from http.. so I decided to use the existing version of JDK.
    But i am stuck again with jce
    So now I am trying to see if I can download the jce zip file manually and then run the server setup cmd with -jce option

    Collapse
    #40632

    Dave
    Moderator

    Hi,

    Dont run the ambari-server setup with the j option.
    It should have installed JDK 1.6 31 from the installation
    Otherwise point it to the JDK which was installed when you ran yum install ambari-sever

    I expect you are running HDP 2.0 beta – or trying to install this?
    Kerberos is not supported officially in the beta but will be in the GA, just be sure you configure everything correctly and it should install.

    Thanks

    Dave

    Collapse
    #40625

    Dave,
    This is a newly built machine.. but I did not build it. when they built it I asked for Java JDK v1.6 update 31 or later and they installed Java JDK1.7

    here is the output of env
    Please adivce.

    HOSTNAME=if21t02ha
    TERM=xterm
    SHELL=/bin/bash
    HISTSIZE=1000
    SSH_CLIENT=172.31.68.186 57130 22
    SSH_TTY=/dev/pts/0
    http_proxy=http://nyproxy:80
    USER=t15bw5h
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    MAIL=/var/spool/mail/t15bw5h
    PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/t15bw5h/bin:/sbin:/usr/sbin
    INPUTRC=/etc/inputrc
    PWD=/home/t15bw5h
    JAVA_HOME=/usr/java/jdk1.7.0_25
    LANG=en_US.UTF-8
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SHLVL=1
    HOME=/home/t15bw5h
    LOGNAME=t15bw5h
    CVS_RSH=ssh
    SSH_CONNECTION=172.31.68.186 57130 10.66.31.6 22
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    DISPLAY=localhost:10.0
    G_BROKEN_FILENAMES=1
    _=/bin/env

    Collapse
    #40615

    Dave
    Moderator

    Hi,

    Can you run ‘env’ and paste the output here?

    Did you build this machine from the OS yourself?

    Thanks

    Dave

    Collapse
    #40587

    Thanks Dave,
    I had to add the path to the $PATH variable and then I was able to run it from anywhere..But I am again stuck while executing the server setup
    I already have the Java jdk installed so I entered the following cmd after setting the $JAVA_HOME variable

    sudo ambari-server setup -j $JAVA_HOME

    JCE Policy files are required for secure HDP setup. Please ensure all hosts have the JCE unlimited strength policy 6, files.

    ERROR: Failed to download JCE policy files:
    ERROR: Reason: Failed to download JCE Policy archive : Request header doesn’t contain Content-Length. Please check that JCE Policy archive is available at http://public-repo-1.hortonworks.com/ARTIFACTS/jce_policy-6.zip . Also you may install JCE Policy archive manually using –jce-policy command line argument.
    Completing setup…
    Configuring database…

    But its failing to download the JCE file.. everything runs successfully except the JCE part,
    I can manually down load it to the directory its asking me to.. but then I need to run a cmd with -jce arg ? Not sure what it means
    Can you please shed some light on this..
    Thanks !!

    Collapse
    #40577

    Dave
    Moderator

    Hi Sivagamasundari,

    Anything which is in usr/sbin should be ‘runnable’ from anywhere.

    You can change directory if you like but it shouldn’t be necessary.
    You will want to start the ambari-server as root though

    Thanks

    Dave

    Collapse
    #40476

    Awesome.. Yes I do see it under /usr/sbin

    Should I change dir and be in /usr/bin before I run sudo ambari-server setup ?
    By the way.. Thanks for the instant reply!

    Collapse
    #40467

    Dave
    Moderator

    Hi Sivagamasundari,

    You just run:

    ambari-server setup

    The command should be in /usr/sbin

    Thanks

    Dave

    Collapse
    #40465

    Dave,
    Yes we had issues with the postgre dependancy but we passed that hurdle by bringing in the package and re-ran the
    sudo yum install ambari-server, which I believe completed successfully because it ran the transaction test, finished successfully and
    also said that it installed
    postgresql,
    postgresql-server
    libffi
    python26
    pyhton26-lib
    ambari-server

    It said complete!

    Also under /etc/ambari-server/conf i see
    log4j.properties
    ambari.properties

    I also see a bunch of jar files under
    /usr/lib/ambari-server

    So what is it I am doing wrong why is sudo yum ambari-server setup not working
    Please advice

    Thanks a lot again!! Dave

    Collapse
    #40413

    Dave
    Moderator

    Hi Sivagamasundari,

    This means that ambari-server is not installed.
    You can check to see if there is anythign in /usr/lib/ambari-server/ or /etc/ambari-server/conf

    From your earlier post it looks like ambari-server was not installed due to not having postgresql available from your RHEL repo.

    Thanks

    Dave

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