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

stack commented on HBASE-22734:
-------------------------------

You are creating a table, not a namespace. The namespace to create would be 
'ns1'?

> 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)

Reply via email to