Skip to content

Commit

Permalink
Java17 Fix opens option at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbonte21 committed Dec 31, 2024
1 parent 4f3e03f commit 43fad1b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions distro/src/bin/atlas_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 43fad1b

Please sign in to comment.