hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-12441) Export and CopyTable need to be able to keep tags/labels in cells
Date Fri, 07 Nov 2014 00:33:35 GMT

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

Jerry He commented on HBASE-12441:

The root is that currently scan Result KVs/cells on the client side do not contain tags/labels.
On the region server side, scanner Result KVs/cells do contain tags/labels.  But they are
not carried over in RPCs.

  public static CellProtos.Cell toCell(final Cell kv) {
    // Doing this is going to kill us if we do it for all data passed.
    // St.Ack 20121205
    CellProtos.Cell.Builder kvbuilder = CellProtos.Cell.newBuilder();
    kvbuilder.setRow(ByteStringer.wrap(kv.getRowArray(), kv.getRowOffset(),
        kv.getFamilyOffset(), kv.getFamilyLength()));
        kv.getQualifierOffset(), kv.getQualifierLength()));
    kvbuilder.setValue(ByteStringer.wrap(kv.getValueArray(), kv.getValueOffset(),
    return kvbuilder.build();

> Export and CopyTable need to be able to keep tags/labels in cells
> -----------------------------------------------------------------
>                 Key: HBASE-12441
>                 URL: https://issues.apache.org/jira/browse/HBASE-12441
>             Project: HBase
>          Issue Type: Bug
>          Components: mapreduce, security
>    Affects Versions: 0.98.7, 0.99.3
>            Reporter: Jerry He
> Export and CopyTable (and possibly other MR tools) currently do not carry over tags/labels
in cells.
> These tools should be able to keep tags/labels in cells when they back up the table cells.

This message was sent by Atlassian JIRA

View raw message