Github user bbende commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/914#discussion_r75858615
  
    --- Diff: 
nifi-nar-bundles/nifi-hbase-bundle/nifi-hbase-processors/src/main/java/org/apache/nifi/hbase/PutHBaseCell.java
 ---
    @@ -82,8 +84,19 @@ public void process(final InputStream in) throws 
IOException {
                 }
             });
     
    -        final Collection<PutColumn> columns = 
Collections.singletonList(new PutColumn(columnFamily, columnQualifier, buffer));
    -        return new PutFlowFile(tableName, row, columns, flowFile);
    +
    +        final Collection<PutColumn> columns = 
Collections.singletonList(new 
PutColumn(columnFamily.getBytes(StandardCharsets.UTF_8),
    +                                                                           
 columnQualifier.getBytes(StandardCharsets.UTF_8), buffer));
    +
    +        //check to see if we need to modify the rowKey before we pass it 
down to the PutFlowFile
    +        byte[] rowKeyBytes = null;
    --- End diff --
    
    Might be able to create a utility method in the abstract class like `byte[] 
getRow(String row, String encoding)` since it looks PutHBaseCell and 
PutHBaseJson both need the same logic


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to