فهرست منبع

AMBARI-1603. JCE install on ambari-server fails if /tmp/HDP-artifacts does not exists. (swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1455617 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 سال پیش
والد
کامیت
9ceaf73ce7
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 3 0
      CHANGES.txt
  2. 2 1
      ambari-agent/src/main/puppet/modules/hdp/manifests/java/jce/package.pp

+ 3 - 0
CHANGES.txt

@@ -458,6 +458,9 @@ Trunk (unreleased changes):
 
 
  BUG FIXES
  BUG FIXES
 
 
+ AMBARI-1603. JCE install on ambari-server fails if /tmp/HDP-artifacts does 
+ not exists. (swagle)
+
  AMBARI-1612. Parameterizing nagios and ganglia monitoring rpm version.
  AMBARI-1612. Parameterizing nagios and ganglia monitoring rpm version.
  (Ashish Singh via yusaku)
  (Ashish Singh via yusaku)
 
 

+ 2 - 1
ambari-agent/src/main/puppet/modules/hdp/manifests/java/jce/package.pp

@@ -38,11 +38,12 @@ define hdp::java::jce::package(
   #TODO:SUHAS how to avoid redownload and install if correct version already present.
   #TODO:SUHAS how to avoid redownload and install if correct version already present.
   # may be check the file sizes for local_policy and export_US policy jars? 
   # may be check the file sizes for local_policy and export_US policy jars? 
   # UNLESS  => "test -e ${java_exec}"
   # UNLESS  => "test -e ${java_exec}"
-  $curl_cmd = "curl -f --retry 10 ${jce_location}/${jce_policy_zip} -o ${jce_curl_target}"
+  $curl_cmd = "mkdir -p ${artifact_dir}; curl -f --retry 10 ${jce_location}/${jce_policy_zip} -o ${jce_curl_target}"
   exec{ "jce-download ${name}":
   exec{ "jce-download ${name}":
     command => $curl_cmd,
     command => $curl_cmd,
     creates => $jce_curl_target,
     creates => $jce_curl_target,
     path    => ["/bin","/usr/bin/"],
     path    => ["/bin","/usr/bin/"],
+    unless => $jce_curl_target
   }
   }
 
 
   $security_dir = "${java_home_dir}/jre/lib/security"
   $security_dir = "${java_home_dir}/jre/lib/security"