HDInsight模拟器未在Windows /连接异常

时间:2016-01-11 10:04:14

标签: azure hadoop hdinsight

我正在尝试按照以下说明在Windows 8.1 PC上设置HDInsight模拟器:https://azure.microsoft.com/en-us/documentation/articles/hdinsight-hadoop-emulator-get-started/

尝试运行MapReduce作业时,出现连接错误。

如何解决或进一步调查此问题?

详情如下。

先决条件:

  • 已安装Azure Powershell和Azure SDK for VS 2015
  • 安装了适用于Azure的HDInsight模拟器。 Hortonworks数据平台
  • 启动本地hdp服务(运行13项服务)
  • 将Visual Studio连接到仿真器(必须遵循故障排除第2点:由于动态IP而将core-site.xml中的IP地址替换为'*')
  • 按照建议创建目录和复制的文本文件

问题:

尝试运行第一个示例时,出现以下错误:

16/01/11 10:36:39 INFO mapreduce.Job: Job job_1452503376359_0003 failed with state FAILED due to: Application application_1452503376359_0003 failed 2 times due to AM Container for appattempt_1452503376359_0003_000002 exited with  exitCode: -1000 due to: Call From EH3HOST/192.168.56.1 to EH3HOST:8020 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
.Failing this attempt.. Failing the application.
16/01/11 10:36:39 INFO mapreduce.Job: Counters: 0

1 个答案:

答案 0 :(得分:1)

以下对我有用:

<your own host name>:8020文件夹中搜索包含c:\hdp\hdp-<Version Number>\etc\hadoop\的XML文件。 (例如EH3HOST:8020

你应该至少找到

  • mapred-site.xml
  • core-site.xml
  • 纱-site.xml中

使用127.0.0.1:8020替换这些文件中的所有匹配项。