This is an automated email from the ASF dual-hosted git repository.

aonishuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 008a3c1  AMBARI-22637. Fix misuses of os.path.dirname(path) in yarn.py
008a3c1 is described below

commit 008a3c1ef08b7fa39668b3e563cb88d5b414bec9
Author: Akira Ajisaka <[email protected]>
AuthorDate: Fri Jan 12 12:23:22 2018 +0900

    AMBARI-22637. Fix misuses of os.path.dirname(path) in yarn.py
---
 .../resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py  | 4 ++--
 .../resources/common-services/YARN/3.0.0.3.0/package/scripts/yarn.py  | 4 ++--
 .../resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
 
b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
index d077c84..2f7f6e5 100644
--- 
a/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
+++ 
b/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/package/scripts/yarn.py
@@ -443,7 +443,7 @@ def setup_ats():
     )
   # app timeline server 1.5 directories
   if not is_empty(params.entity_groupfs_store_dir):
-    parent_path = os.path.dirname(params.entity_groupfs_store_dir)
+    parent_path = 
os.path.dirname(os.path.abspath(params.entity_groupfs_store_dir))
     params.HdfsResource(parent_path,
                         type="directory",
                         action="create_on_execute",
@@ -460,7 +460,7 @@ def setup_ats():
                         mode=params.entity_groupfs_store_dir_mode
                         )
   if not is_empty(params.entity_groupfs_active_dir):
-    parent_path = os.path.dirname(params.entity_groupfs_active_dir)
+    parent_path = 
os.path.dirname(os.path.abspath(params.entity_groupfs_active_dir))
     params.HdfsResource(parent_path,
                         type="directory",
                         action="create_on_execute",
diff --git 
a/ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/package/scripts/yarn.py
 
b/ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/package/scripts/yarn.py
index 7731aeb..f32d4d7 100644
--- 
a/ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/package/scripts/yarn.py
+++ 
b/ambari-server/src/main/resources/common-services/YARN/3.0.0.3.0/package/scripts/yarn.py
@@ -445,7 +445,7 @@ def setup_ats():
     )
   # app timeline server 1.5 directories
   if not is_empty(params.entity_groupfs_store_dir):
-    parent_path = os.path.dirname(params.entity_groupfs_store_dir)
+    parent_path = 
os.path.dirname(os.path.abspath(params.entity_groupfs_store_dir))
     params.HdfsResource(parent_path,
                         type="directory",
                         action="create_on_execute",
@@ -462,7 +462,7 @@ def setup_ats():
                         mode=params.entity_groupfs_store_dir_mode
                         )
   if not is_empty(params.entity_groupfs_active_dir):
-    parent_path = os.path.dirname(params.entity_groupfs_active_dir)
+    parent_path = 
os.path.dirname(os.path.abspath(params.entity_groupfs_active_dir))
     params.HdfsResource(parent_path,
                         type="directory",
                         action="create_on_execute",
diff --git 
a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py
 
b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py
index 147fb38..a6cc6fa 100755
--- 
a/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py
+++ 
b/contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/YARN/package/scripts/yarn.py
@@ -339,7 +339,7 @@ def yarn(name=None, config_dir=None):
       )
     # app timeline server 1.5 directories
     if not is_empty(params.entity_groupfs_store_dir):
-      parent_path = os.path.dirname(params.entity_groupfs_store_dir)
+      parent_path = 
os.path.dirname(os.path.abspath(params.entity_groupfs_store_dir))
       params.HdfsResource(parent_path,
                           type="directory",
                           action="create_on_execute",
@@ -356,7 +356,7 @@ def yarn(name=None, config_dir=None):
                           mode=params.entity_groupfs_store_dir_mode
                           )
     if not is_empty(params.entity_groupfs_active_dir):
-      parent_path = os.path.dirname(params.entity_groupfs_active_dir)
+      parent_path = 
os.path.dirname(os.path.abspath(params.entity_groupfs_active_dir))
       params.HdfsResource(parent_path,
                           type="directory",
                           action="create_on_execute",

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to