GithubHelp home page GithubHelp logo

aws-big-data-projects / amazon-emr-with-delta-lake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-emr-with-delta-lake

1.0 1.0 0.0 17 KB

Amazon EMR Notebook to show how to read from and write to Delta tables with Amazon EMR

License: MIT No Attribution

Python 3.69% Batchfile 0.45% Jupyter Notebook 95.87%

amazon-emr-with-delta-lake's Introduction

Deltalake with Amazon EMR

This guide helps you quickly explore the main features of Delta Lake. It provides code snippets that show how to read from and write to Delta tables with Amazon EMR.
For more details, check this video

Quickstart

  1. Create s3 bucket for delta lake (e.g. learn-deltalake-2022)
  2. Create EMR Cluster using AWS CDK. (Check details in instructions)
  3. Open the Amazon EMR console at https://console.aws.amazon.com/elasticmapreduce/
  4. Create Jupyter Notebook
  5. Upload deltalake-with-emr-demo.ipynb into Jupyter Notebook
  6. Set kernel to PySpark, and Run each cells
  7. For run Amazn Athena queries on Delta Lake, Check this

Key Configurations

  • Amazon EMR Applications

    • Hadoop
    • Hive
    • JupyterHub
    • JupyterEnterpriseGateway
    • Livy
    • Apache Spark (>= 3.0)
  • Apache Spark (PySpark)

    {
      "conf": {
        "spark.jars.packages": "io.delta:delta-core_2.12:{version}",
        "spark.sql.extensions": "io.delta.sql.DeltasparkSessionExtension",
        "spark.sql.catalog.spark_catalog": "org.apache.spark.sql.delta.catalog.DeltaCatalog",
      }
    }
    
    • YOU MUST REPLACE {version} with the appropriate one
    • For more details, check this

Compatibility with Apache Spark

Delta lake version Apache Spark version
1.1.x 3.2.x
1.0.x 3.1.x
0.7.x and 0.8.x 3.0.x
Below 0.7.x 2.4.2 - 2.4.<latest>

References

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

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.