I have a JavaPairRDD<String, String> results
and I save it by calling:
results.saveAsTextFile("data")
Then I get files content like:
(www.abc.com,0.15712321 www.def.com,www.aaa.com,www.ccc.com)
Now, I want to create a table with three fields using Shark like:
url STRING | rank DOUBLE | links STRING
www.abc.com | 0.15712321 | www.def.com,www.aaa.com,www.ccc.com
How can I do that?