@Test public void testTensorBoardComponent() throws IOException { testCommons.yarnConfig.set("hadoop.registry.dns.domain-name", "testDomain"); TensorFlowRunJobParameters parameters = new TensorFlowRunJobParameters(); parameters.setTensorboardResource(testCommons.resource); parameters.setName("testJobName"); parameters.setTensorboardDockerImage("testTBDockerImage"); TensorBoardComponent tensorBoardComponent = createTensorBoardComponent(parameters); Component component = tensorBoardComponent.createComponent(); assertEquals(testCommons.role.getComponentName(), component.getName()); testCommons.verifyCommonConfigEnvs(component); assertEquals(1L, (long) component.getNumberOfContainers()); assertEquals(RestartPolicyEnum.NEVER, component.getRestartPolicy()); testCommons.verifyResources(component); assertEquals( new Artifact().type(Artifact.TypeEnum.DOCKER).id("testTBDockerImage"), component.getArtifact()); assertEquals(String.format( "http: testCommons.userName), tensorBoardComponent.getTensorboardLink()); assertEquals("./run-TENSORBOARD.sh", component.getLaunchCommand()); verify(testCommons.fsOperations) .uploadToRemoteFileAndLocalizeToContainerWorkDir( any(Path.class), eq("mockScript"), eq("run-TENSORBOARD.sh"), eq(component)); }
public TensorBoardComponent(FileSystemOperations fsOperations, RemoteDirectoryManager remoteDirectoryManager, RunJobParameters parameters, TensorFlowLaunchCommandFactory launchCommandFactory, Configuration yarnConfig) { super(fsOperations, remoteDirectoryManager, parameters, TensorFlowRole.TENSORBOARD, yarnConfig, launchCommandFactory); }
TensorBoardComponent extends AbstractComponent { public TensorBoardComponent(FileSystemOperations fsOperations, RemoteDirectoryManager remoteDirectoryManager, RunJobParameters parameters, TensorFlowLaunchCommandFactory launchCommandFactory, Configuration yarnConfig) { super(fsOperations, remoteDirectoryManager, parameters, TensorFlowRole.TENSORBOARD, yarnConfig, launchCommandFactory); } }
TensorBoardComponent extends AbstractComponent { public TensorBoardComponent(FileSystemOperations fsOperations, RemoteDirectoryManager remoteDirectoryManager, RunJobParameters parameters, TensorFlowLaunchCommandFactory launchCommandFactory, Configuration yarnConfig) { super(fsOperations, remoteDirectoryManager, parameters, TensorFlowRole.TENSORBOARD, yarnConfig, launchCommandFactory); } TensorBoardComponent(FileSystemOperations fsOperations,
                              RemoteDirectoryManager remoteDirectoryManager,
                              RunJobParameters parameters,
                              TensorFlowLaunchCommandFactory launchCommandFactory,
                              Configuration yarnConfig); }
TensorBoardComponent extends AbstractComponent { public TensorBoardComponent(FileSystemOperations fsOperations, RemoteDirectoryManager remoteDirectoryManager, RunJobParameters parameters, TensorFlowLaunchCommandFactory launchCommandFactory, Configuration yarnConfig) { super(fsOperations, remoteDirectoryManager, parameters, TensorFlowRole.TENSORBOARD, yarnConfig, launchCommandFactory); } TensorBoardComponent(FileSystemOperations fsOperations,
                              RemoteDirectoryManager remoteDirectoryManager,
                              RunJobParameters parameters,
                              TensorFlowLaunchCommandFactory launchCommandFactory,
                              Configuration yarnConfig); @Override Component createComponent(); String getTensorboardLink(); }
TensorBoardComponent extends AbstractComponent { public TensorBoardComponent(FileSystemOperations fsOperations, RemoteDirectoryManager remoteDirectoryManager, RunJobParameters parameters, TensorFlowLaunchCommandFactory launchCommandFactory, Configuration yarnConfig) { super(fsOperations, remoteDirectoryManager, parameters, TensorFlowRole.TENSORBOARD, yarnConfig, launchCommandFactory); } TensorBoardComponent(FileSystemOperations fsOperations,
                              RemoteDirectoryManager remoteDirectoryManager,
                              RunJobParameters parameters,
                              TensorFlowLaunchCommandFactory launchCommandFactory,
                              Configuration yarnConfig); @Override Component createComponent(); String getTensorboardLink(); static final String TENSORBOARD_QUICKLINK_LABEL; }