You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "yihua (via GitHub)" <gi...@apache.org> on 2024/02/15 08:59:26 UTC

[PR] [HUDI-7410] Use SeekableDataInputStream as the input of native HFile reader [hudi]

yihua opened a new pull request, #10673:
URL: https://github.com/apache/hudi/pull/10673

   ### Change Logs
   
   This PR makes SeekableDataInputStream as the input of native HFile reader, so that the constructor of the native HFile reader is Hadoop-agnostic.
   
   This is part of the effort to provide Hudi storage abstraction and decouple `hudi-common` from hadoop dependencies. For reference, the single big-change PR can be found here: #10360.
   
   ### Impact
   
   The constructor of the native HFile reader is Hadoop-agnostic.
   
   ### Risk level
   
   none
   
   ### Documentation Update
   
   N/A
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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] [HUDI-7410] Use SeekableDataInputStream as the input of native HFile reader [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "181c55e683edcc1743c39e955433c3bc24976883",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "181c55e683edcc1743c39e955433c3bc24976883",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 181c55e683edcc1743c39e955433c3bc24976883 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] [HUDI-7410] Use SeekableDataInputStream as the input of native HFile reader [hudi]

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


##########
hudi-common/src/main/java/org/apache/hudi/common/bootstrap/index/HFileBootstrapIndex.java:
##########
@@ -238,7 +239,7 @@ private static HFileReader createReader(String hFilePath, FileSystem fileSystem)
       LOG.info("Opening HFile for reading :" + hFilePath);
       Path path = new Path(hFilePath);
       long fileSize = fileSystem.getFileStatus(path).getLen();
-      FSDataInputStream stream = fileSystem.open(path);
+      SeekableDataInputStream stream = new HadoopSeekableDataInputStream(fileSystem.open(path));

Review Comment:
   Is this going to be HadoopSeekableDataInputStream going forward? Or is hadoop going to be fully removed from here at some point?



-- 
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] [HUDI-7410] Use SeekableDataInputStream as the input of native HFile reader [hudi]

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


##########
hudi-common/src/main/java/org/apache/hudi/common/bootstrap/index/HFileBootstrapIndex.java:
##########
@@ -238,7 +239,7 @@ private static HFileReader createReader(String hFilePath, FileSystem fileSystem)
       LOG.info("Opening HFile for reading :" + hFilePath);
       Path path = new Path(hFilePath);
       long fileSize = fileSystem.getFileStatus(path).getLen();
-      FSDataInputStream stream = fileSystem.open(path);
+      SeekableDataInputStream stream = new HadoopSeekableDataInputStream(fileSystem.open(path));

Review Comment:
   This will be replaced by the new storage API call which returns `SeekableDataInputStream` directly.  Hadoop is going to be fully removed here in the future.



-- 
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] [HUDI-7410] Use SeekableDataInputStream as the input of native HFile reader [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "181c55e683edcc1743c39e955433c3bc24976883",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22454",
       "triggerID" : "181c55e683edcc1743c39e955433c3bc24976883",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 181c55e683edcc1743c39e955433c3bc24976883 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22454) 
   
   <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] [HUDI-7410] Use SeekableDataInputStream as the input of native HFile reader [hudi]

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

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "181c55e683edcc1743c39e955433c3bc24976883",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22454",
       "triggerID" : "181c55e683edcc1743c39e955433c3bc24976883",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 181c55e683edcc1743c39e955433c3bc24976883 Azure: [SUCCESS](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=22454) 
   
   <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] [HUDI-7410] Use SeekableDataInputStream as the input of native HFile reader [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua merged PR #10673:
URL: https://github.com/apache/hudi/pull/10673


-- 
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