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
[FLINK-13131] [Deployment / YARN] add a custom directory for storing configuration files and jar files for user jobs #9007
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 37aee5e (Tue Aug 06 15:59:52 UTC 2019) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhangbinzaifendou Thanks for your contribution.
However, it did not convince me why we need this change. All files are uploaded to /user/user-name/.flink/appId
and controlled totally by Flink itself (including create the folder and delete that folder). IMO this should be enough for current usage, there is no obvious benefit for user to configure this folder to another location. Moreover, if configuring to another location, I think there is no guarantee that we could set permission under not-home directory.
Besides, please refer to open-a-pull-request doc to run mvn clean verify
before creating the PR. Flink does not allow star import when executing checkstyle plugin.
@Myasuka Thank you very much for your review and Suggestions
|
@zhangbinzaifendou Please correct me if I am wrong, if |
@Myasuka Sorry for not being precise. |
6ccf752
to
310dd42
Compare
@zhangbinzaifendou as you explained, the motivation to create this PR is due to your special online environment and your Hadoop. However, this is not the reason that you have to modify the Flink source code. I think the real solution is to modify your special Hadoop which caused this problem. As an open source software, Flink should adapt to the standard or widely-used ecosystems not some special customized ones. There would be no problems if we follow the correct logic of |
@Myasuka Thanks for your reply. |
Hi @zhangbinzaifendou, thanks for your contribution. I agree with @Myasuka. Your private hadoop version should be updated to support this scenario. Maybe you could build your own flink-shaded-hadoop uber jar. |
@wangyang0918 Thank you for your answer. |
eca983e
to
37aee5e
Compare
The user-related jars and configuration files can only be placed under fileSystem.getHomeDirectory(/home/xxx), which is inflexible and increases the configuration so that users can customize the directory.