You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the ambari-base Dockerfile manually downloads a specific jdk. Is there a reason this was required? Any suggestions for how we could extend the ambari-base of ambari-server/agent Dockerfiles to install java 8 before startup?
Thanks @lalyos. We're trying to build Dockerfiles based on ambari-server and ambari-agent with FROM, instead of copying them and replacing some params.
I've gotten it to work sort of by putting the following into our Dockerfile
I think it hadn't been working for me before because I had forgotten to run ambari-server restart, or I was running it after the cluster had already been deployed.
I definitely agree about preinstalling into the image to help the startup time. I think I'll open a separate thread about the possibilities of preinstalling or predownloading the contents of the HDP repo, as that would also help significantly.
I'm not sure that it's needed to choose the JDK, v7 is quite old now, v8 is standard and minimal version for future stack versions.
The pull request #138 will change the jdk to be v8
Activity
lalyos commentedon Feb 23, 2016
The jdk is preinstalled, in order to speed up startup time.
Right now the official ambari release is using the sepcific 1.7.0_67 version.
There are some security related issues reported with java8, so right now
we provide only java7.
However if you want to experiment with java 8 you can build the docker images locally:
Just change 2 Lines in ambar-base/Dockerfile
Than from the ambari-base dir execute a:
docker build -t hortonworks/ambari-base .After that do the same for
ambari-agentandambari-serverimagesrmelick commentedon Feb 24, 2016
Thanks @lalyos. We're trying to build Dockerfiles based on ambari-server and ambari-agent with FROM, instead of copying them and replacing some params.
I've gotten it to work sort of by putting the following into our Dockerfile
Then, after ambari-server starts, but before I register the blueprint or start cluster deployment, I run
I think it hadn't been working for me before because I had forgotten to run ambari-server restart, or I was running it after the cluster had already been deployed.
I definitely agree about preinstalling into the image to help the startup time. I think I'll open a separate thread about the possibilities of preinstalling or predownloading the contents of the HDP repo, as that would also help significantly.
grozeille commentedon Jul 23, 2017
I'm not sure that it's needed to choose the JDK, v7 is quite old now, v8 is standard and minimal version for future stack versions.
The pull request #138 will change the jdk to be v8