Search in sources :

Example 1 with StatDB

use of org.apache.hadoop.hive.common.StatsSetupConst.StatDB in project hive by apache.

the class StatsFactory method initialize.

private boolean initialize(String type) {
    ClassLoader classLoader = Utilities.getSessionSpecifiedClassLoader();
    try {
        StatDB statDB = StatDB.valueOf(type);
        publisherImplementation = (Class<? extends Serializable>) Class.forName(statDB.getPublisher(jobConf), true, classLoader);
        aggregatorImplementation = (Class<? extends Serializable>) Class.forName(statDB.getAggregator(jobConf), true, classLoader);
    } catch (Exception e) {
        LOG.error(type + " Publisher/Aggregator classes cannot be loaded.", e);
        return false;
    }
    return true;
}
Also used : StatDB(org.apache.hadoop.hive.common.StatsSetupConst.StatDB)

Aggregations

StatDB (org.apache.hadoop.hive.common.StatsSetupConst.StatDB)1