Giter Site home page Giter Site logo

exampledataprocsdk's Introduction

Dataproc Spark Scala Job - CrashCourse

Project with material required for the Scala processing certification course, by Datio America.

Getting started with this project

First Compilation

Make a clean install in the root directory of the project

mvn clean install

First Execution with the SparkLauncher of dataproc-sdk libraries

Go to your IDE run configurations window and set the following configuration:

  • Main class: com.bbva.datioamproduct.fdevdatio.CrashCourseLauncher
  • VM options: -Dspark.master=local[*]
  • Program arguments should be a valid path to a configuration file: scalacrashcourse/src/main/resources/config/application.conf
  • Working directory should point to the root path of the project: /home/example/workspace/fdevdatio-scalacrashcourse
  • Use classpath of the main implementation module => scalacrashcourse
  • Set the location of the local input and output files as environment variables:
    • INPUT_SCHEMA_PATH = "scalacrashcourse/src/main/resources/schema/inputSchema.json"
    • OUTPUT_SCHEMA_PATH = "scalacrashcourse/src/main/resources/schema/outputSchema.json"
    • INPUT_PATH = "scalacrashcourse/src/main/resources/data/olympics.csv"
    • OUTPUT_PATH = "scalacrashcourse/target/data/result"

You will also need to enable the maven profile run-local.

For newer versions of Intellij IDEA, make sure that you have selected both 'Add VM Options' and 'Include dependencies with "Provided" scope' features.

Troubleshooting

  • I got java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder running this project in a local environment

Please add "logback" dependency in the parent POM file:

<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>${logback.version}</version>
</dependency>

exampledataprocsdk's People

Contributors

dagarciam 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.