Giter Site home page Giter Site logo

Comments (5)

mhmxs avatar mhmxs commented on August 22, 2024

Hi @qinzhaokun, first of all thanks for the report. Do you use native Docker on Linux or Boot2Docker on OSX? Could you please try to download the resources from the container with curl or wget? And also please check the DNS server with nslookup or dig in the container. Is it possible to use newer version of Ambari, we suggest 2.1.0-consul.

Cheers,
Richard

from docker-ambari.

qinzhaokun avatar qinzhaokun commented on August 22, 2024

hello, @mhmxs I use native docker on linux. I use curl in container. it shows:

root@zqin:/home/zqin/Desktop/ambari-1.7.0# docker exec -it amb0 bash
bash-4.1# curl http://s3.amazonaws.com/dev.hortonworks.com/HDP/hdp_urlinfo.json
curl: (6) Couldn't resolve host 's3.amazonaws.com'
bash-4.1# curl http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
curl: (6) Couldn't resolve host 'public-repo-1.hortonworks.com'

the container cannot reslove the url!! but it is good out of container.
since the container does have nslookup and dig commands, I cannot check DNS server. I use yum command "install bind-utils" to set up them ,but it fails due to 404 Not found.

I have used the docker ambari of latest version but the same problem still exits.

How can I solve this and start the ambari server?

from docker-ambari.

mhmxs avatar mhmxs commented on August 22, 2024

I tried on Centos and Ubuntu too with different Docker version. I started the Ambari server docker run -d --dns 127.0.0.1 --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN= --name amb0 -h amb0.mycorp.kom sequenceiq/ambari:1.7.0 --tag ambari-server=true and it worked as well. It's hard to resolve network issues via a textfield here, but i guess your Docker configuration went wrong. Could you please export some extra Docker options before sourcing ambari-functions?

export $DOCKER_OPTS="--dns 127.0.0.1 --dns 8.8.8.8 --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN=$KEYCHAIN"

And let's see what's happen? Which version of Docker do you use?

from docker-ambari.

qinzhaokun avatar qinzhaokun commented on August 22, 2024

hello @mhmxs :
Thank you very much. it is the DNS problem. I can ping IP address in the container but cannot resolve any DNS address. I use 192.168.1.1 to instead of 127.0.0.1 like docker run -d --dns 192.168.1.1 --entrypoint /usr/local/serf/bin/start-serf-agent.sh -e KEYCHAIN= --name amb0 -h amb0.mycorp.kom sequenceiq/ambari:1.7.0 --tag ambari-server=true

and finally get no error in ambari server log and I can use curl $containerIP:8080 and it did return data. However, when checking ambari server status, it is still showing not running. It is normal?

root@Master:/home/hadoop# docker inspect --format='{{.NetworkSettings.IPAddress}}' amb0
172.17.0.5
root@Master:/home/hadoop# curl 172.17.0.5:8080
curl: (7) Failed to connect to 172.17.0.5 port 8080: Connection refused
root@Master:/home/hadoop# curl 172.17.0.5:8080

<script src="javascripts/vendor.js"></script> <script src="javascripts/app.js"></script> <script> $(document).ready(function() { require('initialize'); // make favicon work in firefox $('link[type*=icon]').detach().appendTo('head'); $('#loading').remove(); }); </script> <title>Ambari</title>
...Loading...
root@Master:/home/hadoop# docker exec -it amb0 bash bash-4.1# ambari-server status Using python /usr/bin/python2.6 Ambari-server status Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid bash-4.1# jps 113 AmbariServer 350 Jps

from docker-ambari.

mhmxs avatar mhmxs commented on August 22, 2024

I don't think so, but if cluster is running and nodes find each other it's good :)

from docker-ambari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.