public void printInfo(String info, String detail, boolean isSilent) { if (!isSilent) { getInfoStream().println(info); } LOG.info(info + StringUtils.defaultString(detail)); }
/** * Logs info into the log file, and if not silent then into the HiveServer2 or HiveCli info * stream too. Handles an extra detail which will not be printed if null. * BeeLine uses the operation log file to show the logs to the user, so depending on the * BeeLine settings it could be shown to the user. * @param info The log message * @param detail Extra detail to log which will be not printed if null * @param isSilent If true then the message will not be printed to the info stream */ public void printInfo(String info, String detail, boolean isSilent) { if (!isSilent) { getInfoStream().println(info); } LOG.info(info + StringUtils.defaultString(detail)); }
private void warn(String msg) { SessionState.getConsole().getInfoStream().println( String.format("Warning: %s", msg)); }
private void warn(String msg) { SessionState.getConsole().getInfoStream().println( String.format("Warning: %s", msg)); }
private void warn(String msg) { SessionState.getConsole().getInfoStream().println( String.format("Warning: %s", msg)); }
public TezJobMonitor() { console = SessionState.getConsole(); secondsFormat = new DecimalFormat("#0.00"); commaFormat = NumberFormat.getNumberInstance(Locale.US); // all progress updates are written to info stream and log file. In-place updates can only be // done to info stream (console) out = console.getInfoStream(); separator = ""; for (int i = 0; i < SEPARATOR_WIDTH; i++) { separator += "-"; } }
public void printInfo(String info, String detail) { if (!getIsSilent()) { getInfoStream().println(info); } LOG.info(info + StringUtils.defaultString(detail)); }
final boolean inPlaceEligible = conf.getLong("fs.trash.interval", 0) <= 0 && InPlaceUpdate.canRenderInPlace(conf) && !SessionState.getConsole().getIsSilent(); final PrintStream ps = (inPlaceEligible) ? SessionState.getConsole().getInfoStream() : null;
final PrintStream ps = (inPlaceEligible) ? SessionState.getConsole().getInfoStream() : null; final SessionState parentSession = SessionState.get();
@Override protected void initializeInput(ObjectInspector[] arguments) throws UDFArgumentException { if (arguments.length > 0) { super.initializeInput(arguments); } else { if (currentTimestamp == null) { currentTimestamp = new LongWritable(0); setValueFromTs(currentTimestamp, SessionState.get().getQueryCurrentTimestamp()); String msg = "unix_timestamp(void) is deprecated. Use current_timestamp instead."; LOG.warn(msg); PrintStream stream = LogHelper.getInfoStream(); if (stream != null) { stream.println(msg); } } } }
private void warn(String msg) { SessionState.getConsole().getInfoStream().println( String.format("Warning: %s", msg)); }
protected SparkJobMonitor(HiveConf hiveConf) { monitorTimeoutInterval = hiveConf.getTimeVar( HiveConf.ConfVars.SPARK_JOB_MONITOR_TIMEOUT, TimeUnit.SECONDS); inPlaceUpdate = InPlaceUpdate.canRenderInPlace(hiveConf) && !SessionState.getConsole().getIsSilent(); console = SessionState.getConsole(); out = SessionState.LogHelper.getInfoStream(); }
public void printInfoNoLog(String info) { if (!getIsSilent()) { getInfoStream().println(info); } }
InPlaceUpdateFunction(SparkJobMonitor monitor) { super(monitor); inPlaceUpdate = new InPlaceUpdate(SessionState.LogHelper.getInfoStream()); }
InPlaceUpdateFunction(TezJobMonitor monitor) { super(monitor); inPlaceUpdate = new InPlaceUpdate(SessionState.LogHelper.getInfoStream()); }
InPlaceUpdateFunction(TezJobMonitor monitor) { super(monitor); inPlaceUpdate = new InPlaceUpdate(SessionState.LogHelper.getInfoStream()); }