YARN-1931. Private API change in YARN-1824 in 2.4 broke compatibility with previous releases (Sandy Ryza via tgraves)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1588281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eb1d4c39e0
commit
ad9edb02b9
@ -129,6 +129,9 @@ Release 2.4.1 - UNRELEASED
|
|||||||
YARN-1934. Fixed a potential NPE in ZKRMStateStore caused by handling
|
YARN-1934. Fixed a potential NPE in ZKRMStateStore caused by handling
|
||||||
Disconnected event from ZK. (Karthik Kambatla via jianhe)
|
Disconnected event from ZK. (Karthik Kambatla via jianhe)
|
||||||
|
|
||||||
|
YARN-1931. Private API change in YARN-1824 in 2.4 broke compatibility
|
||||||
|
with previous releases (Sandy Ryza via tgraves)
|
||||||
|
|
||||||
Release 2.4.0 - 2014-04-07
|
Release 2.4.0 - 2014-04-07
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
|
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Yarn application related utilities
|
* Yarn internal application-related utilities
|
||||||
*/
|
*/
|
||||||
@Private
|
@Private
|
||||||
public class Apps {
|
public class Apps {
|
||||||
@ -98,6 +98,17 @@ public static void setEnvFromInputString(Map<String, String> env,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This older version of this method is kept around for compatibility
|
||||||
|
* because downstream frameworks like Spark and Tez have been using it.
|
||||||
|
* Downstream frameworks are expected to move off of it.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public static void setEnvFromInputString(Map<String, String> env,
|
||||||
|
String envString) {
|
||||||
|
setEnvFromInputString(env, envString, File.pathSeparator);
|
||||||
|
}
|
||||||
|
|
||||||
@Public
|
@Public
|
||||||
@Unstable
|
@Unstable
|
||||||
public static void addToEnvironment(
|
public static void addToEnvironment(
|
||||||
@ -113,6 +124,18 @@ public static void addToEnvironment(
|
|||||||
StringInterner.weakIntern(val));
|
StringInterner.weakIntern(val));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This older version of this method is kept around for compatibility
|
||||||
|
* because downstream frameworks like Spark and Tez have been using it.
|
||||||
|
* Downstream frameworks are expected to move off of it.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public static void addToEnvironment(
|
||||||
|
Map<String, String> environment,
|
||||||
|
String variable, String value) {
|
||||||
|
addToEnvironment(environment, variable, value, File.pathSeparator);
|
||||||
|
}
|
||||||
|
|
||||||
public static String crossPlatformify(String var) {
|
public static String crossPlatformify(String var) {
|
||||||
return ApplicationConstants.PARAMETER_EXPANSION_LEFT + var
|
return ApplicationConstants.PARAMETER_EXPANSION_LEFT + var
|
||||||
+ ApplicationConstants.PARAMETER_EXPANSION_RIGHT;
|
+ ApplicationConstants.PARAMETER_EXPANSION_RIGHT;
|
||||||
|
Loading…
Reference in New Issue
Block a user