Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21106

HBase-Spark BulkLoad does not support deletes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: spark
    • Labels:
      None

      Description

      The Spark BulkLoad operations (and BulkLoadThin) only supports upserts, it does not support delete operations. To do so, https://github.com/apache/hbase/blob/f4f2b68238a094d7b1931dc8b7939742ccbb2b57/hbase-spark/src/main/scala/org/apache/hadoop/hbase/spark/HBaseContext.scala#L1034 would need to take the KeyValue.Type argument and be settable to KeyValue.Type.Delete.

      We'd need to think about how we represented deletes in the input RDD, I guess with some container that contains either a Byte[] or a Delete marker. This would be a non-backwards compatible change, unless we override the method.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmgstev Tristan Stevens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: