GithubHelp home page GithubHelp logo

ugoa / amazon-eks-apache-spark-etl-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-eks-apache-spark-etl-sample

0.0 0.0 0.0 28 KB

Spark ETL example processing New York taxi rides public dataset on EKS

License: MIT No Attribution

Dockerfile 26.00% Scala 74.00%

amazon-eks-apache-spark-etl-sample's Introduction

Description

Spark job example on Amazon EKS processing NYC taxi events. The job takes 4 arguments:

  • The yellow NYC taxi rides source (can be the official NYC taxi bucket)
  • The green NYC taxi rides source (can be the official NYC taxi bucket)
  • The taxi zone referential data that will be joined with taxi rides
  • The target bucket that will contain geo-localized taxi rides and statistics for identifying the most profitable zones for drivers

Data format

The job follows the data format provided by 2018 NYC taxi rides

Pre-requisite

  • Compatibility: Spark 2.4.4, Scala 2.11.12, Sbt 1.2.8
  • Amazon S3 bucket for writing results
  • AWS IAM policy with permissions on the previous Amazon S3 bucket
  • eksctl for Amazon EKS cluster creation. Change the AWS IAM policy ARN in the file to match the previous one. This will attach the policy to the worker nodes instance role

eksctl create cluster -f example/eksctl.yaml

Building

  • Build the spark base image

docker build --target=spark -t <YOUR_DOCKER_REPO>/spark:v2.4.4 .

  • Build the application image

docker build -t <YOUR_DOCKER_REPO>/spark-on-eks:v1.0 .

Deployment

Configure EKS

RBAC

kubectl apply -f example/kubernetes/spark-rbac.yaml

Run the application on Amazon EKS cluster

Spark job

  • Change the image name and the Amazon S3 bucket name in example/kubernetes/spark-job.yaml to match your environment
  • Run the job

kubectl apply -f spark-job.yaml

License

Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0

amazon-eks-apache-spark-etl-sample's People

Contributors

jamesiri avatar vgkowski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.