Package org.apache.hadoop.hive.cli

Examples of org.apache.hadoop.hive.cli.CliSessionState


        HcatTestUtils.cleanupHMS(hive, wh, perm700);

        whFs.delete(whPath, true);
        whFs.mkdirs(whPath, perm755);

        SessionState.start(new CliSessionState(conf));
        hcatDriver = new HCatDriver();
    }
View Full Code Here


        hcatConf.set(ConfVars.POSTEXECHOOKS.varname, "");
        hcatConf.set(ConfVars.HIVE_SUPPORT_CONCURRENCY.varname, "false");

        hcatConf.set(ConfVars.SEMANTIC_ANALYZER_HOOK.varname, HCatSemanticAnalyzer.class.getName());
        hcatDriver = new Driver(hcatConf);
        SessionState.start(new CliSessionState(hcatConf));
    }
View Full Code Here

            hiveConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, "");
            hiveConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, "");
            hiveConf.set(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY.varname, "false");
            hiveConf.set(HiveConf.ConfVars.METASTOREWAREHOUSE.varname, TEST_WAREHOUSE_DIR);
            driver = new Driver(hiveConf);
            SessionState.start(new CliSessionState(hiveConf));
        }

        cleanup();
    }
View Full Code Here

        hiveConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, "");
        hiveConf.set(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY.varname, "false");

        LOG.debug("Hive conf : {}", hiveConf.getAllProperties());
        Driver driver = new Driver(hiveConf);
        SessionState.start(new CliSessionState(hiveConf));
        return driver;
    }
View Full Code Here

        if (hcatDriver == null) {
            HiveConf hcatConf = new HiveConf(hiveConf);
            hcatConf.set(HiveConf.ConfVars.SEMANTIC_ANALYZER_HOOK.varname,
                    HCatSemanticAnalyzer.class.getName());
            hcatDriver = new Driver(hcatConf);
            SessionState.start(new CliSessionState(hcatConf));
        }
    }
View Full Code Here

            LogUtils.initHiveLog4j();
        } catch (LogInitializationException e) {

        }

        CliSessionState ss = new CliSessionState(new HiveConf(SessionState.class));
        ss.in = System.in;
        try {
            ss.out = new PrintStream(System.out, true, "UTF-8");
            ss.err = new PrintStream(System.err, true, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            System.exit(1);
        }

        HiveConf conf = ss.getConf();

        HiveConf.setVar(conf, ConfVars.SEMANTIC_ANALYZER_HOOK, HCatSemanticAnalyzer.class.getName());

        SessionState.start(ss);
View Full Code Here

        HiveConf conf = new HiveConf();
        conf.addResource(new Path("file:///", System.getProperty("oozie.action.conf.xml")));
        conf.setVar(ConfVars.SEMANTIC_ANALYZER_HOOK, HCatSemanticAnalyzer.class.getName());
        conf.setBoolVar(ConfVars.METASTORE_USE_THRIFT_SASL, true);
        SessionState.start(new CliSessionState(conf));
        new CliDriver().processLine(args[0]);
    }
View Full Code Here

        HiveConf hiveConf = new HiveConf(TestHCatLoaderComplexSchema.class);
        hiveConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, "");
        hiveConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, "");
        hiveConf.set(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY.varname, "false");
        driver = new Driver(hiveConf);
        SessionState.start(new CliSessionState(hiveConf));
        //props = new Properties();
        //props.setProperty("fs.default.name", cluster.getProperties().getProperty("fs.default.name"));

    }
View Full Code Here

        hiveConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, "");
        hiveConf.set(HiveConf.ConfVars.POSTEXECHOOKS.varname, "");
        hiveConf.set(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY.varname, "false");
        hiveConf.set(HiveConf.ConfVars.METASTOREWAREHOUSE.varname, TEST_WAREHOUSE_DIR);
        driver = new Driver(hiveConf);
        SessionState.start(new CliSessionState(hiveConf));

        cleanup();

        createTable(BASIC_TABLE, "a int, b string");
        createTable(COMPLEX_TABLE,
View Full Code Here

    public void setUp() throws Exception {
        if (driver == null) {
            setUpHiveConf();
            driver = new Driver(hiveConf);
            client = new HiveMetaStoreClient(hiveConf);
            SessionState.start(new CliSessionState(hiveConf));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.cli.CliSessionState

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.