@Override
  public void run(HookContext hookContext) throws Exception {
    SessionState ss = SessionState.get();
    Set<ReadEntity> inputs = hookContext.getInputs();
    Set<WriteEntity> outputs = hookContext.getOutputs();
    UserGroupInformation ugi = hookContext.getUgi();
    boolean isExplain = hookContext.getQueryPlan().isExplain();
    this.run(ss,inputs,outputs,ugi, isExplain);
  }
Implementation of a pre execute hook that prevents modifications
of read-only tables used by the test framework
ql/src/java/org/apache/hadoop/hive/ql/hooks/EnforceReadOnlyTables.java