public void CanCreateNewStreamingMapReduceJob_WithoutJobName_FilesRelative() { var streamingMapReduceJobDefinition = new AzureHDInsightStreamingMapReduceJobDefinition { Input = "input", Output = "output", Mapper = "/examples/mapper.exe", Reducer = "/examples/combiner.exe", StatusFolder = "/someotherlocation" }; AzureHDInsightJob startedJob = TestJobStart(streamingMapReduceJobDefinition); Assert.AreEqual("mapper.exe", startedJob.Name); }
internal static void AssertJobDefinitionsEqual( StreamingMapReduceJobCreateParameters streamingMapReduceJobDefinition, AzureHDInsightStreamingMapReduceJobDefinition streamingMapReduceJobFromPowershell) { Assert.AreEqual(streamingMapReduceJobDefinition.JobName, streamingMapReduceJobFromPowershell.JobName); Assert.AreEqual(streamingMapReduceJobDefinition.Input, streamingMapReduceJobFromPowershell.Input); Assert.AreEqual(streamingMapReduceJobDefinition.Output, streamingMapReduceJobFromPowershell.Output); Assert.AreEqual(streamingMapReduceJobDefinition.Mapper, streamingMapReduceJobFromPowershell.Mapper); Assert.AreEqual(streamingMapReduceJobDefinition.Reducer, streamingMapReduceJobFromPowershell.Reducer); Assert.AreEqual(streamingMapReduceJobDefinition.StatusFolder, streamingMapReduceJobFromPowershell.StatusFolder); }
public void CanCreateNewStreamingMapReduceJob_WithoutJobName() { var streamingMapReduceJobDefinition = new AzureHDInsightStreamingMapReduceJobDefinition { Input = TestConstants.WabsProtocolSchemeName + "container@hostname/input", Output = TestConstants.WabsProtocolSchemeName + "container@hostname/input", Mapper = TestConstants.WabsProtocolSchemeName + "container@hostname/mapper", Reducer = TestConstants.WabsProtocolSchemeName + "container@hostname/combiner", StatusFolder = TestConstants.WabsProtocolSchemeName + "container@hostname/someotherlocation" }; AzureHDInsightJob startedJob = TestJobStart(streamingMapReduceJobDefinition); Assert.AreEqual(startedJob.Name, "mapper"); }