-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-8350][config] replace "taskmanager.tmp.dirs" with "io.tmp.dirs"
This replaces "taskmanager.tmp.dirs" with the new "io.tmp.dirs" configuration parameter to define temporary directories in (cluster) environments for all components, i.e. JobManager, JobMaster, Dispatcher,... Please note that this (kind of internal and thus undocumented) configuration parameter is set by our YARN and Mesos integrations. [FLINK-8350][cluster] initialise "io.tmp.dirs" for JobManager as well In a YARN and Mesos environment, this initialises Flink's temporary directory configuration with YARN/Mesos application-specific paths for JobManager, JobMaster, Dispatcher, etc. components as well (Mesos integration actually still lacks a proper integration of this, but once done, the new hooks fall in place just fine).
- Loading branch information
1 parent
46ed5e3
commit 76abcaa
Showing
21 changed files
with
168 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
flink-core/src/main/java/org/apache/flink/configuration/ConfigurationUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.flink.configuration; | ||
|
||
import java.io.File; | ||
|
||
/** | ||
* Utility class for {@link Configuration} related helper functions. | ||
*/ | ||
public class ConfigurationUtils { | ||
|
||
/** | ||
* Extracts the task manager directories for temporary files as defined by | ||
* {@link org.apache.flink.configuration.CoreOptions#TMP_DIRS}. | ||
* | ||
* @param configuration configuration object | ||
* @return array of configured directories (in order) | ||
*/ | ||
public static String[] parseTempDirectories(Configuration configuration) { | ||
return configuration.getString(CoreOptions.TMP_DIRS).split(",|" + File.pathSeparator); | ||
} | ||
|
||
// Make sure that we cannot instantiate this class | ||
private ConfigurationUtils() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.