Package org.apache.hadoop.hive.ql.parse

Examples of org.apache.hadoop.hive.ql.parse.AbstractSemanticAnalyzerHook


      BaseSemanticAnalyzer sem = SemanticAnalyzerFactory.get(conf, tree);
      String hookName = HiveConf.getVar(conf, ConfVars.SEMANTIC_ANALYZER_HOOK);

      // Do semantic analysis and plan generation
      if (hookName != null) {
        AbstractSemanticAnalyzerHook hook = HiveUtils.getSemanticAnalyzerHook(conf, hookName);
        HiveSemanticAnalyzerHookContext hookCtx = new HiveSemanticAnalyzerHookContextImpl();
        hookCtx.setConf(conf);
        hook.preAnalyze(hookCtx, tree);
        sem.analyze(tree, ctx);
        hook.postAnalyze(hookCtx, sem.getRootTasks());
      } else {
        sem.analyze(tree, ctx);
      }

      LOG.info("Semantic Analysis Completed");
View Full Code Here


    String[] peClasses = pestr.split(",");

    for (String peClass : peClasses) {
      try {
        AbstractSemanticAnalyzerHook hook = HiveUtils.getSemanticAnalyzerHook(conf, peClass);
        saHooks.add(hook);
      } catch (HiveException e) {
        console.printError("Pre Exec Hook Class not found:" + e.getMessage());
        throw e;
      }
View Full Code Here

    String[] peClasses = pestr.split(",");

    for (String peClass : peClasses) {
      try {
        AbstractSemanticAnalyzerHook hook = HiveUtils.getSemanticAnalyzerHook(conf, peClass);
        saHooks.add(hook);
      } catch (HiveException e) {
        console.printError("Pre Exec Hook Class not found:" + e.getMessage());
        throw e;
      }
View Full Code Here

    String[] peClasses = pestr.split(",");

    for (String peClass : peClasses) {
      try {
        AbstractSemanticAnalyzerHook hook = HiveUtils.getSemanticAnalyzerHook(conf, peClass);
        saHooks.add(hook);
      } catch (HiveException e) {
        console.printError("Pre Exec Hook Class not found:" + e.getMessage());
        throw e;
      }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.parse.AbstractSemanticAnalyzerHook

Copyright © 2018 www.massapicom. 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.