Giter Site home page Giter Site logo

my_glue's Introduction

my_glue

1. Overview

My glue Project!

2. Usage

2.1 init project

python3 -m pip install --upgrade pip
pip install -U poetry

poetry install -v

2.2 usage

TODO

3. Develop

create local develop environment in windows

https://github.com/aws-samples/aws-glue-local-development https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-libraries.html#develop-local-python https://github.com/awslabs/aws-glue-libs https://github.com/steveloughran/winutils/tree/master/hadoop-3.0.0/bin https://stackoverflow.com/questions/41851066/exception-in-thread-main-java-lang-unsatisfiedlinkerror-org-apache-hadoop-io

  1. install python3.10 or later

  2. install java8 or later

  3. download https://aws-glue-etl-artifacts.s3.amazonaws.com/glue-4.0/spark-3.3.0-amzn-1-bin-3.3.3-amzn-0.tgz

  4. unzip D:\glue_local\spark

  5. system environment variable SPARK_HOME,HADOOP_HOME same path like D:\glue_local\spark

  6. download https://github.com/awslabs/aws-glue-libs/archive/refs/tags/v4.0.zip

  7. zip and mvn package get PyGlue.zip in linux or download from aws glue4.0 docker container(amazon/aws-glue-libs: glue_libs_4.0.0_image_01) /home/glue_user/aws-glue-libs/PyGlue.zip

  8. download hadoop-3.0.0/bin/winutils.exe and hadoop-3.0.0/bin/hadoop.dll

  9. copy hadoop-3.0.0/bin/winutils.exe and hadoop-3.0.0/bin/hadoop.dll to D:\glue_local\spark\bin

  10. python PYTHONPATH add

   D:\glue_local\spark\python
   D:\glue_local\spark\python\lib\py4j-0.10.9.5-src.zip
   D:\glue_local\aws-glue-libs\PyGlue.zip
  1. run test or job

  2. by error create dir like D:\tmp\spark-events

  3. install localstack

  4. install aws cli

my_glue's People

Contributors

liangszzz avatar

Watchers

 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.