From 43fad1b6739a0da7bfb50ab2f71c477a2ab5d0bd Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Tue, 31 Dec 2024 18:35:58 +0530 Subject: [PATCH] Java17 Fix opens option at startup --- distro/src/bin/atlas_start.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/distro/src/bin/atlas_start.py b/distro/src/bin/atlas_start.py index a4484b1a47..f215c293e4 100755 --- a/distro/src/bin/atlas_start.py +++ b/distro/src/bin/atlas_start.py @@ -48,13 +48,13 @@ def main(): jvm_confdir = confdir jvm_logdir = logdir + jvm_opts_list = ADD_OPENS_JAVA_17_JVM_OPTS.split() + #create sys property for conf dirs if not is_setup: - jvm_opts_list = (ATLAS_LOG_OPTS % (jvm_logdir, "application")).split() + jvm_opts_list.extend((ATLAS_LOG_OPTS % (jvm_logdir, "application")).split()) else: - jvm_opts_list = (ATLAS_LOG_OPTS % (jvm_logdir, "atlas_setup")).split() - - jvm_opts_list.insert(0, ADD_OPENS_JAVA_17_JVM_OPTS) + jvm_opts_list.extend((ATLAS_LOG_OPTS % (jvm_logdir, "atlas_setup")).split()) cmd_opts = (ATLAS_COMMAND_OPTS % jvm_atlas_home) jvm_opts_list.extend(cmd_opts.split()) @@ -169,7 +169,6 @@ def main(): def start_atlas_server(atlas_classpath, atlas_pid_file, jvm_logdir, jvm_opts_list, web_app_path): - print(f"{jvm_opts_list}\n") args = ["-app", web_app_path] args.extend(sys.argv[1:]) process = mc.java("org.apache.atlas.Atlas", args, atlas_classpath, jvm_opts_list, jvm_logdir)