MAPREDUCE-4845. ClusterStatus.getMaxMemory() and getUsedMemory() exist in MR1 but not MR2. Contributed by Sandy Ryza.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1423470 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9c73fce831
commit
9189917be5
@ -179,6 +179,9 @@ Release 2.0.3-alpha - Unreleased
|
|||||||
MAPREDUCE-4703. Add the ability to start the MiniMRClientCluster using
|
MAPREDUCE-4703. Add the ability to start the MiniMRClientCluster using
|
||||||
the configurations used before it is being stopped. (ahmed.radwan via tucu)
|
the configurations used before it is being stopped. (ahmed.radwan via tucu)
|
||||||
|
|
||||||
|
MAPREDUCE-4845. ClusterStatus.getMaxMemory() and getUsedMemory() exist in
|
||||||
|
MR1 but not MR2. (Sandy Ryza via tomwhite)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
@ -175,6 +175,8 @@ public String toString() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final int UNINITIALIZED_MEMORY_VALUE = -1;
|
||||||
|
|
||||||
private int numActiveTrackers;
|
private int numActiveTrackers;
|
||||||
private Collection<String> activeTrackers = new ArrayList<String>();
|
private Collection<String> activeTrackers = new ArrayList<String>();
|
||||||
private int numBlacklistedTrackers;
|
private int numBlacklistedTrackers;
|
||||||
@ -384,6 +386,22 @@ public int getMaxReduceTasks() {
|
|||||||
public JobTrackerStatus getJobTrackerStatus() {
|
public JobTrackerStatus getJobTrackerStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns UNINITIALIZED_MEMORY_VALUE (-1)
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public long getMaxMemory() {
|
||||||
|
return UNINITIALIZED_MEMORY_VALUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns UNINITIALIZED_MEMORY_VALUE (-1)
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public long getUsedMemory() {
|
||||||
|
return UNINITIALIZED_MEMORY_VALUE;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the list of blacklisted trackers along with reasons for blacklisting.
|
* Gets the list of blacklisted trackers along with reasons for blacklisting.
|
||||||
|
Loading…
Reference in New Issue
Block a user