AMBARI-5705. Fail to install hive client with error: Fail: Execution of curl 
returned 22. Fix typo. (swagle)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ba1c02b4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ba1c02b4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ba1c02b4

Branch: refs/heads/branch-1.6.0
Commit: ba1c02b463bccd6fd6aa06804bdf7ca81a041be8
Parents: caf42b7
Author: Siddharth Wagle <swa...@hortonworks.com>
Authored: Thu May 8 15:32:39 2014 -0700
Committer: Siddharth Wagle <swa...@hortonworks.com>
Committed: Thu May 8 15:35:00 2014 -0700

----------------------------------------------------------------------
 .../2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py    | 2 +-
 .../stacks/2.0.6/hooks/before-INSTALL/test_before_install.py       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ba1c02b4/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
index d7e952a..0165394 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-INSTALL/scripts/shared_initialization.py
@@ -132,7 +132,7 @@ def setup_java():
   if not params.jdk_name:
     return
 
-  Execute(format("mkdir -p {artifact_dir} ; '\
+  Execute(format("mkdir -p {artifact_dir} ; \
   curl --noproxy {ambari_server_hostname} -kf \
   --retry 10 {jdk_location}/{jdk_name} -o {jdk_curl_target}"),
           path = ["/bin","/usr/bin/"],

http://git-wip-us.apache.org/repos/asf/ambari/blob/ba1c02b4/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
 
b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
index db3c6b5..b4eeb7a 100644
--- 
a/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
+++ 
b/ambari-server/src/test/python/stacks/2.0.6/hooks/before-INSTALL/test_before_install.py
@@ -32,7 +32,7 @@ class TestHookBeforeInstall(RMFTestCase):
     self.assertResourceCalled('Package', 'curl', )
     self.assertResourceCalled('Package', 'net-snmp', )
     
-    self.assertResourceCalled('Execute', "mkdir -p /tmp/HDP-artifacts/ ; '  
curl --noproxy c6401.ambari.apache.org -kf   --retry 10 
http://c6401.ambari.apache.org:8080/resources//jdk-7u45-linux-x64.tar.gz -o 
/tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz",
+    self.assertResourceCalled('Execute', "mkdir -p /tmp/HDP-artifacts/ ;   
curl --noproxy c6401.ambari.apache.org -kf   --retry 10 
http://c6401.ambari.apache.org:8080/resources//jdk-7u45-linux-x64.tar.gz -o 
/tmp/HDP-artifacts//jdk-7u45-linux-x64.tar.gz",
                               not_if = 'test -e 
/usr/jdk64/jdk1.7.0_45/bin/java',
                               path = ['/bin', '/usr/bin/'],
                               )

Reply via email to