Support Questions

Find answers, ask questions, and share your expertise

Is there a Spark Maven archetype for Java?

Is there a Maven Archetype that does the following?

  1. Setup HDP Maven repository
  2. Create Maven profiles to download different versions of Spark and Hadoop jars based on HDP version
  3. Setup for building an uber jar
  4. Add a sample Java application and test case to the project
  5. Add winutils binaries to run test-cases on Windows

I found this: https://github.com/spark-in-action/scala-archetype-sparkinaction, which does #4, but for Scala.

1 ACCEPTED SOLUTION

Explorer

I created a simple archetype to solve 1-4. It can be found at the link below.

https://github.com/jjmeyer0/spark-java-archetype.git

View solution in original post

3 REPLIES 3

Contributor

Unfortunately, I have not found any archetype to meet these requirements, but the need is there.

The project below seems to meet #4 on the list as a starting point:

sparkjava-archetypes

@Vladimir Zlatkin that would be awesome if we had and HDP Maven archetype. Following the issue in case we find a custom archetype.

Explorer

I created a simple archetype to solve 1-4. It can be found at the link below.

https://github.com/jjmeyer0/spark-java-archetype.git

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.