You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/06/04 16:51:42 UTC
ambari git commit: AMBARI-11691. Hive Start with non-root
ambari-agent fail (aonishuk)
Repository: ambari
Updated Branches:
refs/heads/trunk 09f6e93f5 -> cc6f4a682
AMBARI-11691. Hive Start with non-root ambari-agent fail (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/cc6f4a68
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cc6f4a68
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cc6f4a68
Branch: refs/heads/trunk
Commit: cc6f4a68209fedc97bcc2fb15697c1f176d6b183
Parents: 09f6e93
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Thu Jun 4 17:51:35 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Thu Jun 4 17:51:35 2015 +0300
----------------------------------------------------------------------
.../common-services/HIVE/0.12.0.2.0/package/scripts/hive.py | 1 +
.../src/test/python/stacks/2.0.6/HIVE/test_hive_client.py | 2 ++
.../src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py | 6 +++++-
.../src/test/python/stacks/2.0.6/HIVE/test_hive_server.py | 2 ++
.../src/test/python/stacks/2.1/HIVE/test_hive_metastore.py | 2 ++
5 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/cc6f4a68/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
index 32edf71..888a4c1 100644
--- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
+++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive.py
@@ -253,6 +253,7 @@ def hive(name=None):
File(format("/usr/lib/ambari-agent/{check_db_connection_jar_name}"),
content = DownloadSource(format("{jdk_location}{check_db_connection_jar_name}")),
+ mode = 0644,
)
if name == 'metastore':
http://git-wip-us.apache.org/repos/asf/ambari/blob/cc6f4a68/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_client.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_client.py b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_client.py
index 11e1d16..7e1fcca 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_client.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_client.py
@@ -95,6 +95,7 @@ class TestHiveClient(RMFTestCase):
)
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode = 0644,
)
self.assertNoMoreResources()
@@ -170,6 +171,7 @@ class TestHiveClient(RMFTestCase):
)
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode = 0644,
)
self.assertNoMoreResources()
http://git-wip-us.apache.org/repos/asf/ambari/blob/cc6f4a68/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py
index e46311c..2d049a9 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py
@@ -220,6 +220,7 @@ class TestHiveMetastore(RMFTestCase):
)
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode = 0644,
)
self.assertResourceCalled('File', '/tmp/start_metastore_script',
content = StaticFile('startMetastore.sh'),
@@ -323,6 +324,7 @@ class TestHiveMetastore(RMFTestCase):
)
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode = 0644,
)
self.assertResourceCalled('File', '/tmp/start_metastore_script',
content = StaticFile('startMetastore.sh'),
@@ -449,7 +451,9 @@ class TestHiveMetastore(RMFTestCase):
mode = 0644)
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
- content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'))
+ content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode = 0644,
+ )
self.assertResourceCalled('File', '/tmp/start_metastore_script',
content = StaticFile('startMetastore.sh'),
http://git-wip-us.apache.org/repos/asf/ambari/blob/cc6f4a68/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
index 051b8c3..b3feabf 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py
@@ -421,6 +421,7 @@ class TestHiveServer(RMFTestCase):
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content=DownloadSource('http://c6401.ambari.apache.org:8080/resources'
'/DBConnectionVerification.jar'),
+ mode=0644,
)
self.assertResourceCalled('File', '/tmp/start_hiveserver2_script',
content=Template('startHiveserver2.sh.j2'),
@@ -596,6 +597,7 @@ class TestHiveServer(RMFTestCase):
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content=DownloadSource(
'http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode=0644,
)
self.assertResourceCalled('File', '/tmp/start_hiveserver2_script',
content=Template('startHiveserver2.sh.j2'),
http://git-wip-us.apache.org/repos/asf/ambari/blob/cc6f4a68/ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py b/ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
index b97fa34..246f206 100644
--- a/ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
+++ b/ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py
@@ -239,6 +239,7 @@ class TestHiveMetastore(RMFTestCase):
)
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode = 0644,
)
self.assertResourceCalled('File', '/tmp/start_metastore_script',
content = StaticFile('startMetastore.sh'),
@@ -334,6 +335,7 @@ class TestHiveMetastore(RMFTestCase):
)
self.assertResourceCalled('File', '/usr/lib/ambari-agent/DBConnectionVerification.jar',
content = DownloadSource('http://c6401.ambari.apache.org:8080/resources/DBConnectionVerification.jar'),
+ mode = 0644,
)
self.assertResourceCalled('File', '/tmp/start_metastore_script',
content = StaticFile('startMetastore.sh'),