ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: AMBARI-11212. Some services start fails due to Permission denied exception (aonishuk)
Date Mon, 18 May 2015 14:13:22 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk b950812eb -> 7389c57f7


AMBARI-11212. Some services start fails due to Permission denied exception (aonishuk)


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

Branch: refs/heads/trunk
Commit: 7389c57f75c5b09b78a319b946aaaca69bc9f643
Parents: b950812
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon May 18 17:13:18 2015 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon May 18 17:13:18 2015 +0300

----------------------------------------------------------------------
 .../common-services/HDFS/2.1.0.2.0/package/scripts/hdfs.py       | 1 +
 ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py | 2 ++
 .../src/test/python/stacks/2.0.6/HDFS/test_journalnode.py        | 2 ++
 ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py | 2 ++
 .../src/test/python/stacks/2.0.6/HDFS/test_nfsgateway.py         | 2 ++
 .../src/test/python/stacks/2.0.6/HDFS/test_snamenode.py          | 2 ++
 ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py     | 4 ++++
 7 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7389c57f/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs.py
b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs.py
index 95fe90c..418571a 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs.py
@@ -101,6 +101,7 @@ def hdfs(name=None):
 
   # for source-code of jar goto contrib/fast-hdfs-resource
   File(format("{ambari_libs_dir}/fast-hdfs-resource.jar"),
+       mode=0644,
        content=StaticFile("fast-hdfs-resource.jar")
   )
   

http://git-wip-us.apache.org/repos/asf/ambari/blob/7389c57f/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py
index 9b7a91f..4eb8178 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_datanode.py
@@ -382,6 +382,7 @@ class TestDatanode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/var/lib/hadoop-hdfs',
                               owner = 'hdfs',
@@ -436,6 +437,7 @@ class TestDatanode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/var/lib/hadoop-hdfs',
                               owner = 'hdfs',

http://git-wip-us.apache.org/repos/asf/ambari/blob/7389c57f/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py
index d05e2dc..3fe2acb 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_journalnode.py
@@ -211,6 +211,7 @@ class TestJournalnode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
 
   def assert_configure_secured(self):
@@ -252,6 +253,7 @@ class TestJournalnode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
 
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/7389c57f/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
index 35b783a..c753c39 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py
@@ -845,6 +845,7 @@ class TestNamenode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/hadoop/hdfs/namenode',
                               owner = 'hdfs',
@@ -887,6 +888,7 @@ class TestNamenode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/hadoop/hdfs/namenode',
                               owner = 'hdfs',

http://git-wip-us.apache.org/repos/asf/ambari/blob/7389c57f/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_nfsgateway.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_nfsgateway.py b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_nfsgateway.py
index 9d6d165..7255ea5 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_nfsgateway.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_nfsgateway.py
@@ -223,6 +223,7 @@ class TestNFSGateway(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
 
   def assert_configure_secured(self):
@@ -258,6 +259,7 @@ class TestNFSGateway(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
 
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/7389c57f/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py
index 8630fcf..fd665c3 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py
@@ -232,6 +232,7 @@ class TestSNamenode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/hadoop/hdfs/namesecondary',
                               owner = 'hdfs',
@@ -281,6 +282,7 @@ class TestSNamenode(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/hadoop/hdfs/namesecondary',
                               owner = 'hdfs',

http://git-wip-us.apache.org/repos/asf/ambari/blob/7389c57f/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py
index e34258b..c2fdffa 100644
--- a/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py
+++ b/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_zkfc.py
@@ -66,6 +66,7 @@ class TestZkfc(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
                               owner = 'hdfs',
@@ -160,6 +161,7 @@ class TestZkfc(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
                               owner = 'hdfs',
@@ -253,6 +255,7 @@ class TestZkfc(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
                               owner = 'hdfs',
@@ -318,6 +321,7 @@ class TestZkfc(RMFTestCase):
                               )
     self.assertResourceCalled('File', '/var/lib/ambari-agent/lib/fast-hdfs-resource.jar',
         content = StaticFile('fast-hdfs-resource.jar'),
+        mode = 0644,
     )
     self.assertResourceCalled('Directory', '/var/run/hadoop',
                               owner = 'hdfs',


Mime
View raw message