Skip to content

Commit

Permalink
[Spark Distribution] Default Assemble artifact to Spark 3 (#107)
Browse files Browse the repository at this point in the history
* [Spark Distribution] Default to Spark 3

This changes the build.gradle file to default the assembled spark artifacts to
use Spark 3 instead of Spark 2. This will enable users to leverage Spark 3
features (e.g., streaming, extensions).

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>

* update changelog

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>

---------

Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
  • Loading branch information
nknize committed Feb 20, 2023
1 parent dd0396e commit 81fd694
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Added
- Added CHANGELOG and verifier workflow ([65](https://github.com/opensearch-project/opensearch-hadoop/pull/65))
### Changed
- [Spark Distribution] Default Assemble artifact to Spark 3 ([107](https://github.com/opensearch-project/opensearch-hadoop/pull/107))
### Deprecated
### Removed
### Fixed
Expand Down
6 changes: 3 additions & 3 deletions dist/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'opensearch.hadoop.build'
description = "OpenSearch for Apache Hadoop"
project.archivesBaseName = 'opensearch-hadoop'

def sparkVariantIncluded = 'spark20scala211'
def sparkVariantIncluded = 'spark30scala212'

configurations {
embedded {
Expand Down Expand Up @@ -44,11 +44,11 @@ configurations {
BuildPlugin.disableTransitiveDependencies(project, project.configurations.thirdPartyShaded)

def distProjects = [":opensearch-hadoop-mr", ":opensearch-hadoop-hive", ":opensearch-hadoop-pig",
":opensearch-spark-20", ":opensearch-storm"]
":opensearch-spark-30", ":opensearch-storm"]

distProjects.each { distProject ->
def configureDistDependency = { Dependency dependency ->
if (distProject == ":opensearch-spark-20") {
if (distProject == ":opensearch-spark-30") {
dependency.capabilities {
requireCapability("org.opensearch.spark.sql.variant:$sparkVariantIncluded:$project.version")
}
Expand Down
1 change: 1 addition & 0 deletions dist/licenses/commons-codec-1.15.jar.sha1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
49d94806b6e3dc933dacbd8acb0fdbab8ebd1e5d
1 change: 0 additions & 1 deletion dist/licenses/commons-codec-1.4.jar.sha1

This file was deleted.

0 comments on commit 81fd694

Please sign in to comment.