spark-util


License

License

GroupId

GroupId

org.hammerlab
ArtifactId

ArtifactId

spark-util_2.11
Last Version

Last Version

3.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

spark-util
spark-util
Project URL

Project URL

https://github.com/hammerlab/spark-util
Project Organization

Project Organization

org.hammerlab
Source Code Management

Source Code Management

https://github.com/hammerlab/spark-util

Download spark-util_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/org.hammerlab/spark-util_2.11/ -->
<dependency>
    <groupId>org.hammerlab</groupId>
    <artifactId>spark-util_2.11</artifactId>
    <version>3.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.hammerlab/spark-util_2.11/
implementation 'org.hammerlab:spark-util_2.11:3.1.0'
// https://jarcasting.com/artifacts/org.hammerlab/spark-util_2.11/
implementation ("org.hammerlab:spark-util_2.11:3.1.0")
'org.hammerlab:spark-util_2.11:jar:3.1.0'
<dependency org="org.hammerlab" name="spark-util_2.11" rev="3.1.0">
  <artifact name="spark-util_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.hammerlab', module='spark-util_2.11', version='3.1.0')
)
libraryDependencies += "org.hammerlab" % "spark-util_2.11" % "3.1.0"
[org.hammerlab/spark-util_2.11 "3.1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
org.hammerlab : paths_2.11 jar 1.5.0
com.esotericsoftware.kryo : kryo jar 2.24.0

provided (2)

Group / Artifact Type Version
org.apache.hadoop : hadoop-client jar 2.7.3
org.apache.spark : spark-core_2.11 jar 2.4.0

test (2)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 3.0.4
org.hammerlab.test : base_2.11 jar 1.1.0

Project Modules

There are no modules declared in this project.

spark-util

Build Status Coverage Status Maven Central

Spark, Hadoop, and Kryo utilities

Kryo registration

Classes that implement the Registrar interface can use various shorthands for registering classes with Kryo.

Adapted from RegistrationTest:

register(
  cls[A],                  // comes with an AlsoRegister that loops in other classes
  arr[Foo],                // register a class and an Array of that class
  cls[B]  BSerializer(),  // use a custom Serializer
  CDRegistrar              // register all of another Registrar's registrations
)
  • custom Serializers and AlsoRegisters are picked up implicitly if not provided explicitly.
  • AlsoRegisters are recursive, allowing for much easier and more robust accountability about what is registered and why, and ensurance that needed registrations aren't overlooked.

Configuration/Context wrappers

  • Configuration: serializable Hadoop-Configuration wrapper
  • Context: SparkContext wrapper that is also a Hadoop Configuration, for unification of "global configuration access" patterns
  • Conf: load a SparkConf with settings from file(s) specified in the SPARK_PROPERTIES_FILES environment variable

Spark Configuration

Misc

org.hammerlab

Hammer Lab

We're a lab working to understand and improve the immune response to cancer

Versions

Version
3.1.0
3.0.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.3.0
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0