| Class | Description |
|---|---|
| JavaHBaseBulkDeleteExample |
This is a simple example of deleting records in HBase
with the bulkDelete function.
|
| JavaHBaseBulkDeleteExample.DeleteFunction | |
| JavaHBaseBulkGetExample |
This is a simple example of getting records in HBase
with the bulkGet function.
|
| JavaHBaseBulkGetExample.GetFunction | |
| JavaHBaseBulkGetExample.ResultFunction | |
| JavaHBaseBulkLoadExample |
Run this example using command below:
SPARK_HOME/bin/spark-submit --master local[2] --class org.apache.hadoop.hbase.spark.example.hbasecontext.JavaHBaseBulkLoadExample
path/to/hbase-spark.jar {path/to/output/HFiles}
This example will output put hfiles in {path/to/output/HFiles}, and user can run
'hbase org.apache.hadoop.hbase.tool.LoadIncrementalHFiles' to load the HFiles into table to verify this example.
|
| JavaHBaseBulkLoadExample.BulkLoadFunction | |
| JavaHBaseBulkPutExample |
This is a simple example of putting records in HBase
with the bulkPut function.
|
| JavaHBaseBulkPutExample.PutFunction | |
| JavaHBaseDistributedScan |
This is a simple example of scanning records from HBase
with the hbaseRDD function.
|
| JavaHBaseMapGetPutExample |
This is a simple example of using the foreachPartition
method with a HBase connection
|
| JavaHBaseMapGetPutExample.GetFunction | |
| JavaHBaseStreamingBulkPutExample |
This is a simple example of BulkPut with Spark Streaming
|
| JavaHBaseStreamingBulkPutExample.PutFunction |
Copyright © 2007–2019 Cloudera. All rights reserved.