Skip to content

Commit 6378608

Browse files
committed
Bumped to 1.1.0
Bumped connector dependency to 2.4.0. Fixed a few issues in the NOTICE file.
1 parent a384c47 commit 6378608

File tree

9 files changed

+41
-41
lines changed

9 files changed

+41
-41
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,15 @@ are all synonyms):
256256

257257
./gradlew shadowJar
258258

259-
This will produce an assembly jar at `./flux-cli/build/libs/marklogic-flux-1.0.0-all.jar`.
259+
This will produce an assembly jar at `./flux-cli/build/libs/marklogic-flux-1.1.0-all.jar`.
260260

261261
You can now run any CLI command via spark-submit. This is an example of previewing an import of files - change the value
262262
of `--path`, as an absolute path is needed, and of course change the value of `--master` to match that of your Spark
263263
cluster:
264264

265265
```
266266
$SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \
267-
--master spark://NYWHYC3G0W:7077 flux-cli/build/libs/marklogic-flux-1.1.0-SNAPSHOT-all.jar \
267+
--master spark://NYWHYC3G0W:7077 flux-cli/build/libs/marklogic-flux-1.1.0-all.jar \
268268
import-files --path /Users/rudin/workspace/flux/flux-cli/src/test/resources/mixed-files \
269269
--connection-string "admin:admin@localhost:8000" \
270270
--preview 5 --preview-drop content
@@ -281,7 +281,7 @@ to something you can access):
281281
$SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \
282282
--packages org.apache.hadoop:hadoop-aws:3.3.4,org.apache.hadoop:hadoop-client:3.3.4 \
283283
--master spark://NYWHYC3G0W:7077 \
284-
flux-cli/build/libs/marklogic-flux-1.1.0-SNAPSHOT-all.jar \
284+
flux-cli/build/libs/marklogic-flux-1.1.0-all.jar \
285285
import-files --path "s3a://changeme/" \
286286
--connection-string "admin:admin@localhost:8000" \
287287
--s3-add-credentials \

NOTICE.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ To the extent required by the applicable open-source license, a complete machine
66

77
Third Party Notices
88

9-
aws-java-sdk-s3 1.12.367 (Apache-2.0)
10-
hadoop-aws 3.3.6 (Apache-2.0)
11-
hadoop-client 3.3.6 (Apache-2.0)
12-
marklogic-spark-connector 2.3.0 (Apache-2.0)
9+
aws-java-sdk-s3 1.12.262 (Apache-2.0)
10+
hadoop-aws 3.3.4 (Apache-2.0)
11+
hadoop-client 3.3.4 (Apache-2.0)
12+
marklogic-spark-connector 2.4.0 (Apache-2.0)
1313
picocli 4.7.6 (Apache-2.0)
14-
spark-avro_2.12 3.4.3 (Apache-2.0)
15-
spark-sql_2.12 3.4.3 (Apache-2.0)
14+
spark-avro_2.12 3.5.3 (Apache-2.0)
15+
spark-sql_2.12 3.5.3 (Apache-2.0)
1616

1717
Common Licenses
1818

@@ -22,32 +22,32 @@ Third-Party Components
2222

2323
The following is a list of the third-party components used by MarkLogic® Flux™ v1 (last updated July 2, 2024):
2424

25-
aws-java-sdk-s3 1.12.367 (Apache-2.0)
25+
aws-java-sdk-s3 1.12.262 (Apache-2.0)
2626
https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-s3
2727
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
2828

2929

30-
hadoop-aws 3.3.6 (Apache-2.0)
30+
hadoop-aws 3.3.4 (Apache-2.0)
3131
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws
3232
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
3333

34-
hadoop-client 3.3.6 (Apache-2.0)
34+
hadoop-client 3.3.4 (Apache-2.0)
3535
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-client
3636
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
3737

38-
marklogic-spark-connector 2.3 (Apache-2.0)
38+
marklogic-spark-connector 2.34.0(Apache-2.0)
3939
https://repo1.maven.org/maven2/com/marklogic/marklogic-spark-connector
4040
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
4141

4242
picocli 4.7.6 (Apache-2.0)
4343
https://repo1.maven.org/maven2/info/picocli/picocli
4444
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
4545

46-
spark-avro_2.12 3.4.3 (Apache-2.0)
46+
spark-avro_2.12 3.5.3 (Apache-2.0)
4747
https://repo1.maven.org/maven2/org/apache/spark/spark-avro_2.12
4848
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
4949

50-
spark-sql_2.12 3.4.3 (Apache-2.0)
50+
spark-sql_2.12 3.5.3 (Apache-2.0)
5151
https://repo1.maven.org/maven2/org/apache/spark/spark-sql_2.12
5252
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
5353

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ subprojects {
1010

1111
repositories {
1212
mavenCentral()
13-
mavenLocal()
14-
maven {
15-
url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
16-
}
13+
// mavenLocal()
14+
// maven {
15+
// url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
16+
// }
1717
}
1818

1919
test {

docs/api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ To add Flux as a dependency to your application, add the following to your Maven
2222
<dependency>
2323
<groupId>com.marklogic</groupId>
2424
<artifactId>flux-api</artifactId>
25-
<version>1.0.0</version>
25+
<version>1.1.0</version>
2626
</dependency>
2727
```
2828

2929
Or if you are using Gradle, add the following to your `build.gradle` file:
3030

3131
```
3232
dependencies {
33-
implementation "com.marklogic:flux-api:1.0.0"
33+
implementation "com.marklogic:flux-api:1.1.0"
3434
}
3535
```
3636

@@ -97,7 +97,7 @@ buildscript {
9797
mavenCentral()
9898
}
9999
dependencies {
100-
classpath "com.marklogic:flux-api:1.0.0"
100+
classpath "com.marklogic:flux-api:1.1.0"
101101
}
102102
}
103103
```
@@ -139,7 +139,7 @@ buildscript {
139139
mavenCentral()
140140
}
141141
dependencies {
142-
classpath "com.marklogic:flux-api:1.0.0"
142+
classpath "com.marklogic:flux-api:1.1.0"
143143
classpath("com.marklogic:ml-gradle:4.8.0") {
144144
exclude group: "com.fasterxml.jackson.databind"
145145
exclude group: "com.fasterxml.jackson.core"

docs/getting-started.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ This guide describes how to get started with Flux with some examples demonstrati
1515
## Setup
1616

1717
You can download the latest release of the Flux application zip from [the latest Flux release page](https://github.com/marklogic/flux/releases).
18-
The Flux application zip is titled `marklogic-flux-1.0.0.zip`. You can extract this zip to any location on your
18+
The Flux application zip is titled `marklogic-flux-1.1.0.zip`. You can extract this zip to any location on your
1919
filesystem that you prefer.
2020

2121
### Deploying the example application
2222

2323
The examples in this guide, along with examples found throughout this documentation, depend on a small MarkLogic
2424
application that can be deployed to your own instance of MarkLogic server. The application can be downloaded from
2525
[the latest Flux release page](https://github.com/marklogic/flux/releases) in a zip titled
26-
`marklogic-flux-getting-started-1.0.0.zip`. To use Flux with this example application, perform the following steps:
26+
`marklogic-flux-getting-started-1.1.0.zip`. To use Flux with this example application, perform the following steps:
2727

28-
1. Extract the `marklogic-flux-getting-started-1.0.0.zip` file to any location on your local filesystem.
29-
2. Run `cd marklogic-flux-getting-started-1.0.0` to change to the directory created by extracting the ZIP file.
28+
1. Extract the `marklogic-flux-getting-started-1.1.0.zip` file to any location on your local filesystem.
29+
2. Run `cd marklogic-flux-getting-started-1.1.0` to change to the directory created by extracting the ZIP file.
3030
3. Create a file named `gradle-local.properties` and add `mlPassword=your MarkLogic admin user password` to it.
3131
4. Examine the contents of the `gradle.properties` file to ensure that the value of `mlHost` points to your MarkLogic
3232
server and that the value of `mlRestPort` is a port available for a new MarkLogic app server to use.
@@ -38,15 +38,15 @@ privileges for running the examples in this guide. Finally, the application incl
3838
[MarkLogic TDE template](https://docs.marklogic.com/guide/app-dev/TDE) that creates a view in MarkLogic for the purpose
3939
of demonstrating commands that utilize a [MarkLogic Optic query](https://docs.marklogic.com/guide/app-dev/OpticAPI).
4040

41-
It is recommended to extract the Flux application zip into the `marklogic-flux-getting-started-1.0.0` directory so that
41+
It is recommended to extract the Flux application zip into the `marklogic-flux-getting-started-1.1.0` directory so that
4242
you can easily execute the examples in this guide. After extracting the application zip, the directory should have a
4343
structure similar to this (not all files may be shown):
4444

4545
```
46-
./marklogic-flux-getting-started-1.0.0
46+
./marklogic-flux-getting-started-1.1.0
4747
build.gradle
4848
./data
49-
./marklogic-flux-1.0.0
49+
./marklogic-flux-1.1.0
5050
./gradle
5151
gradle.properties
5252
gradlew
@@ -59,7 +59,7 @@ structure similar to this (not all files may be shown):
5959
You can run Flux without any options to see the list of available commands. If you are using Flux to run these examples,
6060
first change your current directory to where you extract Flux:
6161

62-
cd marklogic-flux-1.0.0
62+
cd marklogic-flux-1.1.0
6363

6464
And then run the Flux executable without any options:
6565

docs/spark-integration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require more system resources than what are available when running Flux as a com
1515

1616
## Spark security notice
1717

18-
As of August 2024 and the Flux 1.0.0 release, all public releases of Apache Spark 3.4.x through 3.5.1 depend on
18+
As of October 2024 and the Flux 1.1.0 release, all public releases of Apache Spark 3.4.x through 3.5.3 depend on
1919
Apache Hadoop 3.3.4. This version of Hadoop has a
2020
[CVE filed against it](https://nvd.nist.gov/vuln/detail/CVE-2023-26031). The CVE involves Spark running with a
2121
YARN cluster manager and the YARN cluster "is accepting work from remote (authenticated) users".
@@ -35,8 +35,8 @@ Flux integrates with [spark-submit](https://spark.apache.org/docs/latest/submitt
3535
submit a Flux command invocation to a remote Spark cluster. Every Flux command is a Spark application, and thus every
3636
Flux command, along with all of its option, can be invoked via `spark-submit`.
3737

38-
To use Flux with `spark-submit`, first download the `marklogic-flux-1.0.0-all.jar` file from the
39-
[GitHub release page](https://github.com/marklogic/flux/releases/tag/1.0.0). This jar file includes Flux and all of
38+
To use Flux with `spark-submit`, first download the `marklogic-flux-1.1.0-all.jar` file from the
39+
[GitHub release page](https://github.com/marklogic/flux/releases/tag/1.1.0). This jar file includes Flux and all of
4040
its dependencies, excluding those of Spark itself, which will be provided via the Spark cluster that you connect to
4141
via `spark-submit`.
4242

@@ -48,7 +48,7 @@ The following shows a notional example of running the Flux `import-files` comman
4848
```
4949
$SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \
5050
--master spark://changeme:7077 \
51-
marklogic-flux-1.0.0-all.jar \
51+
marklogic-flux-1.1.0-all.jar \
5252
import-files \
5353
--path path/to/data \
5454
--connection-string user:password@host:8000 \
@@ -59,7 +59,7 @@ $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \
5959
```
6060
$SPARK_HOME\bin\spark-submit --class com.marklogic.flux.spark.Submit ^
6161
--master spark://changeme:7077 ^
62-
marklogic-flux-1.0.0-all.jar ^
62+
marklogic-flux-1.1.0-all.jar ^
6363
import-files ^
6464
--path path/to/data ^
6565
--connection-string user:password@host:8000 ^

examples/client-project/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenLocal()
77
}
88
dependencies {
9-
classpath "com.marklogic:flux-api:1.0.0"
9+
classpath "com.marklogic:flux-api:1.1.0"
1010

1111
// Demonstrates removing the Jackson libraries that otherwise cause a conflict with
1212
// Spark, which requires Jackson >= 2.14.0 and < 2.15.0.
@@ -28,7 +28,7 @@ repositories {
2828
}
2929

3030
dependencies {
31-
implementation "com.marklogic:flux-api:1.0.0"
31+
implementation "com.marklogic:flux-api:1.1.0"
3232
}
3333

3434
tasks.register("runApp", JavaExec) {

flux-cli/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies {
1717
// The rocksdbjni dependency weighs in at 50mb and so far does not appear necessary for our use of Spark.
1818
exclude module: "rocksdbjni"
1919
}
20-
implementation "com.marklogic:marklogic-spark-connector:2.4-SNAPSHOT"
20+
implementation "com.marklogic:marklogic-spark-connector:2.4.0"
2121
implementation "info.picocli:picocli:4.7.6"
2222

2323
// Spark 3.4.3 depends on Hadoop 3.3.4, which depends on AWS SDK 1.12.262. As of August 2024, all public releases of
@@ -75,7 +75,7 @@ dependencies {
7575
// Forcing HttpClient to use this to address https://snyk.io/vuln/SNYK-JAVA-COMMONSCODEC-561518 .
7676
testImplementation 'commons-codec:commons-codec:1.17.1'
7777

78-
shadowDependencies "com.marklogic:marklogic-spark-connector:2.4-SNAPSHOT"
78+
shadowDependencies "com.marklogic:marklogic-spark-connector:2.4.0"
7979
shadowDependencies "info.picocli:picocli:4.7.6"
8080
}
8181

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=1.1.0-SNAPSHOT
1+
version=1.1.0
22

33
# Define these on the command line to publish to OSSRH
44
# See https://central.sonatype.org/publish/publish-gradle/#credentials for more information

0 commit comments

Comments
 (0)