Skip to content

YCSB HBaseclient does not compile with HBase-2.0 #379

@ramkrish86

Description

@ramkrish86

Based on a discussion today raising this issue so that it can act as a placeholder. I can submit a patch too.
The HBase-2.0 removes some of the deprcated API like KV.getValue(), kv.getRow() and the Result.raw() APIs. We can modify the client code accordingly so that it compiles with HBase-2.0 and anyway it would work with HBase-1.0 also.
{code}

  •                        Bytes.toString(kv.getQualifier()),
    
  •                        new ByteArrayByteIterator(kv.getValue()));
    
  •                        Bytes.toString(kv.getQualifierArray(), kv.getQualifierOffset(), kv.getQualifierLength()),
    
  •                        new ByteArrayByteIterator(kv.getValueArray(), kv.getValueOffset(), kv.getValueLength()));
    
    {code}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions