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

HDInsight Emulator not running on Windows / connection exception

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

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

我该如何解决或进一步调查这个问题?

详情如下。

先决条件:

问题:

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

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

以下对我有用:

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

你至少应该找到

  • mapred-site.xml
  • core-site.xml
  • yarn-site.xml

将这些文件中出现的所有内容替换为 127.0.0.1:8020