phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Zhong <>
Subject Re: Migrate data between 2.2 and 4.0
Date Wed, 25 Jun 2014 01:08:43 GMT

You can try to use hbase shell to manually add "_0" column family into
your destination hbase table. Phoenix 4.0 from Apache can't work on
hbase0.96. You can check discussions in to see if your hbase is
good for phoenix 4.0.


On 6/24/14 5:32 AM, "Kristoffer Sjögren" <> wrote:

>We're currently running Phoenix 2.2 on HBase 0.94 CDH 4.4 and slowly
>preparing to move to Phoenix 4 and HBase 0.96 CDH 5.
>For my first tests I wanted to simply copy data from 0.94 to 0.96,
>which works fine for regular hbase table using the following commands:
>$ hbase org.apache.hadoop.hbase.mapreduce.Export table /tmp/table
>$ hadoop distcp hftp://hbase94:50070/tmp/table hdfs://hbase96/tmp/table
>$ hbase -Dhbase.import.version=0.94
>org.apache.hadoop.hbase.mapreduce.Import table /tmp/table
>This approach fail on the import for for phoenix tables tough (see
>below) - where I create an identical table in 0.96 using phoenix 4.0
>sqlline and then do the commands mentioned above. As I understand, the
>_0 column family was used to allow hbase empty rows.
>Are there any tricks that can be made to allow copy data between these
>two installations?
>2014-06-18 13:31:09,633 INFO  [main] mapreduce.Job: Task Id :
>attempt_1403015236309_0015_m_000004_1, Status : FAILED
>Failed 6900 actions:
>Column family _0 does not exist in region
>in table 'TABLE', {TABLE_ATTRIBUTES => {coprocessor$1 =>
>'|org.apache.phoenix.coprocessor.ScanRegionObserver|1|', coprocessor$2
>=> '|org.apache.phoenix.coprocessor.UngroupedAggregateRegionObserver|1|',
>coprocessor$3 =>
>coprocessor$4 =>
>coprocessor$5 =>
>'0', BLOCKCACHE => 'true', BLOCKSIZE => '65536', REPLICATION_SCOPE =>
>at org.apache.hadoop.hbase.ipc.RpcServer$
>: 6900 times,
>at org.apache.hadoop.hbase.client.HTable.doPut(
>at org.apache.hadoop.hbase.client.HTable.put(
>at org.apache.hadoop.hbase.mapreduce.Import$
>at org.apache.hadoop.hbase.mapreduce.Import$
>at org.apache.hadoop.mapred.MapTask.runNewMapper(
>at org.apache.hadoop.mapred.YarnChild$
>at Method)
>at org.apache.hadoop.mapred.YarnChild.main(

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

View raw message