ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alejan...@apache.org
Subject ambari git commit: AMBARI-18190. Fix downloaded jar permission for the feature introduced in AMBARI-17955 (Venkat Ranganathan via alejandro)
Date Wed, 17 Aug 2016 22:22:58 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk ac68843fc -> 50d8928c7


AMBARI-18190. Fix downloaded jar permission for the feature introduced in AMBARI-17955 (Venkat
Ranganathan via alejandro)


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

Branch: refs/heads/trunk
Commit: 50d8928c747a35401cd31fc904ed38571dad581e
Parents: ac68843
Author: Alejandro Fernandez <afernandez@hortonworks.com>
Authored: Wed Aug 17 15:26:25 2016 -0700
Committer: Alejandro Fernandez <afernandez@hortonworks.com>
Committed: Wed Aug 17 15:26:27 2016 -0700

----------------------------------------------------------------------
 .../common-services/FALCON/0.5.0.2.1/package/scripts/falcon.py  | 5 +++--
 .../src/test/python/stacks/2.1/FALCON/test_falcon_server.py     | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/50d8928c/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/falcon.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/falcon.py
b/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/falcon.py
index e889710..2ac79cb 100644
--- a/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/falcon.py
+++ b/ambari-server/src/main/resources/common-services/FALCON/0.5.0.2.1/package/scripts/falcon.py
@@ -219,7 +219,8 @@ def falcon(type, action = None, upgrade_type=None):
       if not os.path.exists(params.target_jar_file):
         try :
           File(params.target_jar_file,
-           content = DownloadSource(params.bdb_resource_name))
+           content = DownloadSource(params.bdb_resource_name),
+           mode = 0755)
         except :
            exc_msg = traceback.format_exc()
            exception_message = format("Caught Exception while downloading {bdb_resource_name}:\n{exc_msg}")
@@ -228,7 +229,7 @@ def falcon(type, action = None, upgrade_type=None):
         if not os.path.isfile(params.target_jar_file) :
           error_message = """
 If you are using bdb as the Falcon graph db store, please run
-ambari-server setup --jdbc-db=bdb --jdbc-driver=<path to je5.0.73.jar
+ambari-server setup --jdbc-db=bdb --jdbc-driver=<path to je5.0.73.jar>
 on the ambari server host.  Otherwise falcon startup will fail.
 Otherwise please configure Falcon to use HBase as the backend as described
 in the Falcon documentation.

http://git-wip-us.apache.org/repos/asf/ambari/blob/50d8928c/ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py b/ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py
index 9f9b774..ab053b7 100644
--- a/ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py
+++ b/ambari-server/src/test/python/stacks/2.1/FALCON/test_falcon_server.py
@@ -44,7 +44,8 @@ class TestFalconServer(RMFTestCase):
     self.assert_configure_default()
 
     self.assertResourceCalled('File', '/usr/lib/falcon/server/webapp/falcon/WEB-INF/lib/je-5.0.73.jar',
-      content=DownloadSource('http://c6401.ambari.apache.org:8080/resources//je-5.0.73.jar')
+      content=DownloadSource('http://c6401.ambari.apache.org:8080/resources//je-5.0.73.jar'),
+      mode=0755
     )
 
     self.assertResourceCalled('Execute', '/usr/lib/falcon/bin/falcon-start -port 15000',


Mime
View raw message