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

jialiang 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 b39fa9db4e AMBARI-26249: Addendum, adjusting the location of creating 
directory code (#3920)
b39fa9db4e is described below

commit b39fa9db4eb62f9e97d883635e31a0e5c8fe4d4e
Author: Peng Lu <[email protected]>
AuthorDate: Fri Jan 3 13:55:55 2025 +0800

    AMBARI-26249: Addendum, adjusting the location of creating directory code 
(#3920)
---
 .../YARN/package/scripts/application_timeline_server.py       | 11 +----------
 .../stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py |  6 ++++++
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py
 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py
index 99c7e4e82c..e5acc2fdee 100644
--- 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py
+++ 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/application_timeline_server.py
@@ -34,7 +34,7 @@ from resource_management.libraries.functions.security_commons 
import (
 )
 from resource_management.libraries.functions.format import format
 from resource_management.core.logger import Logger
-from resource_management.core.resources.system import Execute, Directory
+from resource_management.core.resources.system import Execute
 
 from yarn import yarn
 from service import service
@@ -61,16 +61,7 @@ class ApplicationTimelineServer(Script):
 
   def configure(self, env):
     import params
-
     env.set_params(params)
-
-    Directory(
-      params.yarn_timeline_service_leveldb_state_store_path,
-      create_parents=True,
-      owner=params.yarn_user,
-      group=params.user_group,
-    )
-
     yarn(name="apptimelineserver")
 
 
diff --git 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py
 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py
index 9bbf8b461f..7c164e870d 100644
--- 
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py
+++ 
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/yarn.py
@@ -101,6 +101,12 @@ def yarn(name=None, config_dir=None):
     create_parents=True,
     cd_access="a",
   )
+  Directory(
+    params.yarn_timeline_service_leveldb_state_store_path,
+    create_parents=True,
+    owner=params.yarn_user,
+    group=params.user_group,
+  )
 
   # Some of these function calls depend on the directories above being created 
first.
   if name == "resourcemanager":


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to