[
https://issues.apache.org/jira/browse/HBASE-19166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16367979#comment-16367979
]
Ted Yu commented on HBASE-19166:
--------------------------------
Deployed tar ball with patch onto hbase-2 cluster.
Created table 't1' and put some records in first region.
Copied
ctr-e138-1518143905142-15694-01-000002.hwx.site%2C16020%2C1518819522316.meta.1518819549023.meta
and
ctr-e138-1518143905142-15694-01-000002.hwx.site%2C16020%2C1518819522316.1518819528879
to hdfs of hbase 1.1 cluster
Used {{hbase org.apache.hadoop.hbase.mapreduce.WALPlayer}} command on the two
files whose execution completed.
> Add translation for handling hbase.regionserver.wal.WALEdit
> -----------------------------------------------------------
>
> Key: HBASE-19166
> URL: https://issues.apache.org/jira/browse/HBASE-19166
> Project: HBase
> Issue Type: Bug
> Components: wal
> Reporter: Ted Yu
> Assignee: stack
> Priority: Blocker
> Fix For: 2.0.0
>
> Attachments: 19166-async-log-writer.v1.txt,
> 19166-async-log-writer.v2.txt
>
>
> For hlog generated by 1.x, using WALPlayer from hbase2 would result in:
> {code}
> 2017-11-02 21:22:40,907 INFO [main] mapreduce.Job: Task Id :
> attempt_1509641483571_0003_m_000000_0, Status : FAILED
> Error: java.lang.ClassCastException:
> org.apache.hadoop.hbase.regionserver.wal.WALEdit cannot be cast to
> org.apache.hadoop.hbase.wal.WALEdit
> at
> org.apache.hadoop.hbase.mapreduce.WALPlayer$WALCellMapper.map(WALPlayer.java:143)
> at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:146)
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:793)
> {code}
> HBASE-16479 relocated WALEdit.
> Chatting with Enis, he mentioned adding translation for handling
> hbase.regionserver.wal.WALEdit
> This way, WAL from 1.x can be recognized by hbase-2
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)