[
https://issues.apache.org/jira/browse/AMBARI-14706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Blum resolved AMBARI-14706.
-----------------------------------
Resolution: Not A Problem
After running the scripts on a regular Ubuntu VM - this appears to be related
to an issue with Docker 1.9.1. Here's the updated issue and relevatn Docker
issue:
http://stackoverflow.com/a/34846786/1377866
Issue with Java processes in Docker -
https://github.com/docker/docker/issues/18180
> Ambari 2.2 - exiting with non-zero status code on Ubuntu 14.04
> --------------------------------------------------------------
>
> Key: AMBARI-14706
> URL: https://issues.apache.org/jira/browse/AMBARI-14706
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.1.2, 2.2.0
> Environment: Ubuntu 14.04 LTS, Java 8 (Oracle)
> Reporter: Michael Blum
>
> I'm attempting to Dockerize an Ambari deployment to support running it along
> side my Hadoop containers. Here is my Dockerfile:
> FROM ubuntu:14.04
> ENV AMBARI_HOME /opt/ambari
> ENV AMBARI_VERSION 2.2.0.0
> RUN export DEBIAN_FRONTEND=noninteractive \
> && apt-get update \
> && apt-get -y install wget software-properties-common
> python-software-properties openssh-client openssh-server
> # Install Java.
> RUN \
> echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true
> | debconf-set-selections && \
> add-apt-repository -y ppa:webupd8team/java && \
> apt-get update && \
> apt-get install -y oracle-java8-installer && \
> rm -rf /var/lib/apt/lists/* && \
> rm -rf /var/cache/oracle-jdk8-installer
> # Define commonly used JAVA_HOME variable
> ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
> RUN mkdir -p "$AMBARI_HOME"
> WORKDIR $AMBARI_HOME
> # passwordless ssh
> RUN export DEBIAN_FRONTEND=noninteractive \
> && echo -e 'y\n'|ssh-keygen -q -t rsa -N "" -f /root/.ssh/id_rsa \
> && cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
> RUN export DEBIAN_FRONTEND=noninteractive \
> && wget -nv
> http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.0.0/ambari.list
> -O /etc/apt/sources.list.d/ambari.list \
> && apt-key adv --recv-keys --keyserver keyserver.ubuntu.com
> B9733A7A07513CAD \
> && apt-get update \
> && apt-get -y install ambari-server
> #Disable SELinux
> RUN echo SELINUX=disabled >> /etc/selinux/config
> EXPOSE 8080
> RUN ambari-server setup -s --verbose --java-home $JAVA_HOME
> CMD ambari-server start
> When I start the container I get the following error -
> Using python /usr/bin/python2
> Starting ambari-server
> Ambari Server running with administrator privileges.
> About to start PostgreSQL
> Organizing resource files at /var/lib/ambari-server/resources...
> WARNING: setpgid(73, 0) failed - [Errno 13] Permission denied
> 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
> Waiting for server start.........
> ERROR: Exiting with exit code -1.
> REASON: Ambari Server java process died with exitcode . Check
> /var/log/ambari-server/ambari-server.out for more information.
> There doesn't seem to be anything useful in the ambari-server.log or .out
> I found an issue for WARNING: setpgid(73, 0) failed - [Errno 13] Permission
> denied fixed here:
> https://issues.apache.org/jira/browse/AMBARI-14466
> From reading the HortonWorks does for deploying to Ubuntu 14.04, this should
> work:
> Install Ambari on Ubuntu 14.04
> http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo_ubuntu14.html
> I've tried to deploy with the embedded Postges as well as an external one
> with the same results.
> One interesting note is that even with the error, Ambari appears to be up and
> I can login as the default admin/admin, but when calling `ambari-server stop'
> it says no process is running...
> root@3e6d778b43f8:/opt/ambari# ambari-server stop
> Using python /usr/bin/python2
> Stopping ambari-server
> Ambari Server is not running
> root@3e6d778b43f8:/opt/ambari# jps
> 868 AmbariServer
> 955 Jps
> I'll replicate this setup on my Ubuntu box tomorrow and see if the same thing
> happens.
> Thanks!
> StackOverflow post: http://stackoverflow.com/q/34846229/1377866
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)