public ConnectionID(TaskManagerLocation connectionInfo, int connectionIndex) { this(new InetSocketAddress(connectionInfo.address(), connectionInfo.dataPort()), connectionIndex); }
public ConnectionID(TaskManagerLocation connectionInfo, int connectionIndex) { this(new InetSocketAddress(connectionInfo.address(), connectionInfo.dataPort()), connectionIndex); }
public ConnectionID(TaskManagerLocation connectionInfo, int connectionIndex) { this(new InetSocketAddress(connectionInfo.address(), connectionInfo.dataPort()), connectionIndex); }
public ConnectionID(TaskManagerLocation connectionInfo, int connectionIndex) { this(new InetSocketAddress(connectionInfo.address(), connectionInfo.dataPort()), connectionIndex); }
location.getFQDNHostname() + ':' + location.dataPort() : "(unassigned)";
String locationString = location == null ? "(unassigned)" : location.getHostname() + ":" + location.dataPort();
location.getFQDNHostname() + ':' + location.dataPort() : "(unassigned)"; long timestamp = task.getStateTimestamp(ExecutionState.FAILED); taskExceptionList.add(new JobExceptionsInfo.ExecutionExceptionInfo(
location.getFQDNHostname() + ':' + location.dataPort() : "(unassigned)"; long timestamp = task.getStateTimestamp(ExecutionState.FAILED); taskExceptionList.add(new JobExceptionsInfo.ExecutionExceptionInfo(
final String locationString = location == null ? "(unassigned)" : location.getHostname() + ":" + location.dataPort();
private void connectToResourceManager() { assert(resourceManagerAddress != null); assert(establishedResourceManagerConnection == null); assert(resourceManagerConnection == null); log.info("Connecting to ResourceManager {}.", resourceManagerAddress); resourceManagerConnection = new TaskExecutorToResourceManagerConnection( log, getRpcService(), getAddress(), getResourceID(), taskManagerLocation.dataPort(), hardwareDescription, resourceManagerAddress.getAddress(), resourceManagerAddress.getResourceManagerId(), getMainThreadExecutor(), new ResourceManagerRegistrationListener()); resourceManagerConnection.start(); }
private void connectToResourceManager() { assert(resourceManagerAddress != null); assert(establishedResourceManagerConnection == null); assert(resourceManagerConnection == null); log.info("Connecting to ResourceManager {}.", resourceManagerAddress); resourceManagerConnection = new TaskExecutorToResourceManagerConnection( log, getRpcService(), getAddress(), getResourceID(), taskManagerLocation.dataPort(), hardwareDescription, resourceManagerAddress.getAddress(), resourceManagerAddress.getResourceManagerId(), getMainThreadExecutor(), new ResourceManagerRegistrationListener()); resourceManagerConnection.start(); }
private void connectToResourceManager() { assert(resourceManagerAddress != null); assert(establishedResourceManagerConnection == null); assert(resourceManagerConnection == null); log.info("Connecting to ResourceManager {}.", resourceManagerAddress); resourceManagerConnection = new TaskExecutorToResourceManagerConnection( log, getRpcService(), getAddress(), getResourceID(), taskManagerLocation.dataPort(), hardwareDescription, resourceManagerAddress.getAddress(), resourceManagerAddress.getResourceManagerId(), getMainThreadExecutor(), new ResourceManagerRegistrationListener()); resourceManagerConnection.start(); }
private static JobExceptionsInfo.ExecutionExceptionInfo generateExecutionExceptionInfo(AccessExecutionJobVertex jobVertex, AccessExecutionVertex executionVertex, AccessExecution task) { String t = task != null ? task.getFailureCauseAsString() : null; if (t != null && !t.equals(ExceptionUtils.STRINGIFIED_NULL_EXCEPTION)) { TaskManagerLocation location = task.getAssignedResourceLocation(); String locationString = location != null ? location.getFQDNHostname() + ':' + location.dataPort() : "(unassigned)"; long timestamp = task.getStateTimestamp(ExecutionState.FAILED); return new JobExceptionsInfo.ExecutionExceptionInfo( t, executionVertex.getTaskNameWithSubtaskIndex(), locationString, timestamp == 0 ? -1 : timestamp, jobVertex.getJobVertexId().toString(), task.getParallelSubtaskIndex(), task.getAttemptNumber()); } else { return null; } } }
public static SubtaskExecutionAttemptInfo create(AccessExecution execution) { final ExecutionState status = execution.getState(); final long now = System.currentTimeMillis(); final TaskManagerLocation location = execution.getAssignedResourceLocation(); final String locationString = location == null ? "(unassigned)" : location.getHostname() + ":" + location.dataPort(); final ResourceID resourceID = location == null ? new ResourceID("(unassigned)") : location.getResourceID(); long startTime = execution.getStateTimestamp(ExecutionState.DEPLOYING); if (startTime == 0) { startTime = -1; } final long endTime = status.isTerminal() ? execution.getStateTimestamp(status) : -1; final long duration = startTime > 0 ? ((endTime > 0 ? endTime : now) - startTime) : -1; final String failureCause = execution.getFailureCauseAsString(); return new SubtaskExecutionAttemptInfo( execution.getAttemptId(), status, execution.getAttemptNumber(), locationString, startTime, endTime, duration, failureCause, resourceID ); } }
location.getFQDNHostname() + ':' + location.dataPort() : "(unassigned)";
gen.writeStringField("id", instance.getTaskManagerID().getResourceIdString()); gen.writeStringField("path", instance.getTaskManagerGateway().getAddress()); gen.writeNumberField("dataPort", instance.getTaskManagerLocation().dataPort()); gen.writeNumberField("timeSinceLastHeartbeat", instance.getLastHeartBeat()); gen.writeNumberField("slotsNumber", instance.getTotalNumberOfSlots());
String locationString = location == null ? "(unassigned)" : location.getHostname() + ":" + location.dataPort();
String locationString = location == null ? "(unassigned)" : location.getHostname() + ":" + location.dataPort();
String locationString = location == null ? "(unassigned)" : location.getHostname() + ":" + location.dataPort();
String locationString = location == null ? "(unassigned)" : location.getHostname() + ":" + location.dataPort();