我正在使用Microsoft MapReduce SDK來啓動僅Mapper作業。MapReduce.SDK:如何等待MapReduce作業?
到hadoop.MapReduceJob.ExecuteJob
電話被扔「響應狀態代碼表明沒有成功:404(未找到)」立即例外。
在視察HDInsight查詢控制檯的工作成功啓動以後完成。它也寫入適當的輸出文件。
我的猜測是,ExecuteJob正在努力工作完成之前訪問輸出數據。
處理這種情況的正確方法是什麼?
using System;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using Microsoft.WindowsAzure.Management.HDInsight;
using Microsoft.Hadoop.MapReduce;
using AzureAnalyzer.MultiAnalyzer;
namespace AzureAnalyzer
{
class Program
{
static void Main(string[] args)
{
IHadoop hadoop = Hadoop.Connect(Constants.azureClusterUri, Constants.clusterUser,
Constants.hadoopUser, Constants.clusterPassword, Constants.storageAccount,
Constants.storageAccountKey, Constants.container, true);
try {
var output = hadoop.MapReduceJob.ExecuteJob<MultiAnalyzerJob>();
}
catch (Exception ex)
{
Console.WriteLine("\nException: " + ex.Message);
}
}
}
}
您能否指點我解釋的任何資源,需要運行哪些服務以及如何驗證它們? –
此鏈接是一個很好的參考。 https://azure.microsoft.com/en-in/documentation/articles/hdinsight-hadoop-emulator-get-started/希望你瞭解這些服務。 – Marco99
是的,那些服務一直在運行。也許我應該提到我在Azure中運行映射器,而不是在仿真器上運行。在這種情況下,我懷疑這些服務是否必要。 –