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 7f69af0dff AMBARI-26249: Timeline Service v2 failed to start because
of unable to create leveldb state store directory #3905
7f69af0dff is described below
commit 7f69af0dff6d8efb876b1b05226efc22738457d1
Author: Peng Lu <[email protected]>
AuthorDate: Thu Dec 5 14:05:52 2024 +0800
AMBARI-26249: Timeline Service v2 failed to start because of unable to
create leveldb state store directory #3905
---
.../services/YARN/package/scripts/application_timeline_server.py | 8 +++++++-
.../BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py | 1 +
2 files changed, 8 insertions(+), 1 deletion(-)
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 a7816d221d..d7ae5cafef 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
@@ -30,7 +30,7 @@ from resource_management.libraries.functions.security_commons
import build_expec
FILE_TYPE_XML
from resource_management.libraries.functions.format import format
from resource_management.core.logger import Logger
-from resource_management.core.resources.system import Execute
+from resource_management.core.resources.system import Execute, Directory
from yarn import yarn
from service import service
@@ -56,6 +56,12 @@ 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/params_linux.py
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py
index a61701de18..693f749ef7 100644
---
a/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py
+++
b/ambari-server/src/main/resources/stacks/BIGTOP/3.2.0/services/YARN/package/scripts/params_linux.py
@@ -639,6 +639,7 @@ if 'zoo.cfg' in config['configurations'] and 'clientPort'
in config['configurati
cluster_zookeeper_clientPort =
config['configurations']['zoo.cfg']['clientPort']
else:
cluster_zookeeper_clientPort = '2181'
+yarn_timeline_service_leveldb_state_store_path =
config['configurations']['yarn-site']['yarn.timeline-service.leveldb-state-store.path']
zookeeper_quorum_hosts = cluster_zookeeper_quorum_hosts
zookeeper_clientPort = cluster_zookeeper_clientPort
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]