Search in sources :

Example 16 with LogHelper

use of org.apache.hadoop.hive.ql.session.SessionState.LogHelper in project hive by apache.

the class VerifyOverriddenConfigsHook method run.

public void run(HookContext hookContext) {
    LogHelper console = SessionState.getConsole();
    SessionState ss = SessionState.get();
    if (console == null || ss == null) {
        return;
    }
    for (Entry<String, String> entry : ss.getOverriddenConfigurations().entrySet()) {
        if (keysList.contains(entry.getKey())) {
            console.printError("Key: " + entry.getKey() + ", Value: " + entry.getValue());
        }
    }
}
Also used : SessionState(org.apache.hadoop.hive.ql.session.SessionState) LogHelper(org.apache.hadoop.hive.ql.session.SessionState.LogHelper)

Aggregations

LogHelper (org.apache.hadoop.hive.ql.session.SessionState.LogHelper)16 HiveConf (org.apache.hadoop.hive.conf.HiveConf)5 Map (java.util.Map)4 QueryPlan (org.apache.hadoop.hive.ql.QueryPlan)3 HiveException (org.apache.hadoop.hive.ql.metadata.HiveException)3 IOException (java.io.IOException)2 ArrayList (java.util.ArrayList)2 LinkedHashMap (java.util.LinkedHashMap)2 List (java.util.List)2 FileSystem (org.apache.hadoop.fs.FileSystem)2 Path (org.apache.hadoop.fs.Path)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 InputStream (java.io.InputStream)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 Set (java.util.Set)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1 RelReferentialConstraint (org.apache.calcite.rel.RelReferentialConstraint)1 ImmutableBitSet (org.apache.calcite.util.ImmutableBitSet)1