Skip to content

Commit

Permalink
Update Spark dependency version to 3.2.0, Parquet to 1.12.1, Avro to …
Browse files Browse the repository at this point in the history
…1.10.2.
  • Loading branch information
heuermh committed Oct 14, 2021
1 parent d60692f commit 1cb9111
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 1,332 deletions.
6 changes: 0 additions & 6 deletions adam-apis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,9 @@
<artifactId>scala-library</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<!-- provided scope from parent -->
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.version.prefix}</artifactId>
<!-- provided scope from parent -->
</dependency>
<dependency>
<groupId>org.bdgenomics.utils</groupId>
Expand Down
14 changes: 0 additions & 14 deletions adam-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.bdgenomics.adam</groupId>
<artifactId>adam-shade-spark3_${scala.version.prefix}</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
Expand All @@ -58,12 +51,6 @@
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.apache.parquet.avro</pattern>
<shadedPattern>org.bdgenomics.adam.shaded.org.apache.parquet.avro</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
Expand All @@ -72,7 +59,6 @@
<goal>shade</goal>
</goals>
<configuration>
<shaderHint>workaround</shaderHint>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
Expand Down
6 changes: 0 additions & 6 deletions adam-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,9 @@
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<!-- provided scope from parent -->
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.version.prefix}</artifactId>
<!-- provided scope from parent -->
</dependency>
<dependency>
<groupId>org.bdgenomics.utils</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public final class About {
private static final String ARTIFACT_ID = "${project.artifactId}";
private static final String BUILD_TIMESTAMP = "${build-helper-maven-plugin.build.timestamp}";
private static final String COMMIT = "${git.commit.id}";
private static final String HADOOP_VERSION = "${hadoop.version}";
private static final String SCALA_VERSION = "${scala.version}";
private static final String SPARK_VERSION = "${spark.version}";
private static final String VERSION = "${project.version}";
Expand Down Expand Up @@ -56,15 +55,6 @@ public String commit() {
return COMMIT;
}

/**
* Return the Hadoop compile scope dependency version.
*
* @return the Hadoop compile scope dependency version
*/
public String hadoopVersion() {
return HADOOP_VERSION;
}

/**
* Return the Scala compile scope dependency version.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ class ADAMMain @Inject() (commandGroups: List[CommandGroup]) extends Logging {
if (about.isSnapshot) {
println("Commit: %s Build: %s".format(about.commit, about.buildTimestamp))
}
println("Built for: Apache Spark %s, Scala %s, and Hadoop %s"
.format(about.sparkVersion, about.scalaVersion, about.hadoopVersion))
println("Built for: Apache Spark %s and Scala %s"
.format(about.sparkVersion, about.scalaVersion))
println("Cite: doi:10.1145/2723372.2742787")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ class PrintADAM(protected val args: PrintADAMArgs) extends BDGSparkCommand[Print
val schema = hd.getSchema
val writer = new GenericDatumWriter[Object](schema)
val encoder = EncoderFactory.get().jsonEncoder(schema, out)
val jg = new org.codehaus.jackson.JsonFactory().createJsonGenerator(out)
jg.useDefaultPrettyPrinter()
encoder.configure(jg)
it.foreach(pileup => {
writer.write(pileup, encoder)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class AboutSuite extends FunSuite {
test("template variables have been replaced") {
assert(about.artifactId !== "${project.artifactId}")
assert(about.buildTimestamp !== "${maven.build.timestamp}")
assert(about.hadoopVersion !== "${hadoop.version}")
assert(about.scalaVersion !== "${scala.version}")
assert(about.sparkVersion !== "${spark.version}")
assert(about.version !== "${version}")
Expand All @@ -34,7 +33,6 @@ class AboutSuite extends FunSuite {
test("templated values are not empty") {
assert(about.artifactId.nonEmpty)
assert(about.buildTimestamp.nonEmpty)
assert(about.hadoopVersion.nonEmpty)
assert(about.scalaVersion.nonEmpty)
assert(about.sparkVersion.nonEmpty)
assert(about.version.nonEmpty)
Expand Down
6 changes: 0 additions & 6 deletions adam-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,9 @@
<artifactId>scala-library</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<!-- provided scope from parent -->
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.version.prefix}</artifactId>
<!-- provided scope from parent -->
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
Expand Down

0 comments on commit 1cb9111

Please sign in to comment.