Examples of HiveConf


Examples of org.apache.hadoop.hive.conf.HiveConf

     */
    public void start() throws IOException {
 
      webServer = new org.mortbay.jetty.Server();
      listener = new SocketListener();
      HiveConf conf = new HiveConf(this.getClass());
     
      String listen = null;
      int port = -1;
     
      listen = conf.getVar(HiveConf.ConfVars.HIVEHWILISTENHOST);
      port = conf.getIntVar(HiveConf.ConfVars.HIVEHWILISTENPORT);
     
      if (listen.equals("")){
        l4j.warn("hive.hwi.listen.host was not specified defaulting to 0.0.0.0");
        listen="0.0.0.0";
      }
      if (port ==-1){
        l4j.warn("hive.hwi.listen.port was not specified defaulting to 9999");
        port=9999;
      }
     
      listener.setPort(port);
      listener.setHost(listen);
     
      webServer.addListener(listener);
     
      WebApplicationContext wac = new WebApplicationContext();
      wac.setContextPath("/hwi");
 
      String hwiWAR = conf.getVar(HiveConf.ConfVars.HIVEHWIWARFILE);
      if (! new File (hwiWAR).exists() ){
        l4j.fatal("HWI WAR file not found at "+ hwiWAR );
      }
     
      wac.setWAR(hwiWAR);
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

    super();
  }

  public void testAddPartition() throws Exception {
    Configuration conf = new Configuration();
    HiveConf hiveConf = new HiveConf(conf, TestAddPartition.class);
    HiveMetaStoreClient client = null;

    try {
      client = new HiveMetaStoreClient(hiveConf);
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

  private HiveConf hiveConf;
  private FileSystem fs;

  protected void setUp() throws Exception {
    super.setUp();
    hiveConf = new HiveConf(this.getClass());
    fs = FileSystem.get(hiveConf);
    try {
      this.hm = Hive.get(hiveConf);
    } catch (Exception e) {
      System.err.println(StringUtils.stringifyException(e));
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

    /**
     * A constructor.
     */
    public HiveServerHandler() throws MetaException {
      super(HiveServer.class.getName());
      session = new SessionState(new HiveConf(SessionState.class));
      SessionState.start(session);
      HiveConf conf = session.get().getConf();
      session.in = null;
      session.out = null;
      session.err = null;
      driver = new Driver();
    }
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

    return db;
  }

  public static Hive get() throws HiveException {
    if(db == null) {
      db = new Hive(new HiveConf(Hive.class));
    }
    return db;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

        return threadLocalId.get();    
      }
     
      public HMSHandler(String name) throws MetaException {
        super(name);
        hiveConf = new HiveConf(this.getClass());
        init();
      }
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

  private HiveMetaStoreClient client;
  private HiveConf hiveConf;

  protected void setUp() throws Exception {
    super.setUp();
    hiveConf = new HiveConf(this.getClass());
    try {
      client = new HiveMetaStoreClient(hiveConf);
    } catch (Throwable e) {
      System.err.println("Unable to open the metastore");
      System.err.println(StringUtils.stringifyException(e));
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

  private boolean standAloneServer = false;
  private TTransport transport;

  public TestHiveServer(String name) {
    super(name);
    conf = new HiveConf(TestHiveServer.class);
    String dataFileDir = conf.get("test.data.files").replace('\\', '/').replace("c:", "");
    dataFilePath = new Path(dataFileDir, "kv1.txt");
    // See data/conf/hive-site.xml
    standAloneServer = System.getProperty("test.service.standalone.server").equals("true");
  }
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

  }

  public QTestUtil(String outDir, String logDir) throws Exception {
    this.outDir = outDir;
    this.logDir = logDir;
    conf = new HiveConf(Driver.class);

    // System.out.println(conf.toString());
    testFiles = conf.get("test.data.files").replace('\\', '/').replace("c:", "");

    String ow = System.getProperty("test.output.overwrite");
View Full Code Here

Examples of org.apache.hadoop.hive.conf.HiveConf

   * intialize the tables
   */

  protected void setUp(){
    try {
      conf = new HiveConf(HiveHistory.class);

      fs = FileSystem.get(conf);
      if (fs.exists(tmppath) && !fs.getFileStatus(tmppath).isDir()) {
        throw new RuntimeException(tmpdir + " exists but is not a directory");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.