MetaStoreListenerNotifier.notifyEvent(transactionalListeners, EventType.ALTER_TABLE, new AlterTableEvent(table, table, true, true, writeId, this)); MetaStoreListenerNotifier.notifyEvent(listeners, EventType.ALTER_TABLE, new AlterTableEvent(table, table, true, true, writeId, this));
txnAlterTableEventResponses = MetaStoreListenerNotifier.notifyEvent(transactionalListeners, EventMessage.EventType.ALTER_TABLE, new AlterTableEvent(oldt, newt, false, true, newt.getWriteId(), handler), environmentContext); new AlterTableEvent(oldt, newt, false, success, newt.getWriteId(), handler), environmentContext, txnAlterTableEventResponses, msdb);
/** * Insert a thrift audit log entry that represents renaming a table. * * @param oldTable the source table * @param newTable the table renamed to * @param hiveConf Hive configuration * @throws Exception if there's an error inserting into the audit log */ public static void insertThriftRenameTableLogEntry( org.apache.hadoop.hive.metastore.api.Table oldTable, org.apache.hadoop.hive.metastore.api.Table newTable, HiveConf hiveConf) throws Exception { final MetastoreAuditLogListener metastoreAuditLogListener = new MetastoreAuditLogListener(hiveConf); AlterTableEvent event = new AlterTableEvent( oldTable, newTable, true, null ); metastoreAuditLogListener.onAlterTable(event); }
/** * Insert a thrift audit log entry that represents renaming a table. * * @param oldTable the source table * @param newTable the table renamed to * @param hiveConf Hive configuration * @throws Exception if there's an error inserting into the audit log */ public static void insertThriftRenameTableLogEntry( org.apache.hadoop.hive.metastore.api.Table oldTable, org.apache.hadoop.hive.metastore.api.Table newTable, HiveConf hiveConf) throws Exception { final MetastoreAuditLogListener metastoreAuditLogListener = new MetastoreAuditLogListener(hiveConf); AlterTableEvent event = new AlterTableEvent( oldTable, newTable, true, null ); metastoreAuditLogListener.onAlterTable(event); }
MetaStoreListenerNotifier.notifyEvent(transactionalListeners, EventType.ALTER_TABLE, new AlterTableEvent(table, table, true, true, this)); MetaStoreListenerNotifier.notifyEvent(listeners, EventType.ALTER_TABLE, new AlterTableEvent(table, table, true, true, this));
new AlterTableEvent(oldt, newTable, success, this); alterTableEvent.setEnvironmentContext(envContext); listener.onAlterTable(alterTableEvent);
new AlterTableEvent(oldt, newTable, success, this); alterTableEvent.setEnvironmentContext(envContext); listener.onAlterTable(alterTableEvent);
new AlterTableEvent(oldt, newTable, success, this); alterTableEvent.setEnvironmentContext(envContext); listener.onAlterTable(alterTableEvent);
txnAlterTableEventResponses = MetaStoreListenerNotifier.notifyEvent(transactionalListeners, EventMessage.EventType.ALTER_TABLE, new AlterTableEvent(oldt, newt, false, true, handler), environmentContext); new AlterTableEvent(oldt, newt, false, success, handler), environmentContext, txnAlterTableEventResponses, msdb);
newTable.setParameters(newParameters); AlterTableEvent event = new AlterTableEvent( oldTable, newTable,