Skip to content
Snippets Groups Projects
Commit a3d5f922 authored by Ethan Jewett's avatar Ethan Jewett
Browse files

Switch to using SparkContext method to create RDD

parent 7cff7e78
No related branches found
No related tags found
No related merge requests found
...@@ -24,9 +24,9 @@ object HBaseTest { ...@@ -24,9 +24,9 @@ object HBaseTest {
admin.createTable(tableDesc) admin.createTable(tableDesc)
} }
val hBaseRDD = new NewHadoopRDD(sc, classOf[TableInputFormat], val hBaseRDD = sc.newAPIHadoopRDD(conf, classOf[TableInputFormat],
classOf[org.apache.hadoop.hbase.io.ImmutableBytesWritable], classOf[org.apache.hadoop.hbase.io.ImmutableBytesWritable],
classOf[org.apache.hadoop.hbase.client.Result], conf) classOf[org.apache.hadoop.hbase.client.Result])
hBaseRDD.count() hBaseRDD.count()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment