Examples of alter_table()


Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

          .deepCopy();
        newTbl.getParameters().put(
          HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
          getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase() + "."
            + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
        MetaException me = new MetaException(e.toString());
        me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

          .deepCopy();
        newTbl.getParameters().put(
          HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
          getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase() + "."
            + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
        MetaException me = new MetaException(e.toString());
        me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

      try {
        newTbl = handler.get_table(tbl.getDbName(), tbl.getTableName()).deepCopy();
        newTbl.getParameters().put(HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
            getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase()
            +"." + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
         MetaException me  = new MetaException(e.toString());
         me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

                    .deepCopy();
                newTbl.getParameters().put(
                    HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
                    getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase() + "."
                        + newTbl.getTableName().toLowerCase());
                handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
            } catch (InvalidOperationException e) {
                MetaException me = new MetaException(e.toString());
                me.initCause(e);
                throw me;
            } catch (NoSuchObjectException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

      try {
        newTbl = handler.get_table(tbl.getDbName(), tbl.getTableName()).deepCopy();
        newTbl.getParameters().put(HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
            getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase()
            +"." + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
         MetaException me  = new MetaException(e.toString());
         me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

          .deepCopy();
        newTbl.getParameters().put(
          HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
          getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase() + "."
            + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
        MetaException me = new MetaException(e.toString());
        me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

          .deepCopy();
        newTbl.getParameters().put(
          HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
          getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase() + "."
            + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
        MetaException me = new MetaException(e.toString());
        me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStore.HMSHandler.alter_table()

          .deepCopy();
        newTbl.getParameters().put(
          HCatConstants.HCAT_MSGBUS_TOPIC_NAME,
          getTopicPrefix(conf) + "." + newTbl.getDbName().toLowerCase() + "."
            + newTbl.getTableName().toLowerCase());
        handler.alter_table(newTbl.getDbName(), newTbl.getTableName(), newTbl);
      } catch (InvalidOperationException e) {
        MetaException me = new MetaException(e.toString());
        me.initCause(e);
        throw me;
      } catch (NoSuchObjectException e) {
View Full Code Here

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

    // verify group1 users with DDL privileges can alter tables in db_1
    client = context.getMetaStoreClient(USER1_1);
    Table metaTable2 = client.getTable(dbName, tabName1);
    metaTable2.getSd().setCols(
        Lists.newArrayList(new FieldSchema("col2", "double", "")));
    client.alter_table(dbName, tabName1, metaTable2);
    Table metaTable3 = client.getTable(dbName, tabName1);
    assertEquals(metaTable2, metaTable3);

    // verify group1 users with DDL privileges can alter tables in db_1
    client = context.getMetaStoreClient(USER2_1);
View Full Code Here

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

    // verify group1 users with DDL privileges can alter tables in db_1
    client = context.getMetaStoreClient(USER2_1);
    metaTable2 = client.getTable(dbName, tabName1);
    metaTable2.getSd().setCols(
        Lists.newArrayList(new FieldSchema("col3", "string", "")));
    client.alter_table(dbName, tabName1, metaTable2);
    metaTable3 = client.getTable(dbName, tabName1);
    assertEquals(metaTable2, metaTable3);

    // verify group3 users can't alter tables in db_1
    client = context.getMetaStoreClient(USER3_1);
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.