Skip to content

Commit

Permalink
Set java home to 1.8 in sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
abajwa-hw committed Sep 15, 2016
1 parent b8fa548 commit 629b752
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package/scripts/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
#autodetect jdk home
jdk64_home=config['hostLevelParams']['java_home']

#hack for current sandbox where ambari still uses java 7
sandbox_jdk8_loc = '/usr/lib/jvm/jre-1.8.0-openjdk.x86_64'
if os.path.isfile(sandbox_jdk8_loc + '/bin/java'):
jdk64_home = sandbox_jdk8_loc

#autodetect ambari server for metrics
if 'metrics_collector_hosts' in config['clusterHostInfo']:
metrics_collector_host = str(config['clusterHostInfo']['metrics_collector_hosts'][0])
Expand Down

0 comments on commit 629b752

Please sign in to comment.