Is there any kudu-spark example in JAVA?

We've introduced Kudu last week. Now I'm trying to retrieve data from a kudu table in the spark env.

I'm referring the official document. but there isn't java version. I tried to reproduce the java code according scala example, but it's really hard to me.

A very simple query example

// Read a table from Kudu
val df = sqlContext.read.options(Map("kudu.master" -> "kudu.master:7051","kudu.table" -> "kudu_table")).kudu

But in java, there isn't a method called kudu followed by sqlContext.read.options

I hope kudu could provide varied version of examples officially.

0 Comment

NO COMMENTS

LEAVE A REPLY

Captcha image