public HadoopJobSubmissionPocoSimulatorClient(BasicAuthCredential connectionCredentials, IAbstractionContext context, string userAgentString) { this.credentials = connectionCredentials; var server = connectionCredentials.Server.Host.Split('.')[0]; this.cluster = HDInsightManagementRestSimulatorClient.GetCloudServiceInternal(server); this.context = context; this.userAgentString = userAgentString; this.InitializeSimulator(); }
public Task <OozieSiteConfigurationCollection> GetOozieServiceConfiguration() { var simulatedContainer = HDInsightManagementRestSimulatorClient.GetCloudServiceInternal(this.credentials.Server.Host.Split('.').First()); return(Task.FromResult(simulatedContainer.Configuration.Oozie)); }