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/07/26 01:00:00 UTC
[jira] [Comment Edited] (HBASE-22734) Format error message in
create_namespace command to avoid stacktrace
[ https://issues.apache.org/jira/browse/HBASE-22734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16893240#comment-16893240 ]
Sakthi edited comment on HBASE-22734 at 7/26/19 12:59 AM:
----------------------------------------------------------
Though this was discovered by mistake but I thought it would be nice to have a well formatted just the ERROR message?
{code:java}
ERROR: java.io.IOException: Illegal character <:> at 3. Namespaces may only contain 'alphanumeric characters' from any language and digits: ns1:t2{code}
and not the full stacktrace. So the description can be altered to some other non-acceptable namespace name.
Basically something along the lines of HBASE-21360
was (Author: jatsakthi):
Though this was discovered by mistake but I thought it would be nice to have a well formatted just the ERROR message?
{code:java}
ERROR: java.io.IOException: Illegal character <:> at 3. Namespaces may only contain 'alphanumeric characters' from any language and digits: ns1:t2{code}
and not the full stacktrace. So the description can be altered to some other non-acceptable namespace name.
> Format error message in create_namespace command to avoid stacktrace
> --------------------------------------------------------------------
>
> Key: HBASE-22734
> URL: https://issues.apache.org/jira/browse/HBASE-22734
> Project: HBase
> Issue Type: Improvement
> Reporter: Sakthi
> Priority: Minor
>
> This is what it looks like currently:
>
> {code:java}
> hbase(main):003:0> create_namespace 'ns1:t2'
> ERROR: java.io.IOException: Illegal character <:> at 3. Namespaces may only contain 'alphanumeric characters' from any language and digits: ns1:t2
> at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:472)
> at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:132)
> at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338)
> at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318)
> Caused by: java.lang.IllegalArgumentException: Illegal character <:> at 3. Namespaces may only contain 'alphanumeric characters' from any language and digits: ns1:t2
> at org.apache.hadoop.hbase.TableName.isLegalNamespaceName(TableName.java:251)
> at org.apache.hadoop.hbase.TableName.isLegalNamespaceName(TableName.java:225)
> at org.apache.hadoop.hbase.master.HMaster.createNamespace(HMaster.java:3267)
> at org.apache.hadoop.hbase.master.MasterRpcServices.createNamespace(MasterRpcServices.java:649)
> at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
> at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:413)
> ... 3 more
> For usage try 'help "create_namespace"'
> Took 8.2554 seconds{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)