You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Erik Holstad (JIRA)" <ji...@apache.org> on 2009/06/08 20:36:07 UTC

[jira] Created: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

Remove old API references from hbase shell, to make it match the new one.
-------------------------------------------------------------------------

                 Key: HBASE-1498
                 URL: https://issues.apache.org/jira/browse/HBASE-1498
             Project: Hadoop HBase
          Issue Type: Improvement
          Components: scripts
    Affects Versions: 0.20.0
            Reporter: Erik Holstad
            Assignee: Erik Holstad
             Fix For: 0.20.0


In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727155#action_12727155 ] 

Erik Holstad commented on HBASE-1498:
-------------------------------------

Also changed copy-table.rb, to work with new API, but is not a part of the patch at the moment, seeing some weird issues with the RS after applying the scripts:

org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to contact region server /192.168.249.68:51381 for region unknown, row 'unknown', but failed after 1 attempts.
Exceptions:
	from org/apache/hadoop/hbase/client/HConnectionManager.java:935:in `getRegionServerWithRetries'
	from org/apache/hadoop/hbase/client/HTable.java:1861:in `nextScanner'


> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Updated: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

Erik Holstad updated HBASE-1498:
--------------------------------

    Attachment: HBASE-1498-v1.patch

Changed the old version to work with the new Scanner, Delete and HConstants. Have tested in the prompt but need to restart HBase for the changes to take place, not sure how it worked before.

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Updated: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

Erik Holstad updated HBASE-1498:
--------------------------------

    Attachment: HBASE-1498-v2.patch

Added copy-table.rb to patch.
Some weird stuff going on, even sometimes when you shut down the cluster and start it up again, but according to my test, it does copy and rename the specified tables.

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

stack commented on HBASE-1498:
------------------------------

IIRC, hbase is not supposed to be running when this script runs.  Is that still true Erik?

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

stack commented on HBASE-1498:
------------------------------

Tried it.  It works.  Would be good to fix hang on the end.  What is it?  And where is the WARN coming from?  Its disconcerting.

{code}
...
AME => 'info', COMPRESSION => 'NONE', VERSIONS => '10', TTL => '2147483647', BLOCKSIZE => '8192', IN_MEMORY => 'false', BLOCKCACHE => 'true'}]}}
09/07/08 04:50:24 [main] DEBUG regionserver.HRegion: Opening region -ROOT-,,0, encoded=70236052
09/07/08 04:50:24 [main] INFO regionserver.StoreFile: Allocating LruBlockCache with maximum size 278.3m
09/07/08 04:50:24 [main] DEBUG regionserver.Store: loaded /hbase/-ROOT-/70236052/info/3898075780844857583, isReference=false, sequence id=1048599, length=462, majorCompaction=false
09/07/08 04:50:24 [main] DEBUG regionserver.Store: loaded /hbase/-ROOT-/70236052/info/8268810665062790726, isReference=false, sequence id=2, length=841, majorCompaction=false
09/07/08 04:50:24 [main] INFO regionserver.HRegion: region -ROOT-,,0/70236052 available; sequence id is 1048600
09/07/08 04:50:24 [main] INFO regionserver.HRegion: Starting compaction on region -ROOT-,,0
09/07/08 04:50:24 [main] INFO regionserver.HRegion: compaction completed on region -ROOT-,,0 in 0sec
09/07/08 04:50:24 [main] DEBUG util.MetaUtils$3: Testing REGION => {NAME => '.META.,,1', STARTKEY => '', ENDKEY => '', ENCODED => 1028785192, TABLE => {{NAME => '.META.', IS_META => 'true', MEMSTORE_FLUSHSIZE => '16384', FAMILIES => [{NAME => 'historian', VERSIONS => '2147483647', COMPRESSION => 'NONE', TTL => '604800', BLOCKSIZE => '8192', IN_MEMORY => 'false', BLOCKCACHE => 'false'}, {NAME => 'info', VERSIONS => '10', COMPRESSION => 'NONE', TTL => '2147483647', BLOCKSIZE => '8192', IN_MEMORY => 'false', BLOCKCACHE => 'false'}]}}
09/07/08 04:50:24 [main] INFO rename_table: Scanning .META.,,1
09/07/08 04:50:24 [main] DEBUG regionserver.HRegion: Opening region: REGION => {NAME => '.META.,,1', STARTKEY => '', ENDKEY => '', ENCODED => 1028785192, TABLE => {{NAME => '.META.', IS_META => 'true', MEMSTORE_FLUSHSIZE => '16384', FAMILIES => [{NAME => 'historian', VERSIONS => '2147483647', COMPRESSION => 'NONE', TTL => '604800', BLOCKSIZE => '8192', IN_MEMORY => 'false', BLOCKCACHE => 'false'}, {NAME => 'info', VERSIONS => '10', COMPRESSION => 'NONE', TTL => '2147483647', BLOCKSIZE => '8192', IN_MEMORY => 'false', BLOCKCACHE => 'false'}]}}
09/07/08 04:50:24 [main] DEBUG regionserver.HRegion: Opening region .META.,,1, encoded=1028785192
09/07/08 04:50:24 [main] DEBUG regionserver.Store: loaded /hbase/.META./1028785192/historian/4246593672346402836, isReference=false, sequence id=1048636, length=2005, majorCompaction=false
09/07/08 04:50:24 [main] DEBUG regionserver.Store: loaded /hbase/.META./1028785192/historian/5373167720283279415, isReference=false, sequence id=74, length=4396, majorCompaction=false
09/07/08 04:50:24 [main] DEBUG regionserver.Store: loaded /hbase/.META./1028785192/info/1721922041323355320, isReference=false, sequence id=74, length=5912, majorCompaction=false
09/07/08 04:50:24 [main] DEBUG regionserver.Store: loaded /hbase/.META./1028785192/info/4896217102171025601, isReference=false, sequence id=1048636, length=1778, majorCompaction=false
09/07/08 04:50:24 [main] INFO regionserver.HRegion: region .META.,,1/1028785192 available; sequence id is 1048637
09/07/08 04:50:24 [main] INFO regionserver.HRegion: Starting compaction on region .META.,,1
09/07/08 04:50:24 [main] INFO regionserver.HRegion: compaction completed on region .META.,,1 in 0sec
09/07/08 04:50:25 [main] INFO rename_table: Renaming hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 as hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable2/447749785
09/07/08 04:50:25 [main] INFO rename_table: Removing TestTable,,1247027353081 from .META.
09/07/08 04:50:25 [main] INFO regionserver.HLog: Synced at 0
09/07/08 04:50:25 [main] INFO regionserver.HLog: Synced at 1
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: Opening region TestTable2,,1247028625018, encoded=447749785
09/07/08 04:50:25 [main] INFO rename_table: Adding to meta: TestTable2,,1247028625018
09/07/08 04:50:25 [main] INFO regionserver.HLog: Synced at 2
09/07/08 04:50:25 [main] INFO rename_table: Done moving: TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] WARN rename_table: hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable/760900770 does not exist -- region TestTable,,1247027353081
09/07/08 04:50:25 [main] INFO rename_table: Renamed table -- manually delete hdfs://aa0-000-12.X.X.X:9002/hbase/TestTable
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: Closing -ROOT-,,0: compactions & flushes disabled 
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: Updates disabled for region, no outstanding scanners on -ROOT-,,0
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: No more row locks outstanding on region -ROOT-,,0
09/07/08 04:50:25 [main] DEBUG regionserver.Store: closed info
09/07/08 04:50:25 [main] INFO regionserver.HRegion: Closed -ROOT-,,0
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: Closing .META.,,1: compactions & flushes disabled 
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: Updates disabled for region, no outstanding scanners on .META.,,1
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: No more row locks outstanding on region .META.,,1
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: Started memstore flush for region .META.,,1. Current region memstore size 808.0
09/07/08 04:50:25 [main] DEBUG regionserver.Store: Added hdfs://aa0-000-12.X.X.X:9002/hbase/.META./1028785192/historian/8805898269893571051, entries=1, sequenceid=1048641, memsize=176.0, filesize=420.0 to .META.,,1
09/07/08 04:50:25 [main] DEBUG regionserver.Store: Added hdfs://aa0-000-12.X.X.X:9002/hbase/.META./1028785192/info/5958160332931011060, entries=2, sequenceid=1048641, memsize=632.0, filesize=754.0 to .META.,,1
09/07/08 04:50:25 [main] DEBUG regionserver.HRegion: Finished memstore flush of ~808.0 for region .META.,,1 in 274ms, sequence id=1048641, compaction requested=true
09/07/08 04:50:25 [main] DEBUG regionserver.Store: closed historian
09/07/08 04:50:25 [main] DEBUG regionserver.Store: closed info
09/07/08 04:50:25 [main] INFO regionserver.HRegion: Closed .META.,,1
09/07/08 04:50:25 [main] INFO regionserver.HLog: Roll /user/stack/.logs_1247028624689/hlog.dat.1247028624698, entries=4, calcsize=901, filesize=777. New hlog /user/stack/.logs_1247028624689/hlog.dat.1247028625448
09/07/08 04:50:25 [main] DEBUG regionserver.HLog: Last sequence written is empty. Deleting all old hlogs
09/07/08 04:50:25 [main] INFO regionserver.HLog: removing old hlog file /user/stack/.logs_1247028624689/hlog.dat.1247028624698 whose highest sequence/edit id is 1048640
09/07/08 04:50:25 [main] DEBUG regionserver.HLog: closing hlog writer in hdfs://aa0-000-12.X.X.X:9002/user/stack/.logs_1247028624689

{code}

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727186#action_12727186 ] 

Erik Holstad commented on HBASE-1498:
-------------------------------------

Ahh, that would make sense, I haven' t tested it that way, but will try to do it on Sunday at the latest.

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Work started: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

Work on HBASE-1498 started by Erik Holstad.

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Updated: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

stack updated HBASE-1498:
-------------------------

    Fix Version/s:     (was: 0.20.1)
                   0.21.0

Moving to 0.21.  Its nice-to-have.  Scripts are currently broke but they are rarely used and in 0.21 we'll have copy and rename as live online actions.

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.21.0
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Updated: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

Jonathan Gray updated HBASE-1498:
---------------------------------

    Fix Version/s:     (was: 0.20.0)
                   0.20.1

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727191#action_12727191 ] 

Erik Holstad commented on HBASE-1498:
-------------------------------------

Tested v2 patch and seems to work, even though it still hangs after running the scripts, but that was related to another issue, no? Seems to be a little lag thought after starting up
the cluster after the copy and the rename, getting 
NativeException: org.apache.hadoop.hbase.client.NoServerForRegionException: No server address listed in .META. for region test1,,1246683270641

If started up to soon, but that might be related to the hang?

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

stack commented on HBASE-1498:
------------------------------

I checked .META. after the rename and the old table was still in place.  Here is command I ran: $ ./bin/hbase org.jruby.Main ./bin/rename_table.rb TestTable TestTable2

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>         Attachments: HBASE-1498-v1.patch, HBASE-1498-v2.patch
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

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

Jonathan Gray commented on HBASE-1498:
--------------------------------------

@Erik what's the deal with this issue?

> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.1
>
>
> In some of the .rb scripts we still have references to old API.

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


[jira] Commented: (HBASE-1498) Remove old API references from hbase shell, to make it match the new one.

Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-1498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717356#action_12717356 ] 

Erik Holstad commented on HBASE-1498:
-------------------------------------

Adding comment from list from earlier today:

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

No JinHo commented on HBASE-970:
--------------------------------

rename_table.rb does not work.

I made a table and put some data. when i used rename_table.rb to rename the table, it does not work.
The directory, has new name, is created and the old datas are removed from HDFS. But I can not find the table, has new name, form hbase shell.

I've got some worning messages.

bash# hbase org.jruby.Main rename_table.rb tTest tTest3
09/06/08 11:59:15 INFO regionserver.HLog: HLog configuration: blocksize=67108864, maxlogentries=100000, flushlogentries=100, optionallogflushinternal=10000ms
09/06/08 11:59:15 INFO regionserver.HLog: New log writer: /user/root/log_1244429955523/hlog.dat.1244429955540
09/06/08 11:59:15 INFO util.NativeCodeLoader: Loaded the native-hadoop library
09/06/08 11:59:15 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
09/06/08 11:59:15 INFO compress.CodecPool: Got brand-new decompressor
09/06/08 11:59:15 INFO compress.CodecPool: Got brand-new decompressor
09/06/08 11:59:15 INFO compress.CodecPool: Got brand-new decompressor
09/06/08 11:59:15 INFO compress.CodecPool: Got brand-new decompressor
09/06/08 11:59:15 INFO regionserver.HRegion: region -ROOT-,,0/70236052 available
09/06/08 11:59:15 INFO regionserver.HRegion: starting  compaction on region -ROOT-,,0
09/06/08 11:59:15 INFO regionserver.HRegion: compaction completed on region -ROOT-,,0 in 0sec
09/06/08 11:59:15 INFO rename_table: Scanning .META.,,1
09/06/08 11:59:15 INFO regionserver.HRegion: region .META.,,1/1028785192 available
09/06/08 11:59:15 INFO regionserver.HRegion: starting  compaction on region .META.,,1
09/06/08 11:59:15 INFO regionserver.HRegion: compaction completed on region .META.,,1 in 0sec
09/06/08 11:59:15 INFO rename_table: Renaming hdfs://nozino:9000/hbase/tTest/1674338366 as hdfs://nozino:9000/hbase/tTest3/286899439
09/06/08 11:59:15 INFO rename_table: Removing tTest,,1244429417400 from .META.
09/06/08 11:59:15 INFO regionserver.HRegion: Closed -ROOT-,,0
09/06/08 11:59:15 INFO regionserver.HRegion: Closed .META.,,1
rename_table.rb:135: wrong # of arguments(2 for 4) (ArgumentError)
       from file:/usr/local/hbase-0.19.3/lib/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/builtin/java/collections.rb:47:in `call'
       from file:/usr/local/hbase-0.19.3/lib/jruby-complete-1.1.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/builtin/java/collections.rb:47:in `each'
       from rename_table.rb:100


> Update the copy/rename scripts to go against change API
> -------------------------------------------------------
>
>                 Key: HBASE-970
>                 URL: https://issues.apache.org/jira/browse/HBASE-970
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.19.0
>
>


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


> Remove old API references from hbase shell, to make it match the new one.
> -------------------------------------------------------------------------
>
>                 Key: HBASE-1498
>                 URL: https://issues.apache.org/jira/browse/HBASE-1498
>             Project: Hadoop HBase
>          Issue Type: Improvement
>          Components: scripts
>    Affects Versions: 0.20.0
>            Reporter: Erik Holstad
>            Assignee: Erik Holstad
>             Fix For: 0.20.0
>
>
> In some of the .rb scripts we still have references to old API.

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