Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-16064

delete backup command shows HDFS permission error when deleting the intended backup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • HBASE-7912
    • None
    • Reviewed

    Description

      HBase delete backup command shows error, after successfully deleting the intended backup

      hbase@cluster-name:~$ hbase backup delete backup_1465950334243
      
      2016-06-15 00:36:18,883 INFO  [main] util.BackupClientUtil: No data has been found in hdfs://cluster-name:8020/user/hbase/backup_1465950334243/default/table_ttx7w0jgw8.
      2016-06-15 00:36:18,894 ERROR [main] util.BackupClientUtil: Cleaning up backup data of backup_1465950334243 at hdfs://cluster-name:8020/user/hbase failed due to Permission denied: user=hbase, access=WRITE, inode="/user/hbase":hdfs:hdfs:drwxr-xr-x
      	at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:319)
      	at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(FSPermissionChecker.java:292)
      	at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:216)
      	at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.checkPermission(FSPermissionChecker.java:190)
      	at org.apache.hadoop.hdfs.server.namenode.FSDirectory.checkPermission(FSDirectory.java:1827)
      	at org.apache.hadoop.hdfs.server.namenode.FSDirDeleteOp.delete(FSDirDeleteOp.java:92)
      	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.delete(FSNamesystem.java:3822)
      	at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.delete(NameNodeRpcServer.java:1071)
      	at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.delete(ClientNamenodeProtocolServerSideTranslatorPB.java:619)
      	at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
      	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:640)
      	at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
      	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2313)
      	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2309)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:422)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
      	at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2307)
      .
      

      Backup has been successfully deleted but the backup root dir under /user/hbase dir still persists

      hbase@cluster-name:~$ hdfs dfs -ls /user/hbase
      Found 6 items
      drwx------   - hbase hbase          0 2016-06-15 00:26 /user/hbase/.staging
      drwxr-xr-x   - hbase hbase          0 2016-06-15 00:36 /user/hbase/backup_1465950334243
      drwxr-xr-x   - hbase hbase          0 2016-06-15 00:26 /user/hbase/hbase-staging
      

      /user/hbase/backup_1465950334243 is now empty though

      Attachments

        1. 16064.v3.txt
          2 kB
          Ted Yu
        2. 16064.v2.txt
          2 kB
          Ted Yu
        3. 16064.v1.txt
          0.9 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              romil.choksi Romil Choksi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: