def update_hbase_env_sh(args, artifact, version):
  current_path = os.path.abspath(os.path.dirname(
        os.path.realpath(args.package_root)))
  conf_path = "%s/%s/%s/%s-%s/conf" % (current_path, args.package_root,
    args.cluster, artifact, version)
  hbase_opts = "-Djava.security.auth.login.config=$HBASE_CONF_DIR/jaas.conf "
  hbase_opts += "-Djava.security.krb5.conf=$HBASE_CONF_DIR/krb5.conf"
  deploy_utils.append_to_file(conf_path % "%s/hbase-env.sh",
      'export HBASE_OPTS="$HBASE_OPTS %s"\n' % hbase_opts)
dataset/ETHPy150Open XiaoMi/minos/client/deploy_hbase.py/update_hbase_env_sh/swapped operands of `%`