You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Jerry He (JIRA)" <ji...@apache.org> on 2014/11/07 01:33:35 UTC

[jira] [Commented] (HBASE-12441) Export and CopyTable need to be able to keep tags/labels in cells

    [ 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.

{code}
  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.getRowLength()));
    kvbuilder.setFamily(ByteStringer.wrap(kv.getFamilyArray(),
        kv.getFamilyOffset(), kv.getFamilyLength()));
    kvbuilder.setQualifier(ByteStringer.wrap(kv.getQualifierArray(),
        kv.getQualifierOffset(), kv.getQualifierLength()));
    kvbuilder.setCellType(CellProtos.CellType.valueOf(kv.getTypeByte()));
    kvbuilder.setTimestamp(kv.getTimestamp());
    kvbuilder.setValue(ByteStringer.wrap(kv.getValueArray(), kv.getValueOffset(),
        kv.getValueLength()));
    return kvbuilder.build();
  }
{code}

> 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
(v6.3.4#6332)