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

Encode StoreFile path URLs in the UI to handle scenarios where CF contains special characters (like # etc.)

    XMLWordPrintableJSON

Details

    Description

      【Test step】:

      1. create 'specialchar' ,'#'

      2.put 'specialchar','r1','#:cq','1000'

      3.flush 'specialchar'

      4.put 'specialchar','r2','#:cq','1000'

      5.flush 'specialchar'

       

      Once hfile is created, click the hfile link in UI.

      The following error is throwing.

      java.io.FileNotFoundException: Path is not a file: /hbase/data/default/specialchar/df9d19830c562c4eeb3f8b396211d52d
       at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:90)
       at org.apache.hadoop.hdfs.server.namenode.INodeFile.valueOf(INodeFile.java:76)
       at org.apache.hadoop.hdfs.server.namenode.FSDirStatAndListingOp.getBlockLocations(FSDirStatAndListingOp.java:153)
       at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getBlockLocations(FSNamesystem.java:1942)
       at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.getBlockLocations(NameNodeRpcServer.java:739)
       at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.getBlockLocations(ClientNamenodeProtocolServerSideTranslatorPB.java:432)
       at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
       at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524)
       at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991)
       at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:878)
       at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:824)
       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:1729)
       at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2684)
      
      

      Attachments

        1. HBASE-22649.branch-1.patch
          2 kB
          Y. SREENIVASULU REDDY
        2. HBASE-22649.branch-1.002.patch
          3 kB
          Y. SREENIVASULU REDDY
        3. HBASE-22649.branch-2.patch
          3 kB
          Y. SREENIVASULU REDDY
        4. HBASE-22649.patch
          3 kB
          Y. SREENIVASULU REDDY
        5. HBASE-22649.branch-1.003.patch
          3 kB
          Y. SREENIVASULU REDDY
        6. HBASE-22649.branch-2_002.patch
          4 kB
          Y. SREENIVASULU REDDY
        7. HBASE-22649_002.patch
          3 kB
          Y. SREENIVASULU REDDY

        Activity

          People

            sreenivasulureddy Y. SREENIVASULU REDDY
            Ashok_shetty Ashok shetty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: