cd /usr/lib/ambari-server/web/javascripts/ && gunzip app.js.gz sed -i.bak "s@].contains(mPoint@, '/etc/resolv.conf', '/etc/hostname', '/etc/hosts'].contains(mPoint@g" /usr/lib/ambari-server/web/javascripts/app.js cd /usr/lib/ambari-server/web/javascripts/ && gzip -9 app.jsHope this helps, and get your Hadoop cluster properly installed in the container.
Open source, Apache, SOA, SCA and other good technical tips & tricks on general development
Monday, March 23, 2015
Installing Hadoop via Apache Ambari in Docker Containers
If you are here, you have been trying to install your Hadoop Data Platform using Apache Ambari in Docker containers, and keep getting weird directory suggestions in the components configuration as shown below :
The reason this is happening is because Ambari uses mount points to suggest these installation directories, and Docker is mounting some network artifacts into the containers (e.g. /etc/hosts). This has been raised as a defect for the Ambari Community (AMBARI-8620), which I have provided a patch and it's currently applied in the codestream for Ambari 2.1 release.
In case you are using an existing version of Ambari, then you could use the script below to fixup Ambari, or even include in your Dockerfile:

No comments:
Post a Comment