hbase-client module serves client facing APIs. hbase-server module is supposed to host classes used on server side.
There is still some work to be done so that the above goal is achieved. On Tue, Sep 16, 2014 at 9:06 AM, Y. Dong <tq00...@gmail.com> wrote: > Thanks Ted. It is indeed in hbase-server. Just curious, what’s the > difference between hbase-client and hbase-server? > > On 16 Sep 2014, at 17:01, Ted Yu <yuzhih...@gmail.com> wrote: > > bq. TableInputFormat does not even exist in hbase-client API > > It is in hbase-server module. > > Take a look at http://hbase.apache.org/book.html#mapreduce.example.read > > On Tue, Sep 16, 2014 at 8:18 AM, Y. Dong <tq00...@gmail.com> wrote: > >> Hello, >> >> I’m currently using spark-core 1.1 and hbase 0.98.5 and I want to simply >> read from hbase. The Java code is attached. However the problem is >> TableInputFormat does not even exist in hbase-client API, is there any >> other way I can read from >> hbase? Thanks >> >> SparkConf sconf = *new* SparkConf().setAppName(“App").setMaster("local"); >> JavaSparkContext sc = *new* JavaSparkContext(sconf); >> >> Configuration conf = HBaseConfiguration.*create*(); >> conf.set(TableInputFormat.INPUT_TABLE, "Article"); >> >> JavaPairRDD<ImmutableBytesWritable, Result> hBaseRDD = >> sc.newAPIHadoopRDD(conf, >> TableInputFormat.*class* >> ,org.apache.hadoop.hbase.io.ImmutableBytesWritable.*class*, >> org.apache.hadoop.hbase.client.Result.*class*); >> >> >> >> > >