Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Big Data Management
  3. Mappings
  4. Sources
  5. Targets
  6. Transformations
  7. Data Preview
  8. Cluster Workflows
  9. Profiles
  10. Monitoring
  11. Hierarchical Data Processing
  12. Hierarchical Data Processing Configuration
  13. Hierarchical Data Processing with Schema Changes
  14. Intelligent Structure Models
  15. Stateful Computing
  16. Appendix A: Connections
  17. Appendix B: Data Type Reference
  18. Appendix C: Function Reference

Truncating Hive Targets

Truncating Hive Targets

Truncate Hive target tables to delete the table contents. You can truncate internal and external Hive tables in the Hadoop environment.
Truncate a Hive table in the Hive table properties. The following image shows the Hive table properties:
This image shows the Properties View for the Hive table. The properties to configure are located on the Advanced tab. The selected properties are Truncate target table and Truncate Hive Target Partition. These properties have checkmarks next to them.
To truncate the entire Hive table, choose the option to truncate the target table.
To truncate only the partitions in the Hive table for which the transformation received input data, you must choose to truncate the target table and to truncate the partition in the Hive target table.
You must choose both "Truncate target table" and "Truncate target partition" options due to the possibility that input data might affect all partitions and cause the whole table to be truncated.
You can design a mapping to truncate an internal or external Hive table that is bucketed and partitioned.
Consider the following restrictions when you truncate a Hive table in a mapping that runs in the Hadoop environment:
  • The Data Integration Service can truncate the partition in the Hive target in which the data is being inserted.
  • You must truncate the target table to overwrite data to a Hive table with Hive version 0.7. The Data Integration Service ignores write, update override, delete, insert, and update strategy properties when it writes data to a Hive target.

0 COMMENTS

We’d like to hear from you!