You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Aditya Kishore (JIRA)" <ji...@apache.org> on 2012/08/30 01:43:07 UTC
[jira] [Created] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Aditya Kishore created HBASE-6692:
-------------------------------------
Summary: [shell] Cannot describe '.META.' or '-ROOT-' tables
Key: HBASE-6692
URL: https://issues.apache.org/jira/browse/HBASE-6692
Project: HBase
Issue Type: Bug
Components: shell
Affects Versions: 0.94.1, 0.96.0
Reporter: Aditya Kishore
Assignee: Aditya Kishore
This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
{noformat}
hbase(main):002:0> describe '-ROOT-'
DESCRIPTION ENABLED
ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
Here is some help for this command:
Describe the named table. For example:
hbase> describe 't1'
{noformat}
--
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
[jira] [Updated] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Aditya Kishore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aditya Kishore updated HBASE-6692:
----------------------------------
Fix Version/s: 0.96.0
Status: Patch Available (was: Open)
Submitting patch for trunk
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.94.1, 0.96.0
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Updated] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-6692:
-------------------------
Attachment: HBASE-6692_094.patch
You are right Aditya. Here it is. Thanks for catching my mistake.
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_094.patch, HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Commented] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444645#comment-13444645 ]
Ted Yu commented on HBASE-6692:
-------------------------------
Did you try the patch on ROOT table ?
I ask because ROOT table would go through the original code path:
{code}
public boolean isMetaTable() {
return isMetaRegion() && !isRootRegion();
}
{code}
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Commented] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Aditya Kishore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444669#comment-13444669 ]
Aditya Kishore commented on HBASE-6692:
---------------------------------------
I had the same confusion when looking for the appropriate API.
I too, looked at the member function first and was thinking if there was another function which checks both and was lucky enough to keep looking before deciding to write one myself :)
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Updated] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-6692:
-------------------------
Attachment: (was: 5549_094.txt)
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Commented] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Aditya Kishore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444653#comment-13444653 ]
Aditya Kishore commented on HBASE-6692:
---------------------------------------
@Ted, thanks for having a look.
Yes, it works for ROOT and META both because the function I have used is
{code}
public static boolean isMetaTable(final byte [] tableName) {
return Bytes.equals(tableName, HConstants.ROOT_TABLE_NAME) ||
Bytes.equals(tableName, HConstants.META_TABLE_NAME);
}
{code}
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Updated] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-6692:
-------------------------
Attachment: 5549_094.txt
Version that I applied to 0.94 and 0.92.
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: 5549_094.txt, HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Updated] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-6692:
-------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Thanks Aditya. Good one. I tried it. Works. Applied to trunk, 0.94, and 0.92 branches.
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: 5549_094.txt, HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Updated] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Aditya Kishore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aditya Kishore updated HBASE-6692:
----------------------------------
Attachment: HBASE-6692_trunk.patch
Patch for trunk. Check for meta tables before trying to validate user table name.
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Commented] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Aditya Kishore (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444685#comment-13444685 ]
Aditya Kishore commented on HBASE-6692:
---------------------------------------
@stack
Looks like you attached patch for a different issue.
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: 5549_094.txt, HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Commented] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444603#comment-13444603 ]
Hadoop QA commented on HBASE-6692:
----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12543006/HBASE-6692_trunk.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no new tests are needed for this patch.
Also please list what manual steps were performed to verify this patch.
+1 hadoop2.0. The patch compiles against the hadoop 2.0 profile.
-1 javadoc. The javadoc tool appears to have generated 110 warning messages.
-1 javac. The applied patch generated 5 javac compiler warnings (more than the trunk's current 4 warnings).
-1 findbugs. The patch appears to introduce 9 new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these unit tests:
org.apache.hadoop.hbase.replication.TestReplication
Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/2732//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2732//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop2-compat.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2732//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-server.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2732//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop1-compat.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2732//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-common.html
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/2732//artifact/trunk/patchprocess/newPatchFindbugsWarningshbase-hadoop-compat.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/2732//console
This message is automatically generated.
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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
[jira] [Commented] (HBASE-6692) [shell] Cannot describe '.META.' or
'-ROOT-' tables
Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-6692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444656#comment-13444656 ]
Ted Yu commented on HBASE-6692:
-------------------------------
+1 on patch then.
I wonder why the two methods with same name would have such subtle semantic difference :-)
> [shell] Cannot describe '.META.' or '-ROOT-' tables
> ---------------------------------------------------
>
> Key: HBASE-6692
> URL: https://issues.apache.org/jira/browse/HBASE-6692
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0, 0.94.1
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Fix For: 0.96.0
>
> Attachments: HBASE-6692_trunk.patch
>
>
> This got introduced as a side effect of HBASE-3313. Now it is not possible to describe '.META.' or '\-ROOT\-' tables from HBase shell.
> {noformat}
> hbase(main):002:0> describe '-ROOT-'
> DESCRIPTION ENABLED
> ERROR: java.lang.IllegalArgumentException: Illegal first character <45> at 0. User-space table names can only start with 'word characters': i.e. [a-zA-Z_0-9]: -ROOT-
> Here is some help for this command:
> Describe the named table. For example:
> hbase> describe 't1'
> {noformat}
--
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