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

when creating table with hdfs location,should not check permission of all the children dirs

    XMLWordPrintableJSON

Details

    Description

      when we create a table with a specific location with login user bidcadmin.

      create table testdb.test6(id int) location '/data/dpdcadmin/test2/test2/test5';
      

      we met the following errors:

      Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: Principal [name=bidcadmin, type=USER] does not have following privileges for operation CREATETABLE [[INSERT, DELETE] on Object [type=DFS_URI, name=hdfs://hadoopcluster/data/dpdcadmin/test2/test2/test5]] (state=42000,code=40000)
      

       

      the hdfs permission is as the following

      Attachments

        1. fix-attach.patch
          1 kB
          philipse
        2. image-2019-04-12-15-34-55-942.png
          51 kB
          philipse
        3. image-2019-04-12-15-31-30-883.png
          49 kB
          philipse

        Issue Links

          Activity

            People

              小郭飞飞刀 philipse
              小郭飞飞刀 philipse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m