private String getQueueName(ExecutionMode mode, HiveConf conf) {
      switch (mode) {
      case LLAP:
        return conf.get(HiveConf.ConfVars.LLAP_DAEMON_QUEUE_NAME.varname);
      case MR:
        return conf.get(MRJobConfig.QUEUE_NAME);
      case TEZ:
        return conf.get(TezConfiguration.TEZ_QUEUE_NAME);
      case NONE:
      default:
        return null;
      }
    }
Log events from hive hook using protobuf serialized format, partitioned by date.
ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveProtoLoggingHook.java