# TriggerHiveMetaStoreEvent

### Event Types

The processor supports the following event types:

Put
  The put event type represents a file or directory insertion. The metastore action depends on the target table. If the table is partitioned the processor will parse the target partition values from the path e.g.: if the inserted file's path is 'hdfs://localhost:9000/user/hive/warehouse/table/a=5/b=10/file' then the partition values are coming from the '/a=5/b=10/' path part -> [5,10]. If the parsed partition does not exist then an 'APPEND PARTITION' event is going to be called and the new partition will be registered in the metastore. If the partition exists only an 'INSERT' event will be called.
Delete
  The delete event type represents a 'DROP PARTITION' metastore action. The processor will parse the target partition values from the path e.g.: if the deleted directory's path is 'hdfs://localhost:9000/user/hive/warehouse/table/a=5/b=10/' then the partition values are coming from the '/a=5/b=10/' path part -> [5,10]. If the table is not partitioned then no metastore action will be executed.

Any other event type will cause an error and will be directed to the failure relation of the processor.