Examples of markPartitionForEvent()


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

    driver.run("create table mytbl (a string) partitioned by (b string)");
    driver.run("alter table mytbl add partition(b='2011')");
    HiveMetaStoreClient msc = new HiveMetaStoreClient(hiveConf);
    Map<String,String> kvs = new HashMap<String, String>(1);
    kvs.put("b", "2011");
    msc.markPartitionForEvent("mydb", "mytbl", kvs, PartitionEventType.LOAD_DONE);
    driver.run("alter table mytbl drop partition(b='2011')");
    driver.run("drop table mytbl");
    driver.run("drop database mydb");
  }
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.