Comments (5)
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.
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.
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.
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
See third-party tools/resources that Ambari uses and their respective authors
from docker-ambari.
I don't think so, but if cluster is running and nodes find each other it's good :)
from docker-ambari.
Related Issues (20)
- public-hostname.sh no longer works in non-cloud environment. HOT 1
- Some questions : start, commit, restart... HOT 7
- can't work correctly in cloudbreak HOT 5
- ambari agent failed to start
- Why change SSHD port to 2022? HOT 4
- Best way to deploy with java 8 HOT 3
- hbase not working with blueprints HOT 3
- Install Apache Spark HOT 4
- Is it impossible to install HDP-1.3 stack by sequenceiq/ambari:1.7.0 image? HOT 2
- Best/Recommended upgrade path from Ambari 2.1/HDP 2.3 to Ambari 2.2/HDP 2.4 ? HOT 2
- mysql-connector-java-5.1.17.jar is outdated and doesn't work with RDS HOT 1
- RFI: Where is Dockerfile for sequenceiq/consul HOT 3
- Needs update to Ambari 2.4.1.0 & HDP 2.5 HOT 4
- What SSH private key can be used HOT 1
- Question: How can I access the Ambari UI from outside the host? HOT 3
- How to create Ambari cluster HOT 2
- How to change the value of USE_CONSUL_DNS HOT 1
- Image doesn't contain "which" command HOT 1
- Be able to customize the public ip resolver script
- Changing base url in ambari.repo to use latest version of Ambari doesnt take effect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-ambari.