Examples of listPartitionNames()


Examples of org.apache.hadoop.hive.metastore.HiveMetaStoreClient.listPartitionNames()

    execPigLatin(USER1_1, pigServer, "A = load '" + dataFile.getPath()
        + "' as (id:int);");
    execPigLatin(USER1_1, pigServer, "store A into '" + dbName + "." + tabName
        + "' using " + HCatStorer.class.getName() + " ('part_col=part1');");
    HiveMetaStoreClient client = context.getMetaStoreClient(ADMIN1);
    assertEquals(1, client.listPartitionNames(dbName, tabName, (short) 10)
        .size());
    client.close();

    // user without ALL on DB should NOT be able to add partition with
    // Pig/HCatStore
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStoreClient.listPartitionNames()

          + tabName
          + "' using " + HCatStorer.class.getName() + " ('part_col=part2');");
      // TODO: The HCatStore seems to be swallowing the exception. Thus we
      // manually verify that partition is not created by above call.
      client = context.getMetaStoreClient(ADMIN1);
      assertEquals(1, client.listPartitionNames(dbName, tabName, (short)10).size());
      client.close();
      // fail("HCatStore should fail for non-privilege user");

    } catch (IOException e) {
      Context.verifyMetastoreAuthException(e.getCause());
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStoreClient.listPartitionNames()

        List<String> lPartitionNames = null;

        try
        {
            lPartitionNames = client.listPartitionNames(db, table, java.lang.Short.MAX_VALUE);
        }
        catch (MetaException e) {
            throw new RuntimeException("getting location for " + db + " "
                                       + table, e);
        } catch (TException e) {
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.