Package org.apache.hive.service.server

Examples of org.apache.hive.service.server.HiveServer2.start()


  @Test
  public void testNewConnectionConfiguration() throws Exception {
    // Start HiveServer2 with default conf
    HiveServer2 hiveServer2 = new HiveServer2();
    hiveServer2.init(new HiveConf());
    hiveServer2.start();
    Thread.sleep(3000);

    // Set some conf parameters
    String hiveConf = "hive.cli.print.header=true;hive.server2.async.exec.shutdown.timeout=20;" +
        "hive.server2.async.exec.threads=30;hive.server2.thrift.http.max.worker.threads=15";
View Full Code Here


  }

  private HiveServer2 startHiveServer(HiveConf serverConf) {
    HiveServer2 hiveServer = new HiveServer2();
    hiveServer.init(serverConf);
    hiveServer.start();
    return hiveServer;
  }

  // XXX: From org.apache.hadoop.hive.metastore.HiveMetaStore,
  // with changes to support binding to a specified IP address (not only 0.0.0.0)
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.