Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The client in order to receive message must be subscribed to the right topic. Topic name for different types of events are different and is configurable in few cases. All default topic names are prefixed with a string which is configurable in hive-site.xml. The configuration key is hcat.msgbus.topic.prefix which defaults to hcat. We shall refer to the value of the topic prefix as HCAT_TOPIC_PREFIX in rest of the document. For example drop_database events would be sent to topic HCAT_TOPIC_PREFIX (e.g. hcat). add_partition messages would be sent to <HCATHCAT_TOPIC_PREFIX>PREFIX.<DBDB_NAME>.<TABLETABLE_NAME>NAME (eg: hcat.default.example_table). But the topic name for events on a table could be changed per table by user. For example following hive query sets the topic name for a the table example_table to the string example_table_topic_name:

...