MAPREDUCE-3692. yarn-resourcemanager out and log files can get big. Contributed by Eli Collins

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1233605 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eli Collins 2012-01-19 22:23:53 +00:00
parent fa6033a029
commit 6861560098
12 changed files with 15 additions and 14 deletions

View File

@ -187,6 +187,8 @@ Release 0.23.1 - Unreleased
assign only one off-switch container in a single scheduling assign only one off-switch container in a single scheduling
iteration. (Arun C Murthy via vinodkv) iteration. (Arun C Murthy via vinodkv)
MAPREDUCE-3692. yarn-resourcemanager out and log files can get big. (eli)
OPTIMIZATIONS OPTIMIZATIONS
MAPREDUCE-3567. Extraneous JobConf objects in AM heap. (Vinod Kumar MAPREDUCE-3567. Extraneous JobConf objects in AM heap. (Vinod Kumar

View File

@ -632,7 +632,7 @@ public class JobImpl implements org.apache.hadoop.mapreduce.v2.app.job.Job,
* The only entry point to change the Job. * The only entry point to change the Job.
*/ */
public void handle(JobEvent event) { public void handle(JobEvent event) {
LOG.info("Processing " + event.getJobId() + " of type " + event.getType()); LOG.debug("Processing " + event.getJobId() + " of type " + event.getType());
try { try {
writeLock.lock(); writeLock.lock();
JobState oldState = getState(); JobState oldState = getState();

View File

@ -537,7 +537,7 @@ public abstract class TaskImpl implements Task, EventHandler<TaskEvent> {
@Override @Override
public void handle(TaskEvent event) { public void handle(TaskEvent event) {
LOG.info("Processing " + event.getTaskID() + " of type " + event.getType()); LOG.debug("Processing " + event.getTaskID() + " of type " + event.getType());
try { try {
writeLock.lock(); writeLock.lock();
TaskState oldState = getState(); TaskState oldState = getState();

View File

@ -315,11 +315,10 @@ public class ProtoOverHadoopRpcEngine implements RpcEngine {
ProtoSpecificRequestWritable request = (ProtoSpecificRequestWritable) writableRequest; ProtoSpecificRequestWritable request = (ProtoSpecificRequestWritable) writableRequest;
ProtoSpecificRpcRequest rpcRequest = request.message; ProtoSpecificRpcRequest rpcRequest = request.message;
String methodName = rpcRequest.getMethodName(); String methodName = rpcRequest.getMethodName();
System.out.println("Call: protocol=" + protocol + ", method=" if (verbose) {
+ methodName);
if (verbose)
log("Call: protocol=" + protocol + ", method=" log("Call: protocol=" + protocol + ", method="
+ methodName); + methodName);
}
MethodDescriptor methodDescriptor = service.getDescriptorForType() MethodDescriptor methodDescriptor = service.getDescriptorForType()
.findMethodByName(methodName); .findMethodByName(methodName);
if (methodDescriptor == null) { if (methodDescriptor == null) {

View File

@ -373,7 +373,7 @@ public class ApplicationImpl implements Application {
try { try {
ApplicationId applicationID = event.getApplicationID(); ApplicationId applicationID = event.getApplicationID();
LOG.info("Processing " + applicationID + " of type " + event.getType()); LOG.debug("Processing " + applicationID + " of type " + event.getType());
ApplicationState oldState = stateMachine.getCurrentState(); ApplicationState oldState = stateMachine.getCurrentState();
ApplicationState newState = null; ApplicationState newState = null;

View File

@ -811,7 +811,7 @@ public class ContainerImpl implements Container {
this.writeLock.lock(); this.writeLock.lock();
ContainerId containerID = event.getContainerID(); ContainerId containerID = event.getContainerID();
LOG.info("Processing " + containerID + " of type " + event.getType()); LOG.debug("Processing " + containerID + " of type " + event.getType());
ContainerState oldState = stateMachine.getCurrentState(); ContainerState oldState = stateMachine.getCurrentState();
ContainerState newState = null; ContainerState newState = null;

View File

@ -181,7 +181,7 @@ public class LocalizedResource implements EventHandler<ResourceEvent> {
this.writeLock.lock(); this.writeLock.lock();
Path resourcePath = event.getLocalResourceRequest().getPath(); Path resourcePath = event.getLocalResourceRequest().getPath();
LOG.info("Processing " + resourcePath + " of type " + event.getType()); LOG.debug("Processing " + resourcePath + " of type " + event.getType());
ResourceState oldState = this.stateMachine.getCurrentState(); ResourceState oldState = this.stateMachine.getCurrentState();
ResourceState newState = null; ResourceState newState = null;

View File

@ -413,7 +413,7 @@ public class RMAppImpl implements RMApp {
try { try {
ApplicationId appID = event.getApplicationId(); ApplicationId appID = event.getApplicationId();
LOG.info("Processing event for " + appID + " of type " LOG.debug("Processing event for " + appID + " of type "
+ event.getType()); + event.getType());
final RMAppState oldState = getState(); final RMAppState oldState = getState();
try { try {

View File

@ -468,7 +468,7 @@ public class RMAppAttemptImpl implements RMAppAttempt {
try { try {
ApplicationAttemptId appAttemptID = event.getApplicationAttemptId(); ApplicationAttemptId appAttemptID = event.getApplicationAttemptId();
LOG.info("Processing event for " + appAttemptID + " of type " LOG.debug("Processing event for " + appAttemptID + " of type "
+ event.getType()); + event.getType());
final RMAppAttemptState oldState = getAppAttemptState(); final RMAppAttemptState oldState = getAppAttemptState();
try { try {

View File

@ -192,7 +192,7 @@ public class RMContainerImpl implements RMContainer {
@Override @Override
public void handle(RMContainerEvent event) { public void handle(RMContainerEvent event) {
LOG.info("Processing " + event.getContainerId() + " of type " + event.getType()); LOG.debug("Processing " + event.getContainerId() + " of type " + event.getType());
try { try {
writeLock.lock(); writeLock.lock();
RMContainerState oldState = getState(); RMContainerState oldState = getState();

View File

@ -283,7 +283,7 @@ public class RMNodeImpl implements RMNode, EventHandler<RMNodeEvent> {
} }
public void handle(RMNodeEvent event) { public void handle(RMNodeEvent event) {
LOG.info("Processing " + event.getNodeId() + " of type " + event.getType()); LOG.debug("Processing " + event.getNodeId() + " of type " + event.getType());
try { try {
writeLock.lock(); writeLock.lock();
RMNodeState oldState = getState(); RMNodeState oldState = getState();

View File

@ -575,12 +575,12 @@ public class FifoScheduler implements ResourceScheduler {
if (Resources.greaterThanOrEqual(node.getAvailableResource(), if (Resources.greaterThanOrEqual(node.getAvailableResource(),
minimumAllocation)) { minimumAllocation)) {
LOG.info("Node heartbeat " + rmNode.getNodeID() + LOG.debug("Node heartbeat " + rmNode.getNodeID() +
" available resource = " + node.getAvailableResource()); " available resource = " + node.getAvailableResource());
assignContainers(node); assignContainers(node);
LOG.info("Node after allocation " + rmNode.getNodeID() + " resource = " LOG.debug("Node after allocation " + rmNode.getNodeID() + " resource = "
+ node.getAvailableResource()); + node.getAvailableResource());
} }