You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2013/09/03 22:37:52 UTC

[jira] [Created] (HBASE-9421) Provide better error message when dropping non-existent namespace

Ted Yu created HBASE-9421:
-----------------------------

             Summary: Provide better error message when dropping non-existent namespace
                 Key: HBASE-9421
                 URL: https://issues.apache.org/jira/browse/HBASE-9421
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


If a non-existent namespace is dropped, FileNotFoundException is thrown.
There should be better error message like "namespace does not exist"
{code}
hbase(main):002:0> drop_namespace 'hi'

ERROR: java.io.FileNotFoundException: File hdfs://h.com:8020/apps/hbase/data/data/hi does not exist.
	at org.apache.hadoop.hdfs.DistributedFileSystem.listStatusInternal(DistributedFileSystem.java:656)
	at org.apache.hadoop.hdfs.DistributedFileSystem.access$600(DistributedFileSystem.java:92)
	at org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:714)
	at org.apache.hadoop.hdfs.DistributedFileSystem$14.doCall(DistributedFileSystem.java:710)
	at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:78)
	at org.apache.hadoop.hdfs.DistributedFileSystem.listStatus(DistributedFileSystem.java:710)
	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1478)
	at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1518)
	at org.apache.hadoop.hbase.util.FSUtils.getLocalTableDirs(FSUtils.java:1316)
	at org.apache.hadoop.hbase.util.FSTableDescriptors.getByNamespace(FSTableDescriptors.java:222)
	at org.apache.hadoop.hbase.master.HMaster.listTableDescriptorsByNamespace(HMaster.java:3121)
	at org.apache.hadoop.hbase.master.TableNamespaceManager.remove(TableNamespaceManager.java:158)
	at org.apache.hadoop.hbase.master.HMaster.deleteNamespace(HMaster.java:3106)
	at org.apache.hadoop.hbase.master.HMaster.deleteNamespace(HMaster.java:3000)
	at org.apache.hadoop.hbase.protobuf.generated.MasterAdminProtos$MasterAdminService$2.callBlockingMethod(MasterAdminProtos.java:32902)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2147)
	at org.apache.hadoop.hbase.ipc.RpcServer$Handler.run(RpcServer.java:1854)

Here is some help for this command:
Drop the named namespace. The namespace must be empty.
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira