Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chapsuk/spark_examples


https://github.com/chapsuk/spark_examples

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# Spark Examples

## Build

```shell
$ sbt assembly
```

## JsonReader

Spark on scala example.
Read json file, decode to User case class, print to output

### Dataset

[:bookmark_tabs:](https://storage.googleapis.com/otus_sample_data/winemag-data.json.tgz)

### Run

```shell
$ spark-submit \
--master local[*] \
--class com.example.JsonReader \
\

```

## CrimeStrict

Aggregate data from boston crimes dataset and write to parquet file

## Dataset

[:bookmark_tabs:](https://www.kaggle.com/AnalyzeBoston/crimes-in-boston)

### Run

```shell
$ spark-submit \
--master local[*] \
--class com.example.CrimeStrict \
\
\
\

```