Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6469

skipTrash option in hive command line

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.14.0
    • CLI
    • None

    Description

      Th current behavior of hive metastore during a "drop table <table_name>" command is to delete the data from HDFS warehouse and put it into Trash.

      Currently there is no way to provide a flag to tell the warehouse to skip trash while deleting table data.

      This ticket is to add skipTrash configuration "hive.warehouse.data.skipTrash" , which when set to true, will skipTrash while dropping table data from hdfs warehouse. This will be set to false by default to keep current behavior.

      This would be good feature to add, so that an admin of the cluster can specify when not to put data into the trash directory (eg. in a dev environment) and thus not to fill hdfs space instead of relying on trash interval and policy configuration to take care of disk filling issue.

      Attachments

        1. HIVE-6469.patch
          16 kB
          Jay Sen
        2. HIVE-6469.1.patch
          3 kB
          Jay Sen
        3. HIVE-6469.2.patch
          3 kB
          Jay Sen
        4. HIVE-6469.3.patch
          3 kB
          Jay Sen

        Issue Links

          Activity

            People

              jhsenjaliya Jay Sen
              jhsenjaliya Jay Sen
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: