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

truncate table changes permissions on the target

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.0
    • Query Processor
    • None

    Description

      Create a table test(a string);
      Hive> create table test(key string);

      Change the /user/hive/warehouse/test permission to something else other than the default, like 777.
      Hive> dfs -chmod 777 /user/hive/warehouse/test;
      Hive> dfs -ls -d /user/hive/warehouse/test;
      drwxrwxrwx - axu wheel 68 2015-01-26 18:45 /user/hive/warehouse/test

      Then truncate table test;
      Hive> truncate table test;

      The permission goes back to the default.
      hive> dfs -ls -d /user/hive/warehouse/test;
      drwxr-xr-x - axu wheel 68 2015-01-27 10:09 /user/hive/warehouse/test

      Attachments

        1. HIVE-9474.3.patch
          4 kB
          Aihua Xu
        2. HIVE-9474.2.patch
          3 kB
          Aihua Xu
        3. HIVE-9474.1.patch
          3 kB
          Aihua Xu

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aihuaxu Aihua Xu Assign to me
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4h
              4h
              Remaining:
              Remaining Estimate - 4h
              4h
              Logged:
              Time Spent - Not Specified
              Not Specified

              Slack

                Issue deployment