[
https://issues.apache.org/jira/browse/FLINK-10601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16656859#comment-16656859
]
ASF GitHub Bot commented on FLINK-10601:
----------------------------------------
link3280 closed pull request #6879: [FLINK-10601] [YARN] Make user home dir
consistent with Flink default filesystem
URL: https://github.com/apache/flink/pull/6879
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
b/flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
index c161e227577..4f1a9a2d417 100644
---
a/flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
+++
b/flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java
@@ -46,6 +46,7 @@
import org.apache.flink.util.ShutdownHookUtil;
import org.apache.flink.yarn.configuration.YarnConfigOptions;
+import org.apache.hadoop.fs.CommonConfigurationKeysPublic;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsAction;
@@ -723,6 +724,8 @@ public ApplicationReport startAppMaster(
// initialize file system
// Copy the application master jar to the filesystem
// Create a local resource to point to the destination jar path
+
yarnConfiguration.set(CommonConfigurationKeysPublic.FS_DEFAULT_NAME_KEY,
+
org.apache.flink.core.fs.FileSystem.getDefaultFsUri().toString());
final FileSystem fs = FileSystem.get(yarnConfiguration);
final Path homeDir = fs.getHomeDirectory();
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Make user home dir consistent with Flink default filesystem
> -----------------------------------------------------------
>
> Key: FLINK-10601
> URL: https://issues.apache.org/jira/browse/FLINK-10601
> Project: Flink
> Issue Type: Improvement
> Components: YARN
> Affects Versions: 1.6.1
> Reporter: Paul Lin
> Priority: Major
> Labels: pull-request-available
>
> Currently, Flink client uses the raw default Hadoop filesystem to upload
> local files, and this could be problematic when using a non-default
> filesystem for HA or checkpointing in delegation tokens scenarios. The
> jobmanager only has the delegation tokens for the default FS, so it gets
> authentication errors when trying to connect a non-default filesystem.
> So I propose to replace the default FS property in yarn configuration with
> the Flink filesystem property `fs.default-scheme` on the client side
> (AbstractYarnClusterDescriptor), to avoid this problem and also make the
> client behavior more configurable.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)