You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jonathan Gray (JIRA)" <ji...@apache.org> on 2009/02/03 00:56:00 UTC

[jira] Created: (HBASE-1175) HBA administrative tools do not work when specifying regionName

HBA administrative tools do not work when specifying regionName
---------------------------------------------------------------

                 Key: HBASE-1175
                 URL: https://issues.apache.org/jira/browse/HBASE-1175
             Project: Hadoop HBase
          Issue Type: Bug
          Components: client, master
    Affects Versions: 0.19.0, 0.20.0
            Reporter: Jonathan Gray
            Assignee: Jonathan Gray
             Fix For: 0.19.1, 0.20.0


HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.

Log for good measure:

{code}
[hbase@mb0 StyBase]$ java TableMaintenance chunks
Running maintenance on table 'chunks'
Table contains 2 regions
  > Flushing region {chunks,,1229390225893}
EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
        at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
        at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
Caused by: java.lang.NullPointerException: firstRow for scanner is null
        at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
        ... 5 more

        at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
        at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
        at $Proxy2.openScanner(Unknown Source)
        at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
        at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
]
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670174#action_12670174 ] 

Andrew Purtell commented on HBASE-1175:
---------------------------------------

Ok to go ahead and commit this Jonathan? 

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch, hbase-1175-v2.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Jonathan Gray (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Gray updated HBASE-1175:
---------------------------------

    Status: Patch Available  (was: Open)

Tested and working now when specifying a regionName.  Wait until tomorrow to commit, I will be doing a lot with these functions and will give +1 after I know it works.

Please review patch to make sure I'm following proper conventions :)

Thanks.

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670045#action_12670045 ] 

Andrew Purtell commented on HBASE-1175:
---------------------------------------

Thanks for the clarification Jonathan.

+1


> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch, hbase-1175-v2.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Jonathan Gray (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669840#action_12669840 ] 

Jonathan Gray commented on HBASE-1175:
--------------------------------------

Have verified that patch applies against both 0.19 branch and 0.20 trunk

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Jonathan Gray (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Gray updated HBASE-1175:
---------------------------------

    Attachment: hbase-1175-v2.patch

Removed extra variables, changed function name, fixed line lengths.

Thanks jd

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch, hbase-1175-v2.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Jonathan Gray (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670391#action_12670391 ] 

Jonathan Gray commented on HBASE-1175:
--------------------------------------

Yes.  Have run this on every region in one of my clusters a few times in the past two days without a problem.

+1 to commit

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch, hbase-1175-v2.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669902#action_12669902 ] 

Andrew Purtell commented on HBASE-1175:
---------------------------------------

Code in master did not expect startRow, it expected only a key somewhere within the region. See comments in HBASE-902 as to why. I don't care if the semantics are changed, but at least the comment in the master UI at the bottom of the region view must be changed. Also do these changes break the shell surgery tools? 

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch, hbase-1175-v2.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Jonathan Gray (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669994#action_12669994 ] 

Jonathan Gray commented on HBASE-1175:
--------------------------------------

Andrew, will test today but this should not have broken the existing semantics.

Code in HMaster supports three possibilities now:  (null,regionName)  (tableName,rowKey)  or (tableName,null)

Whether or not that's what we want is another question, but as this patch stands this is all supported.  Not sure if we want to expose all three possibilities to web ui, HBA, shell.

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch, hbase-1175-v2.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Jonathan Gray (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Gray updated HBASE-1175:
---------------------------------

    Attachment: hbase-1175-v1.patch

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Jean-Daniel Cryans (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669846#action_12669846 ] 

Jean-Daniel Cryans commented on HBASE-1175:
-------------------------------------------

Your splitRegionName method shares some code with HSK.stripStartKeyMeta but that one is private... maybe refactor all that in a util class? I would also change the name for parseRegionName, less confusing. Check also the lengths of your lines.

In getTableRegionFromName startKey and columns are never used.

Rest seems fine.

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HBASE-1175) HBA administrative tools do not work when specifying regionName

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Purtell updated HBASE-1175:
----------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

I've been running this also. Committed to trunk and 0.19 branch.

> HBA administrative tools do not work when specifying regionName
> ---------------------------------------------------------------
>
>                 Key: HBASE-1175
>                 URL: https://issues.apache.org/jira/browse/HBASE-1175
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: client, master
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Jonathan Gray
>            Assignee: Jonathan Gray
>             Fix For: 0.19.1, 0.20.0
>
>         Attachments: hbase-1175-v1.patch, hbase-1175-v2.patch
>
>
> HBaseAdmin administrative functions allow tableName or regionName through the API.  Things are okay if we pass tableName, but when using regionName the code in HMaster is incorrect.  It is expecting to be passed tableName and startRow, but we are passing null and regionName.  Patch will fix master to handle this case properly.
> Log for good measure:
> {code}
> [hbase@mb0 StyBase]$ java TableMaintenance chunks
> Running maintenance on table 'chunks'
> Table contains 2 regions
>   > Flushing region {chunks,,1229390225893}
> EXCEPTION FLUSHING REGION! [org.apache.hadoop.ipc.RemoteException: java.io.IOException: Invalid arguments to openScanner
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1695)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> Caused by: java.lang.NullPointerException: firstRow for scanner is null
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.openScanner(HRegionServer.java:1692)
>         ... 5 more
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:701)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:321)
>         at $Proxy2.openScanner(Unknown Source)
>         at org.apache.hadoop.hbase.master.HMaster.getTableRegionClosest(HMaster.java:725)
>         at org.apache.hadoop.hbase.master.HMaster.modifyTable(HMaster.java:804)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
>         at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:895)
> ]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.