private void logTypeWarning(String colName, String colType) { String warning = "Only primitive type arguments are accepted but " + colType + " is passed for " + colName + "."; warning = "WARNING: " + warning; console.printInfo(warning); // Propagate warning to beeline via operation log. OperationLog ol = OperationLog.getCurrentOperationLog(); if (ol != null) { ol.writeOperationLog(LoggingLevel.EXECUTION, warning + "\n"); } }
private void logMrWarning(int mrJobs) { if (mrJobs <= 0 || !("mr".equals(HiveConf.getVar(conf, ConfVars.HIVE_EXECUTION_ENGINE)))) { return; } String warning = HiveConf.generateMrDeprecationWarning(); LOG.warn(warning); warning = "WARNING: " + warning; console.printInfo(warning); // Propagate warning to beeline via operation log. OperationLog ol = OperationLog.getCurrentOperationLog(); if (ol != null) { ol.writeOperationLog(LoggingLevel.EXECUTION, warning + "\n"); } }
ol.writeOperationLog(LoggingLevel.EXECUTION, "Waiting to acquire compile lock.\n"); ol.writeOperationLog(LoggingLevel.EXECUTION, lockAcquiredMsg + "\n");
/** * Overrides WriterAppender.subAppend(), which does the real logging. No need * to worry about concurrency since log4j calls this synchronously. */ @Override protected void subAppend(LoggingEvent event) { super.subAppend(event); // That should've gone into our writer. Notify the LogContext. String logOutput = writer.toString(); writer.reset(); OperationLog log = operationManager.getOperationLogByThread(); if (log == null) { LOG.debug(" ---+++=== Dropped log event from thread " + event.getThreadName()); return; } log.writeOperationLog(logOutput); } }
/** * Overrides WriterAppender.subAppend(), which does the real logging. No need * to worry about concurrency since log4j calls this synchronously. */ @Override protected void subAppend(LoggingEvent event) { super.subAppend(event); // That should've gone into our writer. Notify the LogContext. String logOutput = writer.toString(); writer.reset(); OperationLog log = operationManager.getOperationLogByThread(); if (log == null) { LOG.debug(" ---+++=== Dropped log event from thread " + event.getThreadName()); return; } log.writeOperationLog(logOutput); } }
/** * Overrides WriterAppender.subAppend(), which does the real logging. No need * to worry about concurrency since log4j calls this synchronously. */ @Override protected void subAppend(LoggingEvent event) { super.subAppend(event); // That should've gone into our writer. Notify the LogContext. String logOutput = writer.toString(); writer.reset(); OperationLog log = operationManager.getOperationLogByThread(); if (log == null) { LOG.debug(" ---+++=== Dropped log event from thread " + event.getThreadName()); return; } log.writeOperationLog(logOutput); } }
/** * Overrides WriterAppender.subAppend(), which does the real logging. No need * to worry about concurrency since log4j calls this synchronously. */ @Override protected void subAppend(LoggingEvent event) { super.subAppend(event); // That should've gone into our writer. Notify the LogContext. String logOutput = writer.toString(); writer.reset(); OperationLog log = operationManager.getOperationLogByThread(); if (log == null) { LOG.debug(" ---+++=== Dropped log event from thread " + event.getThreadName()); return; } log.writeOperationLog(logOutput); } }