You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sakthi (Jira)" <ji...@apache.org> on 2019/09/19 21:03:00 UTC

[jira] [Comment Edited] (HBASE-22649) FileNotFoundException shown in UI when tried to access HFILE URL of a column family name have special char (e.g #)

    [ https://issues.apache.org/jira/browse/HBASE-22649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16933759#comment-16933759 ] 

Sakthi edited comment on HBASE-22649 at 9/19/19 9:02 PM:
---------------------------------------------------------

Verified the patch, checked the UI. I think it's okay if we skip the UT for this.
{code:java}
BEFORE:

URL:
http://192.xxx.x.xx:16030/storeFile.jsp?name=file:/path/to/hbase/data/default/specialchar/d2b7b16c188b5dced97121f61d9067a1/#/91aa57d2c59c4257838aec73e9aa9037

UI:
java.io.FileNotFoundException: /path/to/hbase/data/default/specialchar/d2b7b16c188b5dced97121f61d9067a1 (Is a directory){code}
{code:java}
AFTER:

URL:
http://192.xxx.x.xx:16030/storeFile.jsp?name=file%3A%2FPath%2Fto%2Fhbase%2Fdata%2Fdefault%2Fspecialchar%2Fd2b7b16c188b5dced97121f61d9067a1%2F%23%2F91aa57d2c59c4257838aec73e9aa9037

UI:
Stats: ...{code}
Let me get this in [~sreenivasulureddy]. Thanks.


was (Author: jatsakthi):
Verified the patch, checked the UI. I think it's okay if we skip the UT for this.
{code:java}
BEFORE:

URL:
http://192.xxx.x.xx:16030/storeFile.jsp?name=file:/path/to/hbase/data/default/specialchar/d2b7b16c188b5dced97121f61d9067a1/#/91aa57d2c59c4257838aec73e9aa9037

UI:
java.io.FileNotFoundException: /path/to/hbase/data/default/specialchar/d2b7b16c188b5dced97121f61d9067a1 (Is a directory){code}
{code:java}
AFTER:

URL:
http://192.168.0.69:16030/storeFile.jsp?name=file%3A%2FPath%2Fto%2Fhbase%2Fdata%2Fdefault%2Fspecialchar%2Fd2b7b16c188b5dced97121f61d9067a1%2F%23%2F91aa57d2c59c4257838aec73e9aa9037

UI:
Stats: ...{code}
Let me get this in [~sreenivasulureddy]. Thanks.

> FileNotFoundException shown in UI when tried to access HFILE URL of a column family name have special char (e.g #)
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-22649
>                 URL: https://issues.apache.org/jira/browse/HBASE-22649
>             Project: HBase
>          Issue Type: Bug
>          Components: UI
>    Affects Versions: 3.0.0, 2.1.5, 1.3.5
>            Reporter: Ashok shetty
>            Assignee: Y. SREENIVASULU REDDY
>            Priority: Major
>             Fix For: 3.0.0, 1.3.6, 2.1.7
>
>         Attachments: HBASE-22649.branch-1.002.patch, HBASE-22649.branch-1.003.patch, HBASE-22649.branch-1.patch, HBASE-22649.branch-2.patch, HBASE-22649.branch-2_002.patch, HBASE-22649.patch, HBASE-22649_002.patch
>
>
> 【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.
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)