Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Is there a Spark Maven archetype for Java?

avatar

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

avatar
New Member

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

avatar
Rising Star

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

avatar

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

avatar
New Member

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