Package org.apache.hive.service.cli.thrift

Examples of org.apache.hive.service.cli.thrift.EmbeddedThriftBinaryCLIService


    hiveConfMap = connParams.getHiveConfs();
    hiveVarMap = connParams.getHiveVars();
    isEmbeddedMode = connParams.isEmbeddedMode();

    if (isEmbeddedMode) {
      client = new EmbeddedThriftBinaryCLIService();
    } else {
      // extract user/password from JDBC connection properties if its not supplied in the connection URL
      if (info.containsKey(HIVE_AUTH_USER)) {
        sessConfMap.put(HIVE_AUTH_USER, info.getProperty(HIVE_AUTH_USER));
        if (info.containsKey(HIVE_AUTH_PASSWD)) {
View Full Code Here


  private void stageDirTest(String stageDirConfigStr, String stageDirName, boolean isLocal) throws IOException {
    String scratchDirStr = System.getProperty("test.tmp.dir") + File.separator +
        stageDirName;
    System.setProperty(stageDirConfigStr, scratchDirStr);
    ThriftCLIService service = new EmbeddedThriftBinaryCLIService();
    ThriftCLIServiceClient client = new ThriftCLIServiceClient(service);
    final Path scratchDir = new Path(scratchDirStr);
    Configuration conf = new Configuration();
    FileSystem fs = scratchDir.getFileSystem(conf);
    if (isLocal) {
      fs = FileSystem.getLocal(conf);
    }
    assertTrue(fs.exists(scratchDir));

    FileStatus[] fStatus = fs.globStatus(scratchDir);
    boolean foo = fStatus[0].equals(new FsPermission((short)0777));
    assertEquals(new FsPermission((short)0777), fStatus[0].getPermission());
    service.stop();
    fs.delete(scratchDir, true);
    System.clearProperty(stageDirConfigStr);
  }
View Full Code Here

  public void setUp() throws Exception {
    super.setUp();
    SessionHookTest.runCount.set(0);
    System.setProperty(ConfVars.HIVE_SERVER2_SESSION_HOOK.varname,
        TestSessionHooks.SessionHookTest.class.getName());
    service = new EmbeddedThriftBinaryCLIService();
    service.init(new HiveConf());
    client = new ThriftCLIServiceClient(service);
  }
View Full Code Here

public class TestEmbeddedThriftBinaryCLIService extends CLIServiceTest {
  protected static ThriftCLIService service;

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    service = new EmbeddedThriftBinaryCLIService();
    client = new ThriftCLIServiceClient(service);
  }
View Full Code Here

public class TestEmbeddedThriftBinaryCLIService extends CLIServiceTest {
  protected static ThriftCLIService service;

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    service = new EmbeddedThriftBinaryCLIService();
    service.init(new HiveConf());
    client = new ThriftCLIServiceClient(service);
  }
View Full Code Here

   * @throws Exception
   */
  @Before
  public void setUp() throws Exception {
    dataFile = new File(hiveConf.get("test.data.files"), "kv1.txt");
    EmbeddedThriftBinaryCLIService service = new EmbeddedThriftBinaryCLIService();
    service.init(hiveConf);
    client = new ThriftCLIServiceClient(service);
    sessionHandle = setupSession();
  }
View Full Code Here

    }

    isEmbeddedMode = connParams.isEmbeddedMode();

    if (isEmbeddedMode) {
      EmbeddedThriftBinaryCLIService embeddedClient = new EmbeddedThriftBinaryCLIService();
      embeddedClient.init(new HiveConf());
      client = embeddedClient;
    } else {
      // extract user/password from JDBC connection properties if its not supplied in the
      // connection URL
      if (info.containsKey(JdbcConnectionParams.AUTH_USER)) {
View Full Code Here

    }

    isEmbeddedMode = connParams.isEmbeddedMode();

    if (isEmbeddedMode) {
      client = new EmbeddedThriftBinaryCLIService();
    } else {
      // extract user/password from JDBC connection properties if its not supplied in the
      // connection URL
      if (info.containsKey(HIVE_AUTH_USER)) {
        sessConfMap.put(HIVE_AUTH_USER, info.getProperty(HIVE_AUTH_USER));
View Full Code Here

TOP

Related Classes of org.apache.hive.service.cli.thrift.EmbeddedThriftBinaryCLIService

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.