Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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
Contributor

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
Contributor

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