def run_shell(args):
  get_impala_service_config(args)

  os.environ['IMPALA_HOME'] = deploy_utils.get_root_dir("impala")
  shell_script = deploy_utils.get_root_dir("impala") % "%s/bin/impala-shell.sh"

  if not args.command:
    args.command.append("-h")

  cmd = ["bash", shell_script] + args.command
  p = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr)
  p.wait()
dataset/ETHPy150Open XiaoMi/minos/client/deploy_impala.py/run_shell/swapped operands of `%`