{"id":13718734,"url":"https://github.com/chyh1990/jruby-spark","last_synced_at":"2025-03-20T01:40:08.658Z","repository":{"id":66091684,"uuid":"55905615","full_name":"chyh1990/jruby-spark","owner":"chyh1990","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-27T11:37:34.000Z","size":729,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-14T08:35:16.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chyh1990.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-10T15:04:32.000Z","updated_at":"2024-04-21T17:18:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"60c72a5a-2503-4981-afe3-20b98ac23d46","html_url":"https://github.com/chyh1990/jruby-spark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyh1990%2Fjruby-spark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyh1990%2Fjruby-spark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyh1990%2Fjruby-spark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chyh1990%2Fjruby-spark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chyh1990","download_url":"https://codeload.github.com/chyh1990/jruby-spark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244534571,"owners_count":20468074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:00:36.733Z","updated_at":"2025-03-20T01:40:08.654Z","avatar_url":"https://github.com/chyh1990.png","language":"Java","funding_links":[],"categories":["Distributed Computing"],"sub_categories":[],"readme":"# JRuby on Spark\n\nYuheng Chen \u003cyuhengchen@sensetime.com\u003e\n\nCombining Spark with elegant Ruby closure on JVM.\n\n## Setting up\n\nDownload Spark 1.6 distribution.\n\nNote that if you use `rvm` or similiar tools, use\n\n```\nrvm use system\n```\nto avoid loading installed gems.\n\nDownload JRuby 9.1.0.0\n[snapshot](http://ci.jruby.org/snapshots/master/jruby-complete-9.1.0.0-SNAPSHOT.jar)\nto `./libs`, then build the jruby spark:\n\n```\nrake package`\n```\n\nThe release package is available in `pkg`.\n\n## REPL\n\nRun JRuby Spark REPL shell:\n\n```\nexport SPARK_HOME=$YOUR_SPARK_HOME\n./bin/jruby-spark-repl.sh\n```\n\nBy default, `jruby-spark-repl.sh` use `spark-submit` to submit the REPL job\nlocally, similiar to `pyspark`.\n\nRun the word count example:\n\n```\n$sc.text_file('SOME_TXT_FILE.txt').flat_map{|x| x.downcase.split(/[^\\w']+/)}\n\t.map_to_pair{|x| tuple(x, 1)}.reduce_by_key(:+).collect_as_map\n```\n\nNote how well Ruby fits into Spark framework:\n\n* Block and lambda\n* symbol to `proc`\n* use powerful utilities in Ruby's standard library\n\n## One script job\n\n## Job with depedencies\n\n## Architecture\n\n### Closure marhshalling\n\n### Java interoperation\n\n### Size estimator\n\n### Conclusion\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyh1990%2Fjruby-spark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchyh1990%2Fjruby-spark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchyh1990%2Fjruby-spark/lists"}