{"id":19485515,"url":"https://github.com/chapsuk/spark_examples","last_synced_at":"2025-02-25T18:30:03.647Z","repository":{"id":82862422,"uuid":"300708795","full_name":"chapsuk/spark_examples","owner":"chapsuk","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-02T23:51:09.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T07:48:09.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/chapsuk.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":"2020-10-02T18:53:59.000Z","updated_at":"2020-10-02T23:51:11.000Z","dependencies_parsed_at":"2023-03-02T04:45:24.478Z","dependency_job_id":null,"html_url":"https://github.com/chapsuk/spark_examples","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/chapsuk%2Fspark_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapsuk%2Fspark_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapsuk%2Fspark_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapsuk%2Fspark_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chapsuk","download_url":"https://codeload.github.com/chapsuk/spark_examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240722131,"owners_count":19847048,"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-11-10T20:28:08.669Z","updated_at":"2025-02-25T18:30:03.601Z","avatar_url":"https://github.com/chapsuk.png","language":"Scala","readme":"# Spark Examples\n\n\n\n## Build\n\n```shell\n$ sbt assembly\n```\n\n## JsonReader \n\nSpark on scala example.\nRead json file, decode to User case class, print to output\n\n### Dataset\n\n[:bookmark_tabs:](https://storage.googleapis.com/otus_sample_data/winemag-data.json.tgz)\n\n### Run\n\n```shell\n$ spark-submit                      \\\n    --master local[*]               \\\n    --class com.example.JsonReader  \\\n    \u003cassembly.jar\u003e                  \\\n    \u003ctarget.json\u003e\n```\n\n## CrimeStrict\n\nAggregate data from boston crimes dataset and write to parquet file\n\n## Dataset\n\n[:bookmark_tabs:](https://www.kaggle.com/AnalyzeBoston/crimes-in-boston)\n\n### Run\n\n```shell\n$ spark-submit                      \\\n    --master local[*]               \\\n    --class com.example.CrimeStrict \\\n    \u003cassembly.jar\u003e                  \\\n    \u003ccrimes.csv\u003e                    \\ \n    \u003coffense.csv\u003e                   \\\n    \u003coutput_dir\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapsuk%2Fspark_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchapsuk%2Fspark_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapsuk%2Fspark_examples/lists"}