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

truncate table changes permissions on the target

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: Query Processor
    • Labels:
      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

            People

            • Assignee:
              aihuaxu Aihua Xu
              Reporter:
              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