ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [2/2] git commit: AMBARI-8080. On non-root server, client download configs fails. (aonishuk)
Date Fri, 31 Oct 2014 19:48:11 GMT
AMBARI-8080. On non-root server, client download configs fails. (aonishuk)


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

Branch: refs/heads/branch-1.7.0
Commit: 08c03e373296a0d1bda398def1e0aeaf7e0a14f6
Parents: e5c08c5
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Fri Oct 31 21:47:09 2014 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Fri Oct 31 21:47:09 2014 +0200

----------------------------------------------------------------------
 ambari-agent/pom.xml                           | 2 ++
 ambari-server/pom.xml                          | 9 +++++++++
 ambari-server/src/main/python/ambari-server.py | 2 ++
 3 files changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/08c03e37/ambari-agent/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-agent/pom.xml b/ambari-agent/pom.xml
index 3761649..0fd7e25 100644
--- a/ambari-agent/pom.xml
+++ b/ambari-agent/pom.xml
@@ -251,6 +251,7 @@
             </mapping>
             <mapping>
               <directory>${jinja.install.dir}</directory>
+              <filemode>755</filemode>
               <username>root</username>
               <groupname>root</groupname>
               <sources>
@@ -421,6 +422,7 @@
                 <prefix>${jinja.install.dir}</prefix>
                 <user>root</user>
                 <group>root</group>
+                <filemode>755</filemode>
               </mapper>
             </data>
             <data>

http://git-wip-us.apache.org/repos/asf/ambari/blob/08c03e37/ambari-server/pom.xml
----------------------------------------------------------------------
diff --git a/ambari-server/pom.xml b/ambari-server/pom.xml
index 96e84c4..a5d9bbc 100644
--- a/ambari-server/pom.xml
+++ b/ambari-server/pom.xml
@@ -291,6 +291,7 @@
             </mapping>
             <mapping>
               <directory>${jinja.install.dir}</directory>
+              <filemode>755</filemode>
               <username>root</username>
               <groupname>root</groupname>
               <sources>
@@ -431,6 +432,12 @@
               </sources>
             </mapping>
             <mapping>
+              <directory>/var/lib/ambari-server/data/tmp</directory>
+              <filemode>755</filemode>
+              <username>root</username>
+              <groupname>root</groupname>
+            </mapping>
+            <mapping>
               <directory>/var/lib/ambari-server/resources/apps</directory>
               <filemode>755</filemode>
               <username>root</username>
@@ -584,6 +591,7 @@
                 <path>/var/run/ambari-server/stack-recommendations</path>
                 <path>/var/log/ambari-server</path>
                 <path>/var/lib/ambari-server/resources/upgrade</path>
+                <path>/var/lib/ambari-server/data/tmp</path>
               </paths>
             </data>
             <!-- TODO: should be included all subdirs, if exists-->
@@ -970,6 +978,7 @@
               <mapper>
                 <type>perm</type>
                 <prefix>${jinja.install.dir}</prefix>
+                <filemode>755</filemode>
                 <user>root</user>
                 <group>root</group>
               </mapper>

http://git-wip-us.apache.org/repos/asf/ambari/blob/08c03e37/ambari-server/src/main/python/ambari-server.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/ambari-server.py b/ambari-server/src/main/python/ambari-server.py
index 69f436b..513ca00 100755
--- a/ambari-server/src/main/python/ambari-server.py
+++ b/ambari-server/src/main/python/ambari-server.py
@@ -564,6 +564,8 @@ NR_ADJUST_OWNERSHIP_LIST = [
   ("/etc/ambari-server/conf/ldap-password.dat", "640", "{0}", False),
   ("/var/run/ambari-server/stack-recommendations/", "644", "{0}", True),
   ("/var/run/ambari-server/stack-recommendations/", "755", "{0}", False),
+  ("/var/lib/ambari-server/data/tmp/", "644", "{0}", True),
+  ("/var/lib/ambari-server/data/tmp/", "755", "{0}", False),
   # Also, /etc/ambari-server/conf/password.dat
   # is generated later at store_password_file
 ]


Mime
View raw message