Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Arkang/Spark-Scala-Maven-Example

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Maven Project for Scala Spark 2 Application

Introduction

This archive contains an example Maven project for Scala Spark 2 application.

Details

The pom.xml contains example dependencies for : -

  • Spark
  • SLF4J
  • LOG4J (acts as logging implementation for SLF4J)
  • grizzled-slf4 a Scala specific wrapper for SLF4J.
  • typesafe for config.
  • scalatest for testing.

Note that Scala itself is just listed as another dependency which means a global installation of Scala is not required. The pom.xml builds an uber-jar containing all the dependencies by default (including Scala jars).

The pom also includes two exec goals: -

  • exec:exec@run-local - run the code using local spark instance.
  • exec:exec@run-yarn - run the code on a remote yarn cluster. In order for this to work the hive-site.xml, core-site.xml and yarn-site.xml configuration files from the remote cluster must be copied into the spark-remote/conf directory.

Reference

Maven for scala link

About

Example Maven configuration for a Spark, Scala project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Scala 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.