fateh288 commented on code in PR #307: URL: https://github.com/apache/ranger/pull/307#discussion_r1575414848
########## ranger-tools/src/main/python/stress/stress-hbase-loadgenerator.py: ########## @@ -0,0 +1,125 @@ +import subprocess +import time +import argparse +import os +from datetime import datetime + +def increase_memory_for_loadgenerator(): + try: + cmd = "export HBASE_OPTS='-Xmx10g'" + print(cmd) + op = subprocess.call(cmd, shell=True) + print("Output:", op) + except subprocess.CalledProcessError as e: + print("Error in setting HBASE_HEAPSIZE:", e) + exit(1) +def login(keytab_path, user_name): + try: + cmd = f"kinit -kt {keytab_path} {user_name}" + print(cmd) + login_op = subprocess.call(cmd, shell=True) Review Comment: Fixed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ranger.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org