Hi Shark,

Should I assume that Shark users should not use the shark APIs since there
are no documentations for it? If there are documentations, can you point it
out?

Best Regards,

Jerry


On Thu, Apr 3, 2014 at 9:24 PM, Jerry Lam <chiling...@gmail.com> wrote:

> Hello everyone,
>
> I have successfully installed Shark 0.9 and Spark 0.9 in standalone mode
> in a cluster of 6 nodes for testing purposes.
>
> I would like to use Shark API in Spark programs. So far I could only find
> the following:
>
> $./bin/shark-shell
> scala> val youngUsers = sc.sql2rdd("SELECT * FROM users WHERE age < 20")
> scala> println(youngUsers.count)
> ...
> scala> val featureMatrix = youngUsers.map(extractFeatures(_))
> scala> kmeans(featureMatrix)
>
> Is there a more complete sample code to start a program using Shark API in
> Spark?
>
> Thanks!
>
> Jerry
>

Reply via email to