Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions distribution/bin/jar-notice-lister.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def get_notices(tmp_jar_path):
for line in outstr.splitlines():
try:
command = "jar xf {} {}".format(jar_file, line)
outstr = subprocess.check_output(command, shell=True).decode('UTF-8')
subprocess.check_output(command, shell=True)

command = "mv {} {}.NOTICE-FILE".format(line, jar_file)
outstr = subprocess.check_output(command, shell=True).decode('UTF-8')
subprocess.check_output(command, shell=True)

command = "cat {}.NOTICE-FILE".format(jar_file)
outstr = subprocess.check_output(command, shell=True).decode('UTF-8')
Expand All @@ -95,4 +95,4 @@ def get_notices(tmp_jar_path):
try:
main()
except KeyboardInterrupt:
print('Interrupted, closing.')
print('Interrupted, closing.')
2 changes: 1 addition & 1 deletion examples/bin/start-druid-main.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def distribute_memory(services, total_memory):
if service in MINIMUM_MEMORY_MB and allocated_memory < MINIMUM_MEMORY_MB.get(service):
allocated_memory = MINIMUM_MEMORY_MB.get(service)

service_memory_config[service], allocated_memory = build_memory_config(service, allocated_memory)
service_memory_config[service] = build_memory_config(service, allocated_memory)[0]

print_if_verbose('\nMemory distribution for services:')
for key, value in service_memory_config.items():
Expand Down
Loading