Hi,

 

I am trying to get the list of nodes whose status has been updated from the
AllocateResponse Obj, but I get back empty list although containers are
allocated to my App Master. Here is the code snippet for the same

 

for (ContainerRequest cr : containerRequests) {

        LOG.info("Requested container: {}", cr.toString());

        amRmClient.addContainerRequest(cr);

      }

for (ContainerId containerId : releasedContainers) {

      LOG.info("Released container, id={}", containerId.getId());

      amRmClient.releaseAssignedContainer(containerId);

    }

AllocateResponse amResp  = amRmClient.allocate(0);

List<Container> newAllocatedContainers = amResp.getAllocatedContainers();

List<NodeReport> updatedNodes = amResp.getUpdatedNodes();

 

I always empty list in the last call. Any pointers?

 

Thanks

-Gaurav

 

Reply via email to