public void CanAutoGenerateStatusDirectoryForMapReduceJob() { var mapReduceJobDefinition = new AzureHDInsightMapReduceJobDefinition { JobName = "pi estimation jobDetails", ClassName = "pi", JarFile = TestConstants.WabsProtocolSchemeName + "container@hostname/examples.jar" }; AzureHDInsightJob startedJob = TestJobStart(mapReduceJobDefinition); Assert.IsFalse(string.IsNullOrEmpty(startedJob.StatusDirectory)); }
public void ICanCallThe_Start_HDInsightJobsCmdlet_WithDebug() { var mapReduceJobDefinition = new AzureHDInsightMapReduceJobDefinition { JobName = "pi estimation jobDetails", ClassName = "pi", JarFile = TestConstants.WabsProtocolSchemeName + "container@hostname/examples.jar" }; using (IRunspace runspace = this.GetPowerShellRunspace()) { string expectedLogMessage = string.Format(CultureInfo.InvariantCulture, "Starting jobDetails '{0}'.", mapReduceJobDefinition.JobName); RunJobInPowershell( runspace, mapReduceJobDefinition, CmdletScenariosTestCaseBase.GetHttpAccessEnabledCluster(), true, expectedLogMessage); } }
public virtual void ICanCallThe_Start_HDInsightJobsCmdlet_WithoutName() { var mapReduceJobDefinition = new AzureHDInsightMapReduceJobDefinition { ClassName = "pi", JarFile = TestConstants.WabsProtocolSchemeName + "container@hostname/examples.jar" }; using (IRunspace runspace = this.GetPowerShellRunspace()) { RunJobInPowershell(runspace, mapReduceJobDefinition); } }
public void UserCanSupplyStatusDirectoryForMapReduceJob() { var mapReduceJobDefinition = new AzureHDInsightMapReduceJobDefinition { JobName = "pi estimation jobDetails", ClassName = "pi", JarFile = TestConstants.WabsProtocolSchemeName + "container@hostname/examples.jar", StatusFolder = "/myoutputfolder" }; AzureHDInsightJob startedJob = TestJobStart(mapReduceJobDefinition); Assert.AreEqual(startedJob.StatusDirectory, mapReduceJobDefinition.StatusFolder); }
public void CanStartMapReduceJob() { var mapReduceJobDefinition = new AzureHDInsightMapReduceJobDefinition { JobName = "pi estimation jobDetails", ClassName = "pi", JarFile = TestConstants.WabsProtocolSchemeName + "container@hostname/examples.jar" }; TestJobStart(mapReduceJobDefinition); }
public void CanCreateNewMapReduceJob_WithoutJobName() { var mapReduceJobDefinition = new AzureHDInsightMapReduceJobDefinition { ClassName = "pi", JarFile = TestConstants.WabsProtocolSchemeName + "container@hostname/examples.jar", StatusFolder = "/myoutputfolder" }; AzureHDInsightJob startedJob = TestJobStart(mapReduceJobDefinition); Assert.AreEqual("pi", startedJob.Name); }