码迷,mamicode.com
首页 > 其他好文 > 详细

Hive 查询在debug下报错

时间:2014-11-23 16:10:02      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:io   ar   sp   java   on   log   bs   代码   ad   

 
/** A new configuration where the behavior of reading from the default 
   * resources can be turned off.
   * 
   * If the parameter {@code loadDefaults} is false, the new instance
   * will not load resources from the default files. 
   * @param loadDefaults specifies whether to load from the default files
   */
  public Configuration(boolean loadDefaults) {
    this.loadDefaults = loadDefaults;
    if (LOG.isDebugEnabled()) {
      LOG.debug(StringUtils.stringifyException(new IOException("config()")));
    }
    synchronized(Configuration.class) {
      REGISTRY.put(this, null);
    }
  }

错误信息:

DEBUG org.apache.hadoop.conf.Configuration - java.io.IOException: config()
	at org.apache.hadoop.conf.Configuration.<init>(Configuration.java:227)
	at org.apache.hadoop.conf.Configuration.<init>(Configuration.java:214)
	at org.apache.hadoop.hive.jdbc.HiveQueryResultSet.initSerde(HiveQueryResultSet.java:112)
	at org.apache.hadoop.hive.jdbc.HiveQueryResultSet.<init>(HiveQueryResultSet.java:67)
	at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeImmediate(HivePreparedStatement.java:182)
	at org.apache.hadoop.hive.jdbc.HivePreparedStatement.executeQuery(HivePreparedStatement.java:141)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)

原来是这段代码的原因,不准许debug下日志输出~~~~

Hive 查询在debug下报错

标签:io   ar   sp   java   on   log   bs   代码   ad   

原文地址:http://my.oschina.net/smile622/blog/347882

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!