本文整理了Java中org.apache.hadoop.hive.ql.metadata.Hive.logDumpPhase()
方法的一些代码示例,展示了Hive.logDumpPhase()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hive.logDumpPhase()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Hive
类名称:Hive
方法名:logDumpPhase
暂无
代码示例来源:origin: apache/hive
public ImmutableMap<String, Long> dumpAndClearMetaCallTiming(String phase) {
boolean phaseInfoLogged = false;
if (LOG.isDebugEnabled()) {
phaseInfoLogged = logDumpPhase(phase);
LOG.debug("Total time spent in each metastore function (ms): " + metaCallTimeMap);
}
if (LOG.isInfoEnabled()) {
// print information about calls that took longer time at INFO level
for (Entry<String, Long> callTime : metaCallTimeMap.entrySet()) {
// dump information if call took more than 1 sec (1000ms)
if (callTime.getValue() > 1000) {
if (!phaseInfoLogged) {
phaseInfoLogged = logDumpPhase(phase);
}
LOG.info("Total time spent in this metastore function was greater than 1000ms : "
+ callTime);
}
}
}
ImmutableMap<String, Long> result = ImmutableMap.copyOf(metaCallTimeMap);
metaCallTimeMap.clear();
return result;
}
代码示例来源:origin: apache/drill
public ImmutableMap<String, Long> dumpAndClearMetaCallTiming(String phase) {
boolean phaseInfoLogged = false;
if (LOG.isDebugEnabled()) {
phaseInfoLogged = logDumpPhase(phase);
LOG.debug("Total time spent in each metastore function (ms): " + metaCallTimeMap);
}
if (LOG.isInfoEnabled()) {
// print information about calls that took longer time at INFO level
for (Entry<String, Long> callTime : metaCallTimeMap.entrySet()) {
// dump information if call took more than 1 sec (1000ms)
if (callTime.getValue() > 1000) {
if (!phaseInfoLogged) {
phaseInfoLogged = logDumpPhase(phase);
}
LOG.info("Total time spent in this metastore function was greater than 1000ms : "
+ callTime);
}
}
}
ImmutableMap<String, Long> result = ImmutableMap.copyOf(metaCallTimeMap);
metaCallTimeMap.clear();
return result;
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
public void dumpAndClearMetaCallTiming(String phase) {
boolean phaseInfoLogged = false;
if (LOG.isDebugEnabled()) {
phaseInfoLogged = logDumpPhase(phase);
LOG.debug("Total time spent in each metastore function (ms): " + metaCallTimeMap);
}
if (LOG.isInfoEnabled()) {
// print information about calls that took longer time at INFO level
for (Entry<String, Long> callTime : metaCallTimeMap.entrySet()) {
// dump information if call took more than 1 sec (1000ms)
if (callTime.getValue() > 1000) {
if (!phaseInfoLogged) {
phaseInfoLogged = logDumpPhase(phase);
}
LOG.info("Total time spent in this metastore function was greater than 1000ms : "
+ callTime);
}
}
}
metaCallTimeMap.clear();
}
内容来源于网络,如有侵权,请联系作者删除!