public static boolean canRenderInPlace(HiveConf conf) {
    String engine = HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_EXECUTION_ENGINE);
    boolean inPlaceUpdates = false;

    if (engine.equals("tez")) {
      inPlaceUpdates = HiveConf.getBoolVar(conf, HiveConf.ConfVars.TEZ_EXEC_INPLACE_PROGRESS);
    }

    return inPlaceUpdates && isUnixTerminal();
  }
NOTE: Use this method only if isUnixTerminal is true.
Repositions the cursor back to line 0.
common/src/java/org/apache/hadoop/hive/common/log/InPlaceUpdate.java