Skip to content

ORC-1251:Support Vectored IO in ORC [Draft] - #1276

Closed
HarshitGupta11 wants to merge 1 commit into
apache:mainfrom
HarshitGupta11:vectoredio
Closed

HarshitGupta11 wants to merge 1 commit into
apache:mainfrom
HarshitGupta11:vectoredio

Conversation

@HarshitGupta11

Copy link
Copy Markdown

Support the new fast Vectored Read API in ORC for parallel reads.
The patch was tested internally along with S3

@dongjoon-hyun dongjoon-hyun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making a PR, @HarshitGupta11 .
Apache ORC community is not aiming to claim for any un-released Apache Hive configuration. Please remove the following from this PR.

"hive.exec.orc.vectored.read",

AFAIK, it's not a part of Apache Hive master branch.

hive:master $ git grep hive.exec.orc.vectored.read

In addition, we cannot depend on unreleased Apache Hadoop too. Please revert the following change.

- <min.hadoop.version>2.7.3</min.hadoop.version>
- <hadoop.version>2.7.3</hadoop.version>
+ <min.hadoop.version>3.3.9-SNAPSHOT</min.hadoop.version>
+ <hadoop.version>3.3.9-SNAPSHOT</hadoop.version>

@dongjoon-hyun dongjoon-hyun self-assigned this Oct 13, 2022
@mukund-thakur

Copy link
Copy Markdown

Hi @dongjoon-hyun
Thanks for the review. Yeah, I understand we can't upgrade the Hadoop version directly just like this. This PR is to show how the integration can be done with the upcoming Vectored IO API https://issues.apache.org/jira/browse/HADOOP-18103 in
upcoming Hadoop 3.3.5 release and discuss the best approach to get the changes committed.

Hi @omalley ,
This is the orc patch I was talking about. Please take a look whenever you get time. Thanks

@dongjoon-hyun dongjoon-hyun removed their assignment Oct 19, 2022
@dongjoon-hyun

Copy link
Copy Markdown
Member

Got it. According to the request, I'll leave this PR to @omalley .

@dongjoon-hyun dongjoon-hyun added this to the 2.0.0 milestone May 16, 2023
@dongjoon-hyun

Copy link
Copy Markdown
Member

FYI, Apache ORC 2.0 Milestone is created and aims to use Hadoop 3 dependency to access all Hadoop 2 and 3 clusters.

@steveloughran

Copy link
Copy Markdown

@HarshitGupta11 can you rebase this to orc main and against release hadoop 3.3.5.

@steveloughran steveloughran left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

int index = 0;
range = rootRange;
BufferChunk current = range.get();
while (current != null) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because FileRange has a reference field, you can put a reference back to the specific BufferChunk instances for each range. Then waiting for results becomes a matter of

  1. waiting for the ranged reads to complete
  2. resolving the references for each range
  3. set their Chunk bytebuffers to the ranges read.

} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new IOException(e);
} catch (ExecutionException e) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

org.apache.hadoop.util.functional.FutureIO has some methods to help extract useful IOEs from ExecutionExceptions -see unwrapInnerException()

Comment thread java/pom.xml

<min.hadoop.version>2.7.3</min.hadoop.version>
<hadoop.version>2.7.3</hadoop.version>
<min.hadoop.version>3.3.9-SNAPSHOT</min.hadoop.version>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set to 3.3.5

Comment thread java/shims/pom.xml
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs-client</artifactId>
<version>3.3.9-SNAPSHOT</version>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this really needed? If it is it's a failure in the api.

@dongjoon-hyun dongjoon-hyun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, main branch moved to Apache Hadoop 3.3.5 shaded clients via #1509 ORC-1430: Use Hadoop 3.3.5 shaded clients

@roryqi

roryqi commented Jun 30, 2023

Copy link
Copy Markdown

Support the new fast Vectored Read API in ORC for parallel reads. The patch was tested internally along with S3

Could you share some performance benchmark tests?

@steveloughran

Copy link
Copy Markdown

slides from berlin buzzword last week
https://docs.google.com/presentation/d/1U5QRN4etbM7gkbnGO3OW4sCfUZx9LqJN/

@dongjoon-hyun

Copy link
Copy Markdown
Member

Gentle ping.

@dongjoon-hyun

Copy link
Copy Markdown
Member

Let me close this PR since this commit has been stale over one year already.

Screenshot 2023-12-09 at 3 43 56 PM

@dongjoon-hyun dongjoon-hyun removed this from the 2.0.0 milestone Dec 25, 2023
@dongjoon-hyun

Copy link
Copy Markdown
Member

As of today, this item is removed from Apache ORC 2.0.0 milestone.

@wgtmac

wgtmac commented Dec 25, 2023

Copy link
Copy Markdown
Member

@mukund-thakur @HarshitGupta11 Do you have any plan to revive this work?

@williamhyun

Copy link
Copy Markdown
Member

Let me take over this for ORC 2.0.0.

@williamhyun

williamhyun commented Dec 26, 2023 •

Copy link
Copy Markdown
Member

I made a PR, please take a look.

@dongjoon-hyun

Copy link
Copy Markdown
Member

Thank you, @williamhyun !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants