You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "rahil-c (via GitHub)" <gi...@apache.org> on 2026/08/19 23:47:28 UTC

[PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

rahil-c opened a new pull request, #19678:
URL: https://github.com/apache/hudi/pull/19678

   ### Describe the issue this Pull Request addresses
   
   Closes #19676
   
   Stacked on #19677, review that one first. Until it merges this PR's diff includes its commits.
   
   ### Summary and Changelog
   
   `tika-parsers-standard-package` now ships in `hudi-utilities-bundle`, so unstructured ingestion extracts text with no runtime flags. Previously only `tika-core` shipped, and `tika-core` registers no parser at all, so every file produced `parse_status=EMPTY`, empty text, no chunks and a null vector while the job exited successfully.
   
   commons-compress is relocated, which makes Tika's references follow the bundled copy rather than resolving whatever the runtime provides. It is pinned to 1.27.1 because a transitive 1.9 otherwise wins and predates the `ArchiveStreamFactory.detect(InputStream)` that Tika's zip container detection calls. Bouncycastle's multi-release classes are filtered out, being built for JDKs newer than the shade plugin can parse while the base classes are what runs.
   
   `TikaDocumentParser` now parses a small in-memory plain-text document on `init` and fails when no text comes back. `init` runs only when parsing is enabled, so reaching it means text extraction was asked for, and a deployment that can extract none is a misconfiguration rather than a per-file problem. Blob-only ingestion remains available through `parse.enabled=false`.
   
   The slim bundle is deliberately left alone. Its users get the new error naming the dependency to add.
   
   ### Impact
   
   `hudi-utilities-bundle` grows from 90 MB to 141 MB. Users of that bundle who enable parsing get working text extraction where they previously got silently empty results; users who want blobs only should set `hoodie.streamer.source.unstructured.parse.enabled=false`, which also skips the probe.
   
   ### Risk Level
   
   medium
   
   The bundle gains around 85 artifacts, so the risk is dependency collision rather than logic. Mitigated by keeping jackson, slf4j and commons-io out of the added set and letting the runtime provide them, and by relocating commons-compress so the one known conflict cannot recur. Verified by ingesting a 15,774-file corpus through HoodieStreamer with the bundle alone, no `--packages`, no `--jars` and no `extraClassPath`: SUCCESS 4988, EMPTY 5011 matching exactly the binary files, FAILED 1, and no `NoSuchMethodError`.
   
   ### Documentation Update
   
   The website should state that document parsing works out of the box with the utilities bundle, and that the slim bundle needs `org.apache.tika:tika-parsers-standard-package` supplied separately. Happy to follow up with that change once the approach here is settled.
   
   ### Contributor's checklist
   
   - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [x] Enough context is provided in the sections above
   - [x] Adequate tests were added if applicable
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-5387726209

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "eb27953feea6b8ef7367617104a510da139bc107",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397",
       "triggerID" : "eb27953feea6b8ef7367617104a510da139bc107",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bb075be003e04c5e60a4759f63d562675bb77320",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "bb075be003e04c5e60a4759f63d562675bb77320",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * eb27953feea6b8ef7367617104a510da139bc107 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397) 
   * bb075be003e04c5e60a4759f63d562675bb77320 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-5387751740

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "eb27953feea6b8ef7367617104a510da139bc107",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397",
       "triggerID" : "eb27953feea6b8ef7367617104a510da139bc107",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bb075be003e04c5e60a4759f63d562675bb77320",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16490",
       "triggerID" : "bb075be003e04c5e60a4759f63d562675bb77320",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * eb27953feea6b8ef7367617104a510da139bc107 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397) 
   * bb075be003e04c5e60a4759f63d562675bb77320 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16490) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "voonhous (via GitHub) via commits" <co...@hudi.apache.org>.
voonhous closed pull request #19678: fix(utilities): ship Tika's parsers in the bundle and fail when they are absent
URL: https://github.com/apache/hudi/pull/19678


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-5349421455

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "eb27953feea6b8ef7367617104a510da139bc107",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "eb27953feea6b8ef7367617104a510da139bc107",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * eb27953feea6b8ef7367617104a510da139bc107 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "rahil-c (via GitHub)" <gi...@apache.org>.
rahil-c commented on code in PR #19678:
URL: https://github.com/apache/hudi/pull/19678#discussion_r3834426287


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/unstructured/TikaDocumentParser.java:
##########
@@ -40,9 +50,50 @@
 public class TikaDocumentParser implements DocumentParser {
 
   private static final long serialVersionUID = 1L;
+  private static final Logger LOG = LoggerFactory.getLogger(TikaDocumentParser.class);
+
+  // one probe per JVM, not per task
+  private static final AtomicBoolean PROBED = new AtomicBoolean();

Review Comment:
   what is the purpose of this?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "rahil-c (via GitHub)" <gi...@apache.org>.
rahil-c commented on code in PR #19678:
URL: https://github.com/apache/hudi/pull/19678#discussion_r3839245321


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/unstructured/TikaDocumentParser.java:
##########
@@ -40,9 +50,50 @@
 public class TikaDocumentParser implements DocumentParser {
 
   private static final long serialVersionUID = 1L;
+  private static final Logger LOG = LoggerFactory.getLogger(TikaDocumentParser.class);
+
+  // one probe per JVM, not per task
+  private static final AtomicBoolean PROBED = new AtomicBoolean();

Review Comment:
   It gated the parser-availability probe to one run per JVM rather than one per task. Following the question, that gate was wrong: it recorded *that* a probe had happened rather than *what it found*.
   
   `init()` runs once per Spark task (`DocumentParser`'s contract says so, and `UnstructuredFileRecordBuilder` calls it on a transient field), so on one executor JVM:
   
   - task 1: `compareAndSet` returns true, probes, throws if the modules are missing
   - task 2+: `compareAndSet` returns false, short-circuits, never probes, never throws
   
   Spark then retries the failed task in the same JVM, the retry short-circuits and succeeds, and the job exits 0 with `parse_status=EMPTY` on every row. That is the exact outcome the probe was added to prevent.
   
   Replaced with a memoized *result* behind `hasParserModules()`, so the probe still runs at most once per JVM but every task fails when the answer is negative. Covered by `TestUnstructuredIngestHardening#testMissingParserModulesFailEveryTaskNotOnlyTheFirst`; I confirmed it fails against the old latch semantics before landing the fix, on the assertion for task 2.
   



##########
packaging/hudi-utilities-bundle/pom.xml:
##########
@@ -97,6 +97,45 @@
                   <include>org.apache.hudi:hudi-spark-client</include>
                   <include>org.apache.hudi:hudi-utilities_${scala.binary.version}</include>
                   <include>org.apache.tika:tika-core</include>
+                  <!-- Apache Tika document parsers, for UnstructuredFileDFSSource -->
+                  <include>com.adobe.xmp:*</include>

Review Comment:
   There is such a dependency and it was already declared: `tika-parsers-standard-package` in `hudi-utilities/pom.xml` pulls all of these transitively. The explicit includes were needed for an unrelated reason, which is that the shade plugin's `artifactSet` is an allowlist, so anything not named is dropped from the jar no matter how it reached the dependency tree.
   
   So the includes were not redundant, but the objection holds on other grounds, and the strongest one is not size: the `commons-compress` relocation this required applied to **everything** in the utilities bundle, not only to Tika's POI. On top of ~50 MB and ~30 third-party licences added to the flagship bundle for a feature most of its users do not touch.
   
   Moved to `packaging/hudi-tika-bundle`, following the existing `hudi-aws-bundle` / `hudi-gcp-bundle` precedent for optional capabilities. The relocation moves with it, so its blast radius is one optional artifact. `tika-core` stays in the utilities bundle because `hudi-utilities` compiles against it and nothing else does; the new bundle excludes it so passing both does not put two copies on the classpath.
   
   Verified on the built jars:
   
   | check | result |
   |---|---|
   | hudi-utilities-bundle | 95 MB, 0 parser classes, tika-core still present |
   | hudi-tika-bundle | 52 MB, tika-core correctly excluded |
   | commons-compress | 612 relocated entries, 0 unrelocated |
   | POI `ZipPackage` / Tika `PackageParser` | 14 / 51 relocated refs, 0 unrelocated |
   | relocated `ArchiveStreamFactory` | declares `detect()`, so the 1.27.1 pin took effect |
   | merged service registry | 85 parser implementations |
   
   `tika-parsers-standard-package` also goes back to test scope in `hudi-utilities`: only `tika-core` is compiled against, and the parser modules are discovered through Tika's ServiceLoader at runtime. Confirmed with a clean compile.
   
   One note on "ask users to pass that", since it shapes what the artifact has to be: `--packages` cannot be the mechanism. Spark ships commons-compress 1.23, POI needs 1.24 or newer, and user jars do not outrank Spark's own on the classpath. A shaded bundle carrying the relocation is what actually works, which is why this is a bundle rather than a documented coordinate.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "hudi-agent (via GitHub)" <gi...@apache.org>.
hudi-agent commented on code in PR #19678:
URL: https://github.com/apache/hudi/pull/19678#discussion_r3846039554


##########
hudi-utilities/src/test/java/org/apache/hudi/utilities/sources/helpers/unstructured/TestUnstructuredIngestHardening.java:
##########
@@ -0,0 +1,194 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.hudi.utilities.sources.helpers.unstructured;
+
+import org.apache.hudi.common.config.TypedProperties;
+import org.apache.hudi.exception.HoodieException;
+import org.apache.hudi.utilities.config.UnstructuredFileSourceConfig;
+
+import org.junit.jupiter.api.Test;
+
+import java.io.ByteArrayInputStream;
+import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
+import java.util.List;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * Regression coverage for the hardening fixes on the unstructured ingest path: the bounded
+ * chunk-boundary search preserves output, an Error escapes the Tika parser, and the inline
+ * blob threshold is validated. The cost half of the chunker fix is a measurement, so it
+ * lives in the scale harness rather than here.
+ */
+public class TestUnstructuredIngestHardening {
+
+  /**
+   * The bounded break search must pick the same break points the unbounded one did, so
+   * chunk text, ordering, overlap and char_start offsets are unchanged by the fix.
+   */
+  @Test
+  void testBoundedBreakSearchPreservesChunking() {
+    int chunkSize = 64;
+    int overlap = 8;
+    TextChunker chunker = new TextChunker(chunkSize, overlap);
+    String text = "First para line one.\nStill first para.\n\nSecond para here! And more? Yes.\n\n"
+        + "Third paragraph with a long unbroken runxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx end.";
+
+    List<TextChunker.Chunk> chunks = chunker.chunk(text);
+
+    assertTrue(chunks.size() > 1, "expected the text to split into several chunks");
+    for (int i = 0; i < chunks.size(); i++) {
+      TextChunker.Chunk chunk = chunks.get(i);
+      assertEquals(i, chunk.chunkId);
+      assertTrue(chunk.text.length() <= chunkSize, "chunk " + i + " exceeded the window");
+      // chunks are verbatim substrings, so char_start must index back into the original
+      assertEquals(chunk.text,
+          text.substring(chunk.charStart, chunk.charStart + chunk.text.length()));
+      if (i > 0) {
+        TextChunker.Chunk previous = chunks.get(i - 1);
+        assertEquals(previous.charStart + previous.text.length() - overlap, chunk.charStart,
+            "chunk " + i + " must start one overlap back from the previous chunk's end");
+      }
+    }
+    TextChunker.Chunk last = chunks.get(chunks.size() - 1);
+    assertEquals(text.length(), last.charStart + last.text.length(),
+        "the chunks must cover the whole text");
+  }
+
+  /**
+   * Text whose only usable boundary is the space character exercises the miss path for
+   * five of the six boundaries on every chunk, which is where the unbounded search used to
+   * walk back to index 0. Behaviour must be identical to the general case.
+   */
+  @Test
+  void testChunkingTextWithoutParagraphOrSentenceBoundaries() {
+    TextChunker chunker = new TextChunker(100, 10);
+    StringBuilder builder = new StringBuilder();
+    while (builder.length() < 5000) {
+      builder.append("alpha bravo charlie delta echo foxtrot golf hotel india juliet ");
+    }
+    String text = builder.toString();
+
+    List<TextChunker.Chunk> chunks = chunker.chunk(text);
+
+    assertTrue(chunks.size() > 40, "expected many chunks, got " + chunks.size());
+    for (TextChunker.Chunk chunk : chunks) {
+      assertEquals(chunk.text,
+          text.substring(chunk.charStart, chunk.charStart + chunk.text.length()));
+      assertTrue(chunk.text.length() <= 100);
+    }
+    TextChunker.Chunk last = chunks.get(chunks.size() - 1);
+    assertEquals(text.length(), last.charStart + last.text.length());
+  }
+
+  /**
+   * A corrupt file must not fail the job, but an Error must not be swallowed: catching it
+   * would carry on with an undefined JVM state instead of failing the task so Spark can
+   * retry it elsewhere. Before the fix the parser caught Throwable and turned an
+   * OutOfMemoryError into an ordinary FAILED row.
+   */
+  @Test
+  void testParserPropagatesErrorButRecordsException() {
+    TikaDocumentParser parser = new TikaDocumentParser();
+
+    assertThrows(OutOfMemoryError.class,
+        () -> parser.parse(streamThrowing(new OutOfMemoryError("synthetic oom")), "doc.txt", 1000));
+
+    ParseResult result =
+        parser.parse(streamThrowing(new IllegalStateException("synthetic failure")), "doc.txt", 1000);
+    assertEquals(ParseResult.ParseStatus.FAILED, result.getStatus());
+    assertTrue(result.getError().contains("synthetic failure"),
+        "the parse error must be recorded on the row, got: " + result.getError());
+  }
+
+  /**
+   * readFully narrows the file size to an int, so a threshold above Integer.MAX_VALUE has
+   * to be rejected at construction. Before the fix it surfaced as a
+   * NegativeArraySizeException on the first oversized file, deep inside an executor.
+   */
+  @Test
+  void testInlineThresholdAboveIntMaxIsRejected() {
+    TypedProperties props = new TypedProperties();
+    props.setProperty(UnstructuredFileSourceConfig.BLOB_INLINE_MAX_BYTES.key(),
+        String.valueOf(Integer.MAX_VALUE + 1L));
+
+    IllegalArgumentException thrown =
+        assertThrows(IllegalArgumentException.class, () -> new UnstructuredFileRecordBuilder(props));
+    assertTrue(thrown.getMessage().contains(UnstructuredFileSourceConfig.BLOB_INLINE_MAX_BYTES.key()),
+        "the error must name the offending config key, got: " + thrown.getMessage());
+  }
+
+  /**
+   * The probe is what tells a user their table would have no text at all. hudi-utilities has
+   * the Tika parser modules on its test classpath, so here it must report that plain text
+   * extracts; a deployment running hudi-utilities-bundle without hudi-tika-bundle gets false
+   * and the failure raised by {@link TikaDocumentParser#init}.
+   */
+  @Test
+  void testPlainTextProbeDetectsAvailableParserModules() {
+    assertTrue(TikaDocumentParser.canExtractPlainText(),
+        "tika-parsers-standard-package is on the test classpath, so the probe must find text");
+
+    ParseResult parsed = new TikaDocumentParser().parse(
+        new ByteArrayInputStream("hudi lakehouse probe text".getBytes(StandardCharsets.UTF_8)),
+        "probe.txt", 1000);
+    assertEquals(ParseResult.ParseStatus.SUCCESS, parsed.getStatus());
+    assertTrue(parsed.getText().contains("lakehouse"));
+  }
+
+  /**
+   * init() runs once per Spark task, so a JVM without parser modules has to fail every task.
+   * Memoizing "we already probed" instead of the probe's answer made only the first task fail;
+   * Spark's retry of it then short-circuited, succeeded, and left every row parse_status=EMPTY.
+   */
+  @Test
+  void testMissingParserModulesFailEveryTaskNotOnlyTheFirst() {
+    Boolean actual = TikaDocumentParser.parserModulesPresent;
+    try {

Review Comment:
   πŸ€– nit: could you rename `actual` to something like `savedParserModulesPresent`? In test code `actual` conventionally names the observed result under assertion, so this reads as a save/restore slot only after you trace it to the `finally` block.
   
   <sub><i>⚠️ AI-generated; verify before applying. React πŸ‘/πŸ‘Ž to flag quality.</i></sub>



##########
pom.xml:
##########
@@ -58,6 +58,7 @@
     <module>packaging/hudi-presto-bundle</module>
     <module>packaging/hudi-utilities-bundle</module>
     <module>packaging/hudi-utilities-slim-bundle</module>
+    <module>packaging/hudi-tika-bundle</module>

Review Comment:
   πŸ€– Since the intended usage is for users to pass `hudi-tika-bundle` alongside the utilities bundle via `--jars`, it needs to reach Maven Central at release time. I don't see it added to `scripts/release/deploy_staging_jars.sh` (nothing depends on it, so `-am` won't pull it in transitively) or to the `bundles` array in `scripts/release/validate_staged_bundles.sh`. Could you wire it into both so the bundle actually gets staged and validated on release?
   
   <sub><i>⚠️ AI-generated; verify before applying. React πŸ‘/πŸ‘Ž to flag quality.</i></sub>



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-5350160341

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "eb27953feea6b8ef7367617104a510da139bc107",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397",
       "triggerID" : "eb27953feea6b8ef7367617104a510da139bc107",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * eb27953feea6b8ef7367617104a510da139bc107 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-5388015188

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "eb27953feea6b8ef7367617104a510da139bc107",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397",
       "triggerID" : "eb27953feea6b8ef7367617104a510da139bc107",
       "triggerType" : "PUSH"
     }, {
       "hash" : "bb075be003e04c5e60a4759f63d562675bb77320",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16490",
       "triggerID" : "bb075be003e04c5e60a4759f63d562675bb77320",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * bb075be003e04c5e60a4759f63d562675bb77320 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16490) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "voonhous (via GitHub) via commits" <co...@hudi.apache.org>.
voonhous commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-6701314947

   Temporarily closing this PR while we debug a GitHub settings error on master (#20471); it will be reopened shortly, no action needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "rahil-c (via GitHub)" <gi...@apache.org>.
rahil-c commented on code in PR #19678:
URL: https://github.com/apache/hudi/pull/19678#discussion_r3834438546


##########
packaging/hudi-utilities-bundle/pom.xml:
##########
@@ -97,6 +97,45 @@
                   <include>org.apache.hudi:hudi-spark-client</include>
                   <include>org.apache.hudi:hudi-utilities_${scala.binary.version}</include>
                   <include>org.apache.tika:tika-core</include>
+                  <!-- Apache Tika document parsers, for UnstructuredFileDFSSource -->
+                  <include>com.adobe.xmp:*</include>

Review Comment:
   This does not seem correct why we need to include all these deps, is there no dependency from tika that packages these. Ideally if not we may have to make our own tika bundle and ask users to pass that since not sure if this is ideal to add all these to utiltiies bundle



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-5349487568

   ## [Codecov](https://app.codecov.io/gh/apache/hudi/pull/19678?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 77.83%. Comparing base ([`5a11a4f`](https://app.codecov.io/gh/apache/hudi/commit/5a11a4fce20620afac143358bc771dfe2d14d3c8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`eb27953`](https://app.codecov.io/gh/apache/hudi/commit/eb27953feea6b8ef7367617104a510da139bc107?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master   #19678      +/-   ##
   ============================================
   - Coverage     77.83%   77.83%   -0.01%     
   + Complexity    33140    33133       -7     
   ============================================
     Files          2527     2527              
     Lines        139942   139911      -31     
     Branches      16849    16847       -2     
   ============================================
   - Hits         108926   108900      -26     
   + Misses        23396    23394       -2     
   + Partials       7620     7617       -3     
   ```
   
   | [Components](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Ξ” | |
   |---|---|---|
   | [hudi-common](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.35% <ΓΈ> (+<0.01%)` | :arrow_up: |
   | [hudi-client](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `82.82% <ΓΈ> (ΓΈ)` | |
   | [hudi-flink](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `85.75% <ΓΈ> (ΓΈ)` | |
   | [hudi-spark-datasource](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `72.27% <ΓΈ> (ΓΈ)` | |
   | [hudi-utilities](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `73.99% <ΓΈ> (-0.05%)` | :arrow_down: |
   | [hudi-cli](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `15.06% <ΓΈ> (ΓΈ)` | |
   | [hudi-hadoop](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `69.09% <ΓΈ> (ΓΈ)` | |
   | [hudi-sync](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `75.58% <ΓΈ> (ΓΈ)` | |
   | [hudi-io](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `79.85% <ΓΈ> (ΓΈ)` | |
   | [hudi-timeline-service](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `83.44% <ΓΈ> (ΓΈ)` | |
   | [hudi-cloud](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `64.33% <ΓΈ> (ΓΈ)` | |
   | [hudi-kafka-connect](https://app.codecov.io/gh/apache/hudi/pull/19678/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `53.20% <ΓΈ> (ΓΈ)` | |
   
   | [Flag](https://app.codecov.io/gh/apache/hudi/pull/19678/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Ξ” | |
   |---|---|---|
   | [hadoop-mr-java-client](https://app.codecov.io/gh/apache/hudi/pull/19678/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `43.92% <ΓΈ> (+0.01%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/hudi/pull/19678?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Ξ” | |
   |---|---|---|
   | [...utilities/config/UnstructuredFileSourceConfig.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Fconfig%2FUnstructuredFileSourceConfig.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL2NvbmZpZy9VbnN0cnVjdHVyZWRGaWxlU291cmNlQ29uZmlnLmphdmE=) | `98.41% <ΓΈ> (ΓΈ)` | |
   | [...i/utilities/sources/UnstructuredFileDFSSource.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Fsources%2FUnstructuredFileDFSSource.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL3NvdXJjZXMvVW5zdHJ1Y3R1cmVkRmlsZURGU1NvdXJjZS5qYXZh) | `85.41% <ΓΈ> (-2.09%)` | :arrow_down: |
   | [...s/sources/helpers/unstructured/DocumentParser.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Fsources%2Fhelpers%2Funstructured%2FDocumentParser.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL3NvdXJjZXMvaGVscGVycy91bnN0cnVjdHVyZWQvRG9jdW1lbnRQYXJzZXIuamF2YQ==) | `100.00% <ΓΈ> (ΓΈ)` | |
   | [...ties/sources/helpers/unstructured/TextChunker.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Fsources%2Fhelpers%2Funstructured%2FTextChunker.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL3NvdXJjZXMvaGVscGVycy91bnN0cnVjdHVyZWQvVGV4dENodW5rZXIuamF2YQ==) | `92.59% <ΓΈ> (+2.27%)` | :arrow_up: |
   | [...urces/helpers/unstructured/TikaDocumentParser.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Fsources%2Fhelpers%2Funstructured%2FTikaDocumentParser.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL3NvdXJjZXMvaGVscGVycy91bnN0cnVjdHVyZWQvVGlrYURvY3VtZW50UGFyc2VyLmphdmE=) | `100.00% <ΓΈ> (ΓΈ)` | |
   | [...rs/unstructured/UnstructuredFileRecordBuilder.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Fsources%2Fhelpers%2Funstructured%2FUnstructuredFileRecordBuilder.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL3NvdXJjZXMvaGVscGVycy91bnN0cnVjdHVyZWQvVW5zdHJ1Y3R1cmVkRmlsZVJlY29yZEJ1aWxkZXIuamF2YQ==) | `82.97% <ΓΈ> (-1.34%)` | :arrow_down: |
   | [...ties/transform/embedding/EmbeddingTransformer.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Ftransform%2Fembedding%2FEmbeddingTransformer.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL3RyYW5zZm9ybS9lbWJlZGRpbmcvRW1iZWRkaW5nVHJhbnNmb3JtZXIuamF2YQ==) | `88.88% <ΓΈ> (+0.70%)` | :arrow_up: |
   | [...m/embedding/OpenAICompatibleEmbeddingProvider.java](https://app.codecov.io/gh/apache/hudi/pull/19678?src=pr&el=tree&filepath=hudi-utilities%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fhudi%2Futilities%2Ftransform%2Fembedding%2FOpenAICompatibleEmbeddingProvider.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-aHVkaS11dGlsaXRpZXMvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2h1ZGkvdXRpbGl0aWVzL3RyYW5zZm9ybS9lbWJlZGRpbmcvT3BlbkFJQ29tcGF0aWJsZUVtYmVkZGluZ1Byb3ZpZGVyLmphdmE=) | `83.09% <ΓΈ> (-0.69%)` | :arrow_down: |
   
   ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/apache/hudi/pull/19678/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   </details>
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(utilities): ship Tika's parsers in the bundle and fail when they are absent [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #19678:
URL: https://github.com/apache/hudi/pull/19678#issuecomment-5349460144

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "eb27953feea6b8ef7367617104a510da139bc107",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397",
       "triggerID" : "eb27953feea6b8ef7367617104a510da139bc107",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * eb27953feea6b8ef7367617104a510da139bc107 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=16397) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org