Examples of printError()


Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

    Log LOG = LogFactory.getLog(ExecDriver.class.getName());
    LogHelper console = new LogHelper(LOG, isSilent);

    if (planFileName == null) {
      console.printError("Must specify Plan File Name");
      printUsage();
    }

    // print out the location of the log file for the user so
    // that it's easy to find reason for local mode execution failures
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

    if (console == null)
      return;
   
    if (sess != null)
      console.printError("query: " + sess.getCmd().trim());

    for(ReadEntity re: inputs) {
      console.printError("Input: " + re.toString());
    }
    for(WriteEntity we: outputs) {
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

   
    if (sess != null)
      console.printError("query: " + sess.getCmd().trim());

    for(ReadEntity re: inputs) {
      console.printError("Input: " + re.toString());
    }
    for(WriteEntity we: outputs) {
      console.printError("Output: " + we.toString());
    }
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

    for(ReadEntity re: inputs) {
      console.printError("Input: " + re.toString());
    }
    for(WriteEntity we: outputs) {
      console.printError("Output: " + we.toString());
    }
  }

}
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

    Log LOG = LogFactory.getLog(ExecDriver.class.getName());
    LogHelper console = new LogHelper(LOG, isSilent);

    if (planFileName == null) {
      console.printError("Must specify Plan File Name");
      printUsage();
    }

    // print out the location of the log file for the user so
    // that it's easy to find reason for local mode execution failures
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

      if ((oiTypeInfo0.equals(TypeInfoFactory.stringTypeInfo) && oiTypeInfo1.equals(TypeInfoFactory.longTypeInfo)) ||
          (oiTypeInfo0.equals(TypeInfoFactory.longTypeInfo) && oiTypeInfo1.equals(TypeInfoFactory.stringTypeInfo))) {
        if (HiveConf.getVar(conf, HiveConf.ConfVars.HIVEMAPREDMODE).equalsIgnoreCase("strict")) {
          throw new UDFArgumentException(ErrorMsg.NO_COMPARE_BIGINT_STRING.getMsg());
        } else {
          console.printError("WARNING: Comparing a bigint and a string may result in a loss of precision.");
        }
      } else if ((oiTypeInfo0.equals(TypeInfoFactory.doubleTypeInfo) && oiTypeInfo1.equals(TypeInfoFactory.longTypeInfo)) ||
          (oiTypeInfo0.equals(TypeInfoFactory.longTypeInfo) && oiTypeInfo1.equals(TypeInfoFactory.doubleTypeInfo))) {
        if (HiveConf.getVar(conf, HiveConf.ConfVars.HIVEMAPREDMODE).equalsIgnoreCase("strict")) {
          throw new UDFArgumentException(ErrorMsg.NO_COMPARE_BIGINT_DOUBLE.getMsg());
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

      } else if ((oiTypeInfo0.equals(TypeInfoFactory.doubleTypeInfo) && oiTypeInfo1.equals(TypeInfoFactory.longTypeInfo)) ||
          (oiTypeInfo0.equals(TypeInfoFactory.longTypeInfo) && oiTypeInfo1.equals(TypeInfoFactory.doubleTypeInfo))) {
        if (HiveConf.getVar(conf, HiveConf.ConfVars.HIVEMAPREDMODE).equalsIgnoreCase("strict")) {
          throw new UDFArgumentException(ErrorMsg.NO_COMPARE_BIGINT_DOUBLE.getMsg());
        } else {
          console.printError("WARNING: Comparing a bigint and a double may result in a loss of precision.");
        }
      }
    }

    ObjectInspector oi = genericUDF.initializeAndFoldConstants(childrenOIs);
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

    Log LOG = LogFactory.getLog(ExecDriver.class.getName());
    LogHelper console = new LogHelper(LOG, isSilent);

    if (planFileName == null) {
      console.printError("Must specify Plan File Name");
      printUsage();
    }

    // print out the location of the log file for the user so
    // that it's easy to find reason for local mode execution failures
View Full Code Here

Examples of org.apache.hadoop.hive.ql.session.SessionState.LogHelper.printError()

         localMapJoin++;
         break;
      }
    }
    LogHelper console = SessionState.getConsole();
    console.printError("[MapJoinCounter PostHook] CONVERTED_LOCAL_MAPJOIN: " + convertedLocalMapJoin
        + " CONVERTED_MAPJOIN: " + convertedMapJoin + " LOCAL_MAPJOIN: "+localMapJoin+ " COMMON_JOIN: "+commonJoin
        + " BACKUP_COMMON_JOIN: " + backupCommonJoin);
  }
}
View Full Code Here

Examples of org.apache.webbeans.test.component.specializes.logger.ISomeLogger.printError()

       
        ISomeLogger logger = injector.logger();
       
        Assert.assertTrue(logger instanceof SystemLogger);
       
        logger.printError("Hello World");
       
        SystemLogger sysLogger = (SystemLogger)logger;
       
        Assert.assertEquals("Hello World", sysLogger.getMessage());
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.