From e107061c83e85e67d4b92103f2ee0f12847bb001 Mon Sep 17 00:00:00 2001 From: Rob Rudin Date: Tue, 12 May 2026 17:04:37 -0400 Subject: [PATCH 1/7] Bumped to 3.1.1 --- docs/api.md | 4 ++-- docs/spark-integration.md | 6 +++--- examples/client-project/build.gradle | 6 +++--- gradle.properties | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/api.md b/docs/api.md index 30790ca9..533e66bb 100644 --- a/docs/api.md +++ b/docs/api.md @@ -30,7 +30,7 @@ Or if you are using Gradle, add the following to your `build.gradle` file: ``` dependencies { - implementation "com.marklogic:flux-api:2.0.0" + implementation "com.marklogic:flux-api:2.1.1" } ``` @@ -161,7 +161,7 @@ buildscript { mavenCentral() } dependencies { - classpath "com.marklogic:flux-api:2.0.0" + classpath "com.marklogic:flux-api:2.1.1" } } ``` diff --git a/docs/spark-integration.md b/docs/spark-integration.md index 7f42b144..2dad7c50 100644 --- a/docs/spark-integration.md +++ b/docs/spark-integration.md @@ -35,7 +35,7 @@ Flux integrates with [spark-submit](https://spark.apache.org/docs/latest/submitt submit a Flux command invocation to a remote Spark cluster. Every Flux command is a Spark application, and thus every Flux command, along with all of its option, can be invoked via `spark-submit`. -To use Flux with `spark-submit`, first download the `marklogic-flux-2.1.0-all.jar` file from the +To use Flux with `spark-submit`, first download the `marklogic-flux-2.1.1-all.jar` file from the [GitHub release page](https://github.com/marklogic/flux/releases). This jar file includes Flux and all of its dependencies, excluding those of Spark itself, which will be provided via the Spark cluster that you connect to via `spark-submit`. @@ -51,7 +51,7 @@ The following shows a notional example of running the Flux `import-files` comman ``` $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ --master spark://changeme:7077 \ - marklogic-flux-2.1.0-all.jar \ + marklogic-flux-2.1.1-all.jar \ import-files \ --path path/to/data \ --connection-string user:password@host:8000 \ @@ -62,7 +62,7 @@ $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ ``` $SPARK_HOME\bin\spark-submit --class com.marklogic.flux.spark.Submit ^ --master spark://changeme:7077 ^ - marklogic-flux-2.1.0-all.jar ^ + marklogic-flux-2.1.1-all.jar ^ import-files ^ --path path/to/data ^ --connection-string user:password@host:8000 ^ diff --git a/examples/client-project/build.gradle b/examples/client-project/build.gradle index 118a04cf..bbd95f49 100644 --- a/examples/client-project/build.gradle +++ b/examples/client-project/build.gradle @@ -10,7 +10,7 @@ buildscript { mavenLocal() } dependencies { - classpath "com.marklogic:flux-api:2.0.0" + classpath "com.marklogic:flux-api:2.1.1" } } @@ -30,8 +30,8 @@ repositories { } dependencies { - implementation "com.marklogic:flux-api:2.0.0" - implementation "com.marklogic:flux-embedding-model-minilm:2.0.0" + implementation "com.marklogic:flux-api:2.1.1" + implementation "com.marklogic:flux-embedding-model-minilm:2.1.1" } /** diff --git a/gradle.properties b/gradle.properties index bf50eea9..3e68136e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ -version=2.2-SNAPSHOT +version=2.1.1 # The version of the MarkLogic Spark connector to be used by Flux. -connectorVersion=3.2-SNAPSHOT +connectorVersion=3.1.1 picocliVersion=4.7.7 From a4c092cbf7a19d421d74313c24ccf97ec1ee659b Mon Sep 17 00:00:00 2001 From: Rob Rudin Date: Wed, 18 Mar 2026 14:19:31 -0400 Subject: [PATCH 2/7] MLE-28021 Small docs fix Just pointing to releases page to avoid having to update the tag name in future releases. --- docs/spark-integration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/spark-integration.md b/docs/spark-integration.md index 2dad7c50..7f42b144 100644 --- a/docs/spark-integration.md +++ b/docs/spark-integration.md @@ -35,7 +35,7 @@ Flux integrates with [spark-submit](https://spark.apache.org/docs/latest/submitt submit a Flux command invocation to a remote Spark cluster. Every Flux command is a Spark application, and thus every Flux command, along with all of its option, can be invoked via `spark-submit`. -To use Flux with `spark-submit`, first download the `marklogic-flux-2.1.1-all.jar` file from the +To use Flux with `spark-submit`, first download the `marklogic-flux-2.1.0-all.jar` file from the [GitHub release page](https://github.com/marklogic/flux/releases). This jar file includes Flux and all of its dependencies, excluding those of Spark itself, which will be provided via the Spark cluster that you connect to via `spark-submit`. @@ -51,7 +51,7 @@ The following shows a notional example of running the Flux `import-files` comman ``` $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ --master spark://changeme:7077 \ - marklogic-flux-2.1.1-all.jar \ + marklogic-flux-2.1.0-all.jar \ import-files \ --path path/to/data \ --connection-string user:password@host:8000 \ @@ -62,7 +62,7 @@ $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ ``` $SPARK_HOME\bin\spark-submit --class com.marklogic.flux.spark.Submit ^ --master spark://changeme:7077 ^ - marklogic-flux-2.1.1-all.jar ^ + marklogic-flux-2.1.0-all.jar ^ import-files ^ --path path/to/data ^ --connection-string user:password@host:8000 ^ From af8b5063e634c70827d1b3b7e8fd22841ab04167 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Mar 2026 12:58:53 +0000 Subject: [PATCH 3/7] Bump json from 2.18.1 to 2.19.2 in /docs Bumps [json](https://github.com/ruby/json) from 2.18.1 to 2.19.2. - [Release notes](https://github.com/ruby/json/releases) - [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md) - [Commits](https://github.com/ruby/json/compare/v2.18.1...v2.19.2) --- updated-dependencies: - dependency-name: json dependency-version: 2.19.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- docs/Gemfile.lock | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index ddd4caf5..f03311b7 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -210,7 +210,7 @@ GEM gemoji (>= 3, < 5) html-pipeline (~> 2.2) jekyll (>= 3.0, < 5.0) - json (2.18.1) + json (2.19.2) kramdown (2.4.0) rexml kramdown-parser-gfm (1.1.0) @@ -221,7 +221,6 @@ GEM rb-inotify (~> 0.9, >= 0.9.10) logger (1.7.0) mercenary (0.3.6) - mini_portile2 (2.8.9) minima (2.5.1) jekyll (>= 3.5, < 5.0) jekyll-feed (~> 0.9) @@ -274,7 +273,6 @@ GEM PLATFORMS arm64-darwin-23 - ruby x86_64-linux DEPENDENCIES From 3f45596616748c94604ceefe92b588a5ca54000f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Mar 2026 01:42:58 +0000 Subject: [PATCH 4/7] Bump activesupport from 7.1.3 to 7.2.3.1 in /docs Bumps [activesupport](https://github.com/rails/rails) from 7.1.3 to 7.2.3.1. - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v8.1.2.1/activesupport/CHANGELOG.md) - [Commits](https://github.com/rails/rails/compare/v7.1.3...v7.2.3.1) --- updated-dependencies: - dependency-name: activesupport dependency-version: 7.2.3.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- docs/Gemfile.lock | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index f03311b7..dc5b8249 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -1,32 +1,34 @@ GEM remote: https://rubygems.org/ specs: - activesupport (7.1.3) + activesupport (7.2.3.1) base64 + benchmark (>= 0.3) bigdecimal - concurrent-ruby (~> 1.0, >= 1.0.2) + concurrent-ruby (~> 1.0, >= 1.3.1) connection_pool (>= 2.2.5) drb i18n (>= 1.6, < 2) - minitest (>= 5.1) - mutex_m - tzinfo (~> 2.0) + logger (>= 1.4.2) + minitest (>= 5.1, < 6) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) - base64 (0.2.0) - bigdecimal (3.1.6) + base64 (0.3.0) + benchmark (0.5.0) + bigdecimal (4.0.1) coffee-script (2.4.1) coffee-script-source execjs coffee-script-source (1.12.2) colorator (1.1.0) commonmarker (0.23.10) - concurrent-ruby (1.2.3) - connection_pool (2.4.1) + concurrent-ruby (1.3.6) + connection_pool (3.0.2) dnsruby (1.70.0) simpleidn (~> 0.2.1) - drb (2.2.0) - ruby2_keywords + drb (2.2.3) em-websocket (0.5.3) eventmachine (>= 0.12.9) http_parser.rb (~> 0) @@ -98,7 +100,7 @@ GEM activesupport (>= 2) nokogiri (>= 1.4) http_parser.rb (0.8.0) - i18n (1.14.1) + i18n (1.14.8) concurrent-ruby (~> 1.0) jekyll (3.9.4) addressable (~> 2.4) @@ -225,8 +227,7 @@ GEM jekyll (>= 3.5, < 5.0) jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) - minitest (5.22.2) - mutex_m (0.2.0) + minitest (5.27.0) net-http (0.9.1) uri (>= 0.11.1) nokogiri (1.19.1-arm64-darwin) @@ -245,7 +246,6 @@ GEM ffi (~> 1.0) rexml (3.4.2) rouge (3.30.0) - ruby2_keywords (0.0.5) rubyzip (2.3.2) safe_yaml (1.0.5) sass (3.7.4) @@ -256,6 +256,7 @@ GEM sawyer (0.9.2) addressable (>= 2.3.5) faraday (>= 0.17.3, < 3) + securerandom (0.4.1) simpleidn (0.2.1) unf (~> 0.1.4) terminal-table (1.8.0) From ef44174fd8535340f318a556a02977a9e8b2f330 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 May 2026 16:00:48 +0000 Subject: [PATCH 5/7] Bump nokogiri from 1.19.1 to 1.19.3 in /docs Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.19.1 to 1.19.3. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.19.1...v1.19.3) --- updated-dependencies: - dependency-name: nokogiri dependency-version: 1.19.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- docs/Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index dc5b8249..91e71da3 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -230,9 +230,9 @@ GEM minitest (5.27.0) net-http (0.9.1) uri (>= 0.11.1) - nokogiri (1.19.1-arm64-darwin) + nokogiri (1.19.3-arm64-darwin) racc (~> 1.4) - nokogiri (1.19.1-x86_64-linux-gnu) + nokogiri (1.19.3-x86_64-linux-gnu) racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3) From 506803dd955e56ee562735dc228ba0abc3caccfb Mon Sep 17 00:00:00 2001 From: Rita Chen <48493454+RitaChen609@users.noreply.github.com> Date: Wed, 19 Aug 2026 12:37:02 -0400 Subject: [PATCH 6/7] MLE-31821 create release branch for release 2.1.2 (#671) * PDP-1273 Added read method for Command For internal use. * MLE-30127 Expand Azure OpenAI Token Credential Support * MLE-30316 Added CLI option --classifier-timeout * MLE-30316 Description Update Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * MLE-30316 Description Update Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * MLE-30316 Description Update Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * MLE-30316 Suggested Changes Switched from milliseconds to seconds. Renamed --classifier-timeout -> --classifier-socket-timeout Added --classifier-connection-timeout * MLE-30316 Added defaults in classifier.md * MLE-30316 Test Fix for new options * MLE-30316 Copyright * MLE-30013 MLE-30014 MLE-30015 OpenNLP CVEs * MLE-30016 CVE-2026-23907 in Apache PDFBox v3.0.7 * Reactor Netty CVEs * Updates for tests after dependency updates * Update dependencies to latest compatible * Revert separate apache-client dependency declaration * Revert separate apache-client dependency declaration * MLE-30967 Update CODEOWNERS * MLE-31339 Snapshot Update to 2.1.2 * MLE-31206 Scope Jenkins Pipeline DMC Credentials to the Publish Stage Only * MLE-31206 Refactored to correct stage * MLE-31204 Add Interactive Masked Input to Cloud Storage Secret CLI Options (#651) * MLE-31204 Add Interactive Masked Input to Cloud Storage Secret CLI Options. Updated docs and added 1 unit test per option. * MLE-31204 Copyright Update * MLE-31205 Added Security Warning for --ssl-hostname-verifier ANY * PDP-1660 Making the custom GH package repo configurable * MLE-31165 Bumping to Spark 4.2.0 This matches the Spark connector. Makes necessary bumps to Hadoop and the AWS SDK as well. * MLE-31461: Expose zip archive read limits in Flux import commands (#656) * MLE-31461: Expose zip archive read limits in Flux import commands Adds --zip-max-uncompressed-entry-bytes and --zip-max-entry-count to all five zip-capable import commands (import-files, import-aggregate-xml-files, import-rdf-files, import-archive-files, import-mlcp-archive-files) via CLI flags and Java API methods. Both map directly to the connector options added in MLE-31218. Both options default to the value 0 (unlimited). Any number less than 1 is treated as unlimited. Values greater than 0 will enable limits and zip bomb protection through an opt in approach. * MLE-31399 update janino to 3.1.12 (#661) * MLE-31402 Bump com.azure:azure-core-http-netty to 1.16.5 (#662) Bump com.azure:azure-core-http-netty from 1.16.2 to 1.16.5 so that io.projectreactor.netty:reactor-netty-http gets bumped to 1.2.18 to address BDSA-2026-13714 * MLE-31763 org.apache.thrift to 0.24.0 to match Spark Connector Version (#664) Bump org.apache.thrift to 0.24.0 to match Spark Connector Version to avoid CVEs. * MLE-31502 Fixed filtering-data.md ToC (#665) Fixed the rendering for the table of contents in the filtering-data.md file * MLE-31396 update tika to 3.3.2 (#663) * MLE-31396 update tika to 3.3.2 * MLE-31396 fix paragraph breaks due to Tika 3.3.2 update * MLE-31396 update Copyright * MLE-31396 add a note due to Tika 3.3.2 upgrade * MLE-31824 LICENSE Update Updated the LICENSE file to reflect Progress Software Corporation. * MLE-31824 Update LICENSE file to .txt * MLE-31543 Updated SBOM (#668) * MLE-31542 update NOTICE.txt (#670) * MLE-31821 create release branch for release 2.1.2 * MLE-31821 resolve NOTICE conflict * MLE-31821 update version references to 2.1.2 * MLE-32014 Fixing scheme for Azure paths Hadoop 3.5.0 now requires `abfss` or `abfs` for connecting to Azure; `wasbs` is no longer supported. --------- Co-authored-by: Rob Rudin Co-authored-by: Ryan Dew Co-authored-by: Ryan Dew <146854757+rjdew-progress@users.noreply.github.com> Co-authored-by: Jonathan Miller Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- CODEOWNERS | 2 +- CONTRIBUTING.md | 6 +- build.gradle | 19 ++--- docs/api.md | 4 +- docs/import/classifier.md | 52 ++----------- docs/spark-integration.md | 6 +- examples/client-project/build.gradle | 6 +- flux-cli/build.gradle | 9 ++- .../flux/impl/copy/CopyOptionsTest.java | 75 ------------------- .../importdata/ClassifierOptionsTest.java | 21 +----- gradle.properties | 24 ++---- 11 files changed, 39 insertions(+), 185 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index d74eacc3..846d8e08 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -2,4 +2,4 @@ # Each line is a file pattern followed by one or more owners. # These owners will be the default owners for everything in the repo. -* @rjrudin @NiteshMehta @vishwach @adganta @ashokrprogress @hmadala001 @prgs-rsingh +* @rjrudin @jonmille @ngodugu-marklogic @RitaChen609 @rjdew-progress diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6f601ad4..023b44a2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -198,7 +198,7 @@ are all synonyms): ./gradlew shadowJar -This will produce an assembly jar at `./flux-cli/build/libs/marklogic-flux-*-all.jar`. +This will produce an assembly jar at `./flux-cli/build/libs/marklogic-flux--all.jar`. You can now run any CLI command via spark-submit. This is an example of previewing an import of files - change the value of `--path`, as an absolute path is needed, and of course change the value of `--master` to match that of your Spark @@ -206,7 +206,7 @@ cluster: ``` $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ ---master spark://NYWHYC3G0W:7077 flux-cli/build/libs/marklogic-flux-*-all.jar \ +--master spark://NYWHYC3G0W:7077 flux-cli/build/libs/marklogic-flux--all.jar \ import-files --path /Users/rudin/workspace/flux/flux-cli/src/test/resources/mixed-files \ --connection-string "admin:admin@localhost:8000" \ --preview 5 --preview-drop content @@ -223,7 +223,7 @@ to something you can access): $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ --packages org.apache.hadoop:hadoop-aws:3.3.4,org.apache.hadoop:hadoop-client:3.3.4 \ --master spark://NYWHYC3G0W:7077 \ -flux-cli/build/libs/marklogic-flux-*-all.jar \ +flux-cli/build/libs/marklogic-flux--all.jar \ import-files --path "s3a://changeme/" \ --connection-string "admin:admin@localhost:8000" \ --s3-add-credentials \ diff --git a/build.gradle b/build.gradle index 179b3b32..7c0745a6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'net.saliman.properties' version '1.6.0' + id 'net.saliman.properties' version '1.5.2' id "org.sonarqube" version "7.0.1.6134" } @@ -67,9 +67,9 @@ subprojects { details.because "Force all io.netty 4.x to ${nettyVersion} to address CVEs including CVE-2026-44249, CVE-2026-50010, and CVE-2026-45416 in netty-handler." } - if (details.requested.group.equals("org.apache.logging.log4j") && details.requested.version.startsWith("2.")) { - details.useVersion "${log4jVersion}" - details.because "Forces all log4j 2.x artifacts that Spark brings in to ${log4jVersion} to address BDSA-2026-22385 / CVE-2026-49844 and other CVEs." + if (details.requested.group.equals("org.apache.logging.log4j") && details.requested.version.startsWith("2.24")) { + details.useVersion "2.26.0" + details.because "Forces Spark 4.1.x to use latest log4j 2.x to eliminate CVEs." } if (details.requested.group.startsWith("com.fasterxml.jackson")) { @@ -81,14 +81,11 @@ subprojects { } details.because "Force Jackson to 2.21.x to align with Java Client 8.1.0." } - if (details.requested.group.equals("org.xerial.snappy") && details.requested.name.equals("snappy-java")) { - details.useVersion "${snappyVersion}" - details.because "Forces snappy-java to ${snappyVersion} to remediate 1.1.10.8 CVEs per MLE-33626." - } + if (details.requested.group.equals("org.apache.thrift") && details.requested.name.equals("libthrift")) { // This is being done solely for Black Duck's sake, as it seems to be having trouble recognizing that the // internal snapshot build of the MarkLogic Spark connector is already using version 0.24.0. - details.useVersion "0.25.0" + details.useVersion "0.24.0" details.because "Forces Spark 4.2.x to use the latest libthrift, which is needed to avoid CVEs." } @@ -105,10 +102,6 @@ subprojects { events = ['started', 'passed', 'skipped', 'failed'] exceptionFormat = 'full' } - // Explicitly setting this instead of relying on JVM ergonomics, as Spark's tests (e.g. those involving - // broadcast serialization) can trigger a heap OOM when the default max heap ends up too small under - // memory pressure from other processes on the machine. - maxHeapSize = "4g" jvmArgs = [ // Needed for all Java 17 testing. "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", diff --git a/docs/api.md b/docs/api.md index 533e66bb..5810cbdb 100644 --- a/docs/api.md +++ b/docs/api.md @@ -30,7 +30,7 @@ Or if you are using Gradle, add the following to your `build.gradle` file: ``` dependencies { - implementation "com.marklogic:flux-api:2.1.1" + implementation "com.marklogic:flux-api:2.1.2" } ``` @@ -161,7 +161,7 @@ buildscript { mavenCentral() } dependencies { - classpath "com.marklogic:flux-api:2.1.1" + classpath "com.marklogic:flux-api:2.1.2" } } ``` diff --git a/docs/import/classifier.md b/docs/import/classifier.md index 621c91f2..975a6470 100644 --- a/docs/import/classifier.md +++ b/docs/import/classifier.md @@ -40,10 +40,9 @@ The table below lists each of the options used to configure how the classifier i | `--classifier-path` | Specify the path of the classifier service. | | `--classifier-api-key` | Provide the API key for accessing the classifier service when hosted in Progress Data Cloud. | | `--classifier-token-path` | Specify the path to the token generator for the classifier service when hosted in Progress Data Cloud. | -| `--classifier-batch-size` | Set the number of text chunks to send in a single request to the classifier. Defaults to 20. | +| `--classifier-batch-size` | Set the number of documents or text chunks to send in a single request to the classifier. Defaults to 20. | | `--classifier-socket-timeout` | Set the socket timeout in seconds for classification requests. Defaults to 10. | | `--classifier-connection-timeout` | Set the connection timeout in seconds for classification requests. Defaults to 10. | -| `--classifier-skip-document` | Classify only chunks of text and skip classifying each whole document. Requires `--splitter-*` options; otherwise no text is classified. | | `--classifier-prop key=value` | Specify additional options for configuring the behavior of the classifier service. | As an example, the following options - applicable to any import command - would result in the text of each document @@ -66,54 +65,15 @@ to be written to MarkLogic having classification added to it, generated via Sema {% endtab %} {% endtabs %} -## Classifying only chunks - -When you combine classification with [splitting text into chunks](splitting.md), Flux performs two types of -classification by default: - -1. Each whole document is sent to the classifier in its own request, and the resulting classification is added at the - document level (on the source document, or on the extracted-text document when `--extract-text` is used). -2. The text chunks are grouped into multi-article requests (controlled by `--classifier-batch-size`), and each chunk - receives its own classification. - -If you only need classification on the chunks, include `--classifier-skip-document`. This avoids one classifier request -per document—reducing total request volume and helping stay within licensed concurrency limits—and omits the -document-level classification element while still classifying all chunks. Note that `--classifier-skip-document` should -be used together with `--splitter-*` options (or Nuclia); otherwise, no text will be classified. - -For example, the following options split the text of each document into chunks and classify only the chunks: - -{% tabs log %} -{% tab log Unix %} -``` ---splitter-text \ ---classifier-host example.org \ ---classifier-port 443 \ ---classifier-path "/cls/dev/cs1/" \ ---classifier-skip-document -``` -{% endtab %} -{% tab log Windows %} -``` ---splitter-text ^ ---classifier-host example.org ^ ---classifier-port 443 ^ ---classifier-path "/cls/dev/cs1/" ^ ---classifier-skip-document -``` -{% endtab %} -{% endtabs %} - ## Configuring batch processing -When classifying chunks of text, the performance of the Semaphore classifier is typically improved by having Flux send -more than one chunk at a time to the classifier (each whole document, when not skipped, is always sent in its own -request). Flux defaults to sending the text of up to 20 chunks in each multi-article request to the classifier. You +The performance of the Semaphore classifier is typically improved by having Flux send more than one document at a time +to the classifier. Flux defaults to sending the text of up to 20 documents in each request to the classifier. You can control this via the `--classifier-batch-size` option. -The appropriate value for this option will depend on the size of your chunks and the performance characteristics of -your Semaphore instance. For small chunks, you may find improved performance by increasing the batch size to a -higher number, and vice versa for larger chunks. +The appropriate value for this option will depend on the size of your documents and the performance characteristics of +your Semaphore instance. For small documents, you may find improved performance by increasing the batch size to a +higher number, and vice versa for larger documents. ## Configuring the behavior of the classifier service diff --git a/docs/spark-integration.md b/docs/spark-integration.md index 7f42b144..51c3ac6d 100644 --- a/docs/spark-integration.md +++ b/docs/spark-integration.md @@ -35,7 +35,7 @@ Flux integrates with [spark-submit](https://spark.apache.org/docs/latest/submitt submit a Flux command invocation to a remote Spark cluster. Every Flux command is a Spark application, and thus every Flux command, along with all of its option, can be invoked via `spark-submit`. -To use Flux with `spark-submit`, first download the `marklogic-flux-2.1.0-all.jar` file from the +To use Flux with `spark-submit`, first download the `marklogic-flux-2.1.2-all.jar` file from the [GitHub release page](https://github.com/marklogic/flux/releases). This jar file includes Flux and all of its dependencies, excluding those of Spark itself, which will be provided via the Spark cluster that you connect to via `spark-submit`. @@ -51,7 +51,7 @@ The following shows a notional example of running the Flux `import-files` comman ``` $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ --master spark://changeme:7077 \ - marklogic-flux-2.1.0-all.jar \ + marklogic-flux-2.1.2-all.jar \ import-files \ --path path/to/data \ --connection-string user:password@host:8000 \ @@ -62,7 +62,7 @@ $SPARK_HOME/bin/spark-submit --class com.marklogic.flux.spark.Submit \ ``` $SPARK_HOME\bin\spark-submit --class com.marklogic.flux.spark.Submit ^ --master spark://changeme:7077 ^ - marklogic-flux-2.1.0-all.jar ^ + marklogic-flux-2.1.2-all.jar ^ import-files ^ --path path/to/data ^ --connection-string user:password@host:8000 ^ diff --git a/examples/client-project/build.gradle b/examples/client-project/build.gradle index bbd95f49..7ac9b403 100644 --- a/examples/client-project/build.gradle +++ b/examples/client-project/build.gradle @@ -10,7 +10,7 @@ buildscript { mavenLocal() } dependencies { - classpath "com.marklogic:flux-api:2.1.1" + classpath "com.marklogic:flux-api:2.1.2" } } @@ -30,8 +30,8 @@ repositories { } dependencies { - implementation "com.marklogic:flux-api:2.1.1" - implementation "com.marklogic:flux-embedding-model-minilm:2.1.1" + implementation "com.marklogic:flux-api:2.1.2" + implementation "com.marklogic:flux-embedding-model-minilm:2.1.2" } /** diff --git a/flux-cli/build.gradle b/flux-cli/build.gradle index 89c2335e..38893d97 100644 --- a/flux-cli/build.gradle +++ b/flux-cli/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'net.saliman.properties' version '1.6.0' + id 'net.saliman.properties' version '1.5.2' id "application" id "jacoco" id 'com.gradleup.shadow' version '9.2.1' @@ -15,7 +15,8 @@ configurations { // Resolves a medium CVE that comes from json-unit-assertj . force "net.minidev:json-smart:2.5.2" - force "at.yawk.lz4:lz4-java:1.12.1" + // Resolves a CVE in 1.11.0 + force "at.yawk.lz4:lz4-java:1.11.1" } } } @@ -30,7 +31,7 @@ dependencies { implementation "info.picocli:picocli:${picocliVersion}" // Need this for compilation as it's not an API dependency of the Spark connector. - compileOnly "com.marklogic:marklogic-client-api:8.3-SNAPSHOT" + compileOnly "com.marklogic:marklogic-client-api:8.1.0" // The shadow jar intended for usage with spark-submit needs the above "core" libraries as well, but not the Spark // API since spark-submit provides that. @@ -132,7 +133,7 @@ distributions { distributionBaseName = "marklogic-flux" contents { from("..") { - include "LICENSE.txt" + include "LICENSE" include "NOTICE.txt" } from("hadoop") { diff --git a/flux-cli/src/test/java/com/marklogic/flux/impl/copy/CopyOptionsTest.java b/flux-cli/src/test/java/com/marklogic/flux/impl/copy/CopyOptionsTest.java index de0c9009..b1f3590c 100644 --- a/flux-cli/src/test/java/com/marklogic/flux/impl/copy/CopyOptionsTest.java +++ b/flux-cli/src/test/java/com/marklogic/flux/impl/copy/CopyOptionsTest.java @@ -15,7 +15,6 @@ import java.util.Map; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; class CopyOptionsTest extends AbstractOptionsTest { @@ -83,10 +82,7 @@ void allWriteParams() { "--output-uri-suffix", ".xml", "--output-uri-template", "/{example}.xml", "--output-uri-template-warn-on-missing-field", - "--output-uri-template-hash-values", "--splitter-text", - "--splitter-sidecar-inherit-collections", - "--splitter-sidecar-inherit-permissions", "--embedder", "doesnt-matter", "--embedder-prompt", "Hello: ", "--embedder-prop", "e1=v1", @@ -105,7 +101,6 @@ void allWriteParams() { "--classifier-batch-size", "50", "--classifier-socket-timeout", "60", "--classifier-connection-timeout", "30", - "--classifier-skip-document", "--classifier-prop", "key1=value1" ); @@ -126,10 +121,7 @@ void allWriteParams() { Options.WRITE_URI_SUFFIX, ".xml", Options.WRITE_URI_TEMPLATE, "/{example}.xml", Options.WRITE_URI_TEMPLATE_WARN_ON_MISSING_FIELD, "true", - Options.WRITE_URI_TEMPLATE_HASH_VALUES, "true", Options.WRITE_SPLITTER_TEXT, "true", - Options.WRITE_SPLITTER_SIDECAR_INHERIT_COLLECTIONS, "true", - Options.WRITE_SPLITTER_SIDECAR_INHERIT_PERMISSIONS, "true", Options.WRITE_EMBEDDER_MODEL_FUNCTION_CLASS_NAME, "doesnt-matter", Options.WRITE_EMBEDDER_PROMPT, "Hello: ", Options.WRITE_EMBEDDER_MODEL_FUNCTION_OPTION_PREFIX + "e1", "v1", @@ -148,7 +140,6 @@ void allWriteParams() { Options.WRITE_CLASSIFIER_BATCH_SIZE, "50", Options.WRITE_CLASSIFIER_SOCKET_TIMEOUT, "60", Options.WRITE_CLASSIFIER_CONNECTION_TIMEOUT, "30", - Options.WRITE_CLASSIFIER_SKIP_DOCUMENT, "true", Options.WRITE_CLASSIFIER_OPTION_PREFIX + "key1", "value1" ); } @@ -296,70 +287,4 @@ void systemProperties() { systemProps.keySet().forEach(System::clearProperty); } } - - @Test - void outputUriTemplateHashValuesNotSet() { - CopyCommand command = (CopyCommand) getCommand("copy", - "--connection-string", "test:test@host:8000" - ); - Map options = command.writeParams.makeOptions(); - assertFalse(options.containsKey(Options.WRITE_URI_TEMPLATE_HASH_VALUES), - "WRITE_URI_TEMPLATE_HASH_VALUES must not be present when --output-uri-template-hash-values is not specified."); - } - - @Test - void incrementalWriteCliOptions() { - CopyCommand command = (CopyCommand) getCommand("copy", - "--connection-string", "test:test@host:8000", - "--incremental-write", - "--incremental-write-schema", "mySchema", - "--incremental-write-view", "myView", - "--incremental-write-hash-name", "customHash", - "--incremental-write-timestamp-name", "customTimestamp", - "--incremental-write-disable-json-canonicalization", - "--incremental-write-json-exclusion", "/json1", - "--incremental-write-xml-exclusion", "/xml1", - "--log-skipped", "789" - ); - - assertOptions(command.writeParams.makeOptions(), - Options.WRITE_INCREMENTAL, "true", - Options.WRITE_INCREMENTAL_SCHEMA, "mySchema", - Options.WRITE_INCREMENTAL_VIEW, "myView", - Options.WRITE_INCREMENTAL_HASH_KEY_NAME, "customHash", - Options.WRITE_INCREMENTAL_TIMESTAMP_KEY_NAME, "customTimestamp", - Options.WRITE_INCREMENTAL_CANONICALIZE_JSON, "false", - Options.WRITE_INCREMENTAL_JSON_EXCLUSIONS, "/json1", - Options.WRITE_INCREMENTAL_XML_EXCLUSIONS, "/xml1", - Options.WRITE_LOG_SKIPPED_DOCUMENTS, "789" - ); - } - - @Test - void incrementalWriteApiOptions() { - CopyCommand command = new CopyCommand(); - command.to(options -> options.incrementalWrite(iw -> iw - .enable() - .hashName("customHash") - .jsonExclusions("/a", "/b") - .logSkipped(0))); - - Map options = command.writeParams.makeOptions(); - assertOptions(options, - Options.WRITE_INCREMENTAL, "true", - Options.WRITE_INCREMENTAL_HASH_KEY_NAME, "customHash", - Options.WRITE_INCREMENTAL_JSON_EXCLUSIONS, "/a\n/b" - ); - assertFalse(options.containsKey(Options.WRITE_INCREMENTAL_SCHEMA)); - assertFalse(options.containsKey(Options.WRITE_LOG_SKIPPED_DOCUMENTS), - "A value of 0 is omitted so that the connector's default of 0 - which disables logging - is used."); - } - - @Test - void incrementalWriteNotEnabledByDefault() { - CopyCommand command = (CopyCommand) getCommand("copy", - "--connection-string", "test:test@host:8000" - ); - assertFalse(command.writeParams.makeOptions().containsKey(Options.WRITE_INCREMENTAL)); - } } diff --git a/flux-cli/src/test/java/com/marklogic/flux/impl/importdata/ClassifierOptionsTest.java b/flux-cli/src/test/java/com/marklogic/flux/impl/importdata/ClassifierOptionsTest.java index ab4544b3..c8503cff 100644 --- a/flux-cli/src/test/java/com/marklogic/flux/impl/importdata/ClassifierOptionsTest.java +++ b/flux-cli/src/test/java/com/marklogic/flux/impl/importdata/ClassifierOptionsTest.java @@ -30,8 +30,7 @@ void testOptions() { .tokenPath("token/endpoint") .batchSize(30) .socketTimeout(30) - .connectionTimeout(15) - .skipDocument(true); + .connectionTimeout(15); reference.set(classifierOptions); })); @@ -45,26 +44,10 @@ void testOptions() { Options.WRITE_CLASSIFIER_TOKEN_PATH, "token/endpoint", Options.WRITE_CLASSIFIER_BATCH_SIZE, "30", Options.WRITE_CLASSIFIER_SOCKET_TIMEOUT, "30", - Options.WRITE_CLASSIFIER_CONNECTION_TIMEOUT, "15", - Options.WRITE_CLASSIFIER_SKIP_DOCUMENT, "true" + Options.WRITE_CLASSIFIER_CONNECTION_TIMEOUT, "15" ); } - @Test - void skipDocumentNotIncludedWhenFalseOrNotSet() { - AtomicReference reference = new AtomicReference<>(); - - Flux.importGenericFiles() - .to(options -> options.classifier(classifierOptions -> { - classifierOptions.host("h"); - reference.set(classifierOptions); - })); - - ClassifierParams params = (ClassifierParams) reference.get(); - assertFalse(params.makeOptions().containsKey(Options.WRITE_CLASSIFIER_SKIP_DOCUMENT), - "When skipDocument is not enabled, the option key should be absent so the Spark connector uses its default."); - } - @Test void defaultConnectionTimeoutNotIncludedWhenNotSet() { AtomicReference reference = new AtomicReference<>(); diff --git a/gradle.properties b/gradle.properties index 3e68136e..39bb8c78 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,33 +1,25 @@ -version=2.1.1 +version=2.1.2 # The version of the MarkLogic Spark connector to be used by Flux. -connectorVersion=3.1.1 +connectorVersion=3.1.2 picocliVersion=4.7.7 # Aligned with our Spark connector. -sparkVersion=4.2.1 +sparkVersion=4.2.0 hadoopVersion=3.5.0 # We want the minor version to match Spark, but the patch version can be higher. This is the case with 2.21.x, where -# LangChain4j is using 2.21.4 and Spark 4.2.0 is using 2.21.2, but a higher 2.21.x is available. -# As of 2026-11-02, 2.21.8 has no vulnerabilities - see https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.21.8 . -# There's a vulnerability in a test dependency (assertj), but that is not relevant to our production code. -jacksonVersion=2.21.8 - -snappyVersion=1.1.10.12 +# LangChain4j is using 2.21.4 and Spark 4.2.0 is using 2.21.2, but 2.21.5 is available. +jacksonVersion=2.21.5 # This needs to match the version used by Hadoop. awssdkVersion=2.35.4 -nettyVersion=4.2.20.Final +nettyVersion=4.2.16.Final janinoVersion=3.1.12 - -# Upstream Apache release; 2.25.4 (brought in by Spark 4.2.0) is affected by BDSA-2026-22385 / CVE-2026-49844. -log4jVersion=2.26.1 - -langchain4jVersion=1.21.0 -tikaVersion=3.3.3 +langchain4jVersion=1.17.2 +tikaVersion=3.3.2 # Define these on the command line to publish to OSSRH # See https://central.sonatype.org/publish/publish-gradle/#credentials for more information From aaa263c206c38046ff9f43f5bdf3038d8459f642 Mon Sep 17 00:00:00 2001 From: ashokrprogress Date: Tue, 17 Nov 2026 18:09:42 +0530 Subject: [PATCH 7/7] MLE-28107: docs: add model-name details to embedding documentation --- docs/import/embedder/embedder.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/import/embedder/embedder.md b/docs/import/embedder/embedder.md index 2be76d7d..eec31f7a 100644 --- a/docs/import/embedder/embedder.md +++ b/docs/import/embedder/embedder.md @@ -238,6 +238,10 @@ also use a [MarkLogic REST transform](https://docs.marklogic.com/guide/rest-dev/ embeddings are stored in your documents. See the [guide on common import options](../common-import-features.md) for more information on transforms. +Flux records the model name reported by the selected embedding model on each chunk as a `model-name` property in JSON +or a `model-name` element in XML. For Ollama, this is the name configured with `--embedder-prop model-name`. If an +integration does not report a specific name, the value is `unknown`. + ### JSON documents By default, Flux will store an embedding in an array named `_vector` that is added to the chunk object. Each value in