{"id":13527201,"url":"https://github.com/databricks/learning-spark","last_synced_at":"2025-05-14T12:10:08.132Z","repository":{"id":17911784,"uuid":"20873044","full_name":"databricks/learning-spark","owner":"databricks","description":"Example code from Learning Spark book","archived":false,"fork":false,"pushed_at":"2023-12-16T18:15:33.000Z","size":370,"stargazers_count":3896,"open_issues_count":30,"forks_count":2424,"subscribers_count":392,"default_branch":"master","last_synced_at":"2025-05-08T05:19:05.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/databricks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-06-16T04:47:54.000Z","updated_at":"2025-05-01T06:15:15.000Z","dependencies_parsed_at":"2023-01-13T19:33:48.298Z","dependency_job_id":"8059dfe6-032b-406e-9bb9-66767773b2a8","html_url":"https://github.com/databricks/learning-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/databricks%2Flearning-spark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databricks%2Flearning-spark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databricks%2Flearning-spark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/databricks%2Flearning-spark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/databricks","download_url":"https://codeload.github.com/databricks/learning-spark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254140756,"owners_count":22021219,"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-01T06:01:43.138Z","updated_at":"2025-05-14T12:10:03.113Z","avatar_url":"https://github.com/databricks.png","language":"Java","readme":"[![buildstatus](https://travis-ci.org/holdenk/learning-spark-examples.svg?branch=master)](https://travis-ci.org/holdenk/learning-spark-examples)\nExamples for Learning Spark\n===============\nExamples for the Learning Spark book. These examples require a number of libraries and as such have long build files. We have also added a stand alone example with minimal dependencies and a small build file\nin the mini-complete-example directory.\n\n\nThese examples have been updated to run against Spark 1.3 so they may\nbe slightly different than the versions in your copy of \"Learning Spark\".\n\nRequirements\n==\n* JDK 1.7 or higher\n* Scala 2.10.3\n- scala-lang.org\n* Spark 1.3\n* Protobuf compiler\n- On debian you can install with sudo apt-get install protobuf-compiler\n* R \u0026 the CRAN package Imap are required for the ChapterSixExample\n* The Python examples require urllib3\n\nPython examples\n===\n\nFrom spark just run ./bin/pyspark ./src/python/[example]\n\nSpark Submit\n===\n\nYou can also create an assembly jar with all of the dependencies for running either the java or scala\nversions of the code and run the job with the spark-submit script\n\n./sbt/sbt assembly OR mvn package\ncd $SPARK_HOME; ./bin/spark-submit   --class com.oreilly.learningsparkexamples.[lang].[example] ../learning-spark-examples/target/scala-2.10/learning-spark-examples-assembly-0.0.1.jar\n\n[![Learning Spark](http://akamaicovers.oreilly.com/images/0636920028512/cat.gif)](http://www.jdoqocy.com/click-7645222-11260198?url=http%3A%2F%2Fshop.oreilly.com%2Fproduct%2F0636920028512.do%3Fcmp%3Daf-strata-books-videos-product_cj_9781449358600_%2525zp\u0026cjsku=0636920028512)","funding_links":[],"categories":["Java","VII. Other"],"sub_categories":["1. Source code examples"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabricks%2Flearning-spark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabricks%2Flearning-spark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabricks%2Flearning-spark/lists"}