Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap getSplits in doAs #5478

Merged
merged 1 commit into from
Oct 9, 2020
Merged

Wrap getSplits in doAs #5478

merged 1 commit into from
Oct 9, 2020

Conversation

findepi
Copy link
Member

@findepi findepi commented Oct 8, 2020

No description provided.

@@ -450,7 +450,7 @@ private void invokeNoMoreSplitsIfNecessary()

JobConf jobConf = toJobConf(configuration);
FileInputFormat.setInputPaths(jobConf, path);
InputSplit[] splits = inputFormat.getSplits(jobConf, 0);
InputSplit[] splits = hdfsEnvironment.doAs(hdfsContext.getIdentity().getUser(), () -> inputFormat.getSplits(jobConf, 0));
Copy link
Member

Choose a reason for hiding this comment

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

extra space

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks

@findepi findepi added this to the 344 milestone Oct 9, 2020
@findepi findepi merged commit 7d61987 into trinodb:master Oct 9, 2020
@findepi findepi deleted the findepi/splitas branch October 9, 2020 07:34
@findepi findepi mentioned this pull request Oct 9, 2020
10 tasks
@liijiankang
Copy link

When the query time is long, such as more than an hour, this problem still occurs.

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

Successfully merging this pull request may close these issues.

3 participants