ondra-m / ruby-spark

Ruby wrapper for Apache Spark
MIT License
227 stars 29 forks source link

Maybe a better implementation of ruby binding for Apache Spark #33

Open chyh1990 opened 8 years ago

chyh1990 commented 8 years ago

Hi,

I have written a new prototype for ruby spark binding

https://github.com/chyh1990/jruby-spark

Although this implementation only works on JRuby, I think this approach is more promising:

https://github.com/chyh1990/jruby-spark/blob/master/examples/pagerank.rb

https://github.com/chyh1990/jruby-spark/blob/master/examples/sqltest.rb

The prototype is preliminary, but the concept is proved. I think ruby would be a more elegant binding language for spark than python. I'm looking forward for more participants!

ondra-m commented 8 years ago

Do you have some install guide?

I tried rake package but go:

jruby-spark/src/main/scala/org/apache/spark/jruby/JRubyIteratableAdaptor.scala:6: error: object jruby is not a member of package org
...
gnilrets commented 8 years ago

It's unfortunate that @chyh1990 is not very responsive right now, but I was able to get a spark session going after doing a few extra things - https://github.com/chyh1990/jruby-spark/issues/1