Giter VIP home page Giter VIP logo

dio-live-aws-bigdata-2's Introduction

Instruções para atividade prática

Repositório para a Live de 24/06/2021

Kinesis Delivery Stream

  • AWS Console -> Kinesis -> Create Firehose Delivery Stream "StreamName" -> Direct PUT -> Next -> Choose Destination -> Create S3 Bucket “covid-vaccines-logs-diolive” -> Configure settings -> buffer size 5mb -> buffer interval 60s -> IAM Role -> create new role -> Review and create

EC2

  • AWS Console -> EC2 -> Amazon Linux 2 AMI -> t2micro -> review and launch -> create new key pair -> download .pem file -> download putty -> puttygen -> load.pem file -> save .ppk file -> putty copy dns -> paste hostname -> SSH -> auth -> load ppk file -> login “ec2-user”

    • sudo yum install -y aws-kinesis-agent
    • sudo yum install -y git
    • git clone https://github.com/cassianobrexbit/dio-live-aws-bigdata-2.git
    • unzip Dataset.zip
    • chmod a+x LogGenerator.py
    • nano LogGenerator.py
    • less country_vaccinations.csv
    • sudo mkdir /var/log/diolive
    • cd /etc/aws-kinesis
    • sudo nano agent.json
    • Copiar conteúdo do arquivo agent.json
    • agent.json -> "kinesis.endpoint": "kinesis..amazonaws.com"
  • AWS Console -> EC2 -> Instances -> Select Instance -> Security -> Modify IAM Role -> Create New Role -> EC2 -> Administrator Access -> rolename “ec2-admin-role” -> save

    • sudo service aws-kinesis-agent start
    • sudo chkconfig aws-kinesis-agent on (start with instance)
    • _cd ~_
    • sudo ./LogGenerator.py 500000
    • tail -f /var/log/aws-kinesis-agent/aws-kinesis-agent.log

S3

  • AWS Console -> S3 -> select bucket -> selecionar arquivo e download

SSH EC2

  • sudo service aws-kinesis-agent restart
  • sudo ./LogGenerator.py
  • tail -f /var/log/aws-kinesis-agent/aws-kinesis-agent.log
  • AWS Console -> Kinesis Streams -> select stream -> monitoring

AWS Glue

  • AWS Console -> glue databrew -> create new project -> create new role -> create project
  • Create dataset -> S3 -> formato CSV

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.