Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Ambari blueprints deployment and wrong JDK being installed

avatar
New Member

I'm trying to use a custom JDK with ambari, so I setup the server with ambari-server setup -j <custom_java_home>.

So nothing wrong at that point, the server runs flawlessly.

However, if I try to provision a cluster using blueprints (which doesn't give me a JDK option unlike the manual process), during bootstrap on the agents, a yum install java-openjdk-* is executed at some unknown point...

*Nothing* related is printed to stdout/stderr of the components installation...

Any ideas?

1 ACCEPTED SOLUTION

avatar
New Member

ok, here's what the problem was.... in the bootstrap process there are some rpm packages being installed that depend on the package 'java'... as I was installing from source no package could provide java and yum would resolve to openjdk...

here's a little chef snipplet that installs the rpm from oracle (you can grab the url from their official distribution):

execute 'downloading java' do
  command <<-EOF
  cd /root && \
  wget --no-cookies --no-check-certificate --header \
  \"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie\" \
  \"#{node['java']['pkg_url']}\"
  EOF
  creates "/root/#{node['java']['pkg_name']}"
end
yum_package 'java' do
  source "/root/#{node['java']['pkg_name']}"
end

View solution in original post

1 REPLY 1

avatar
New Member

ok, here's what the problem was.... in the bootstrap process there are some rpm packages being installed that depend on the package 'java'... as I was installing from source no package could provide java and yum would resolve to openjdk...

here's a little chef snipplet that installs the rpm from oracle (you can grab the url from their official distribution):

execute 'downloading java' do
  command <<-EOF
  cd /root && \
  wget --no-cookies --no-check-certificate --header \
  \"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie\" \
  \"#{node['java']['pkg_url']}\"
  EOF
  creates "/root/#{node['java']['pkg_name']}"
end
yum_package 'java' do
  source "/root/#{node['java']['pkg_name']}"
end