org.apache.lens.ml.spark
Class HiveTableRDD
java.lang.Object
org.apache.lens.ml.spark.HiveTableRDD
public final class HiveTableRDD
- extends Object
Create a JavaRDD based on a Hive table using HCatInputFormat.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Method Summary |
static org.apache.spark.api.java.JavaPairRDD<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord> |
createHiveTableRDD(org.apache.spark.api.java.JavaSparkContext javaSparkContext,
org.apache.hadoop.conf.Configuration conf,
String db,
String table,
String partitionFilter)
Creates the hive table rdd. |
LOG
public static final org.apache.commons.logging.Log LOG
createHiveTableRDD
public static org.apache.spark.api.java.JavaPairRDD<org.apache.hadoop.io.WritableComparable,org.apache.hive.hcatalog.data.HCatRecord> createHiveTableRDD(org.apache.spark.api.java.JavaSparkContext javaSparkContext,
org.apache.hadoop.conf.Configuration conf,
String db,
String table,
String partitionFilter)
throws IOException
- Creates the hive table rdd.
- Parameters:
javaSparkContext
- the java spark contextconf
- the confdb
- the dbtable
- the tablepartitionFilter
- the partition filter
- Returns:
- the java pair rdd
- Throws:
IOException
- Signals that an I/O exception has occurred.
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.