所以我在私有AWS VPC上设置了一个简单的2节点hadoop集群。所以我使用私有IP和DNS而不是他们为您提供AWS的公共IP。
我启动并运行HDFS,我可以使用文件系统来创建和移动文件/目录。但是当我尝试运行简单的Mapreduce作业(如wordcount)时,我收到以下错误:
Call From master/10.205.232.248 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
java.net.ConnectException: Call From master/10.205.232.248 to master:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
我的/ etc / hosts看起来像这样:
10.205.232.248 <master_hostname> ip-10-205-232-248 master
10.205.232.249 <slave_hostname> ip-10-205-232-249 slave
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost4.localdomain4 localhost4
我的core-site.xml:
<property>
<name>fs.defaultFS</name>
<value>hdfs://master:9000</value>
</property>
我的mapred-site.xml:
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
<name>mapred.job.tracker</name>
<value>10.205.232.248:9001</value>
</property>
我的yarn-site.xml:
<property>
<name>yarn.nodemanager.aux-services</name>
<value>mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
<value>org.apache.hadoop.mapred.ShuffleHander</value>
</property>
为了解决此连接错误,我忽略了哪些配置设置? 谢谢!
答案 0 :(得分:0)
检查机器中的防火墙和端口是否在aws安全组(入站和出站)中打开