After the Hadoop cluster is set up, the following port error occurs on one node when the Hadoop FS – put command is executed
location:org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1495)
throwable:java.io.IOException: Got error, status message , ack with firstBadLink as ip:port
at org.apache.hadoop.hdfs.protocol.datatransfer.DataTransferProtoUtil.checkBlockOpStatus(DataTransferProtoUtil.java:142)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.createBlockOutputStream(DFSOutputStream.java:1482)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1385)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:554)
First, check whether the firewalls of the three nodes are closed
firewall-cmd --state
Turn off firewall command
systemctl stop firewalld.service
If this situation still occurs after the firewall is closed, it may be that the ports of ECs are not open to the public. Take Alibaba cloud server as an example (Tencent cloud opens all ports by default):
After setting, execute the command again to succeed.
Read More:
- [Solved] java.io.IOException: Got error, status=ERROR, status message, ack with firstBadLink as
- Redis Stand-alone Builds a Master-slave Copy Error [How to Solve]
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- [Solved] Redis Error: Error condition on socket for SYNC: No route to host
- [Solved] Sqoop Error: ERROR tool.ImportTool: Import failed: java.io.IOException
- [Solved] Unable to connect to a as user root com.jcraft.jsch.JSchException: Auth failUnable to connect
- [Solved] Redis Client On Error: Error: write ECONNABORTED Config right
- [Solved] Hadoop Error: HADOOP_HOME and hadoop.home.dir are unset.
- [Solved] Hadoop failed on connection exception: java.net.ConnectException: Connection refused
- Hadoop Startup Error: sbin/start-dfs.sh [How to Solve]
- Spring integrated HBase error [How to Solve]
- [Solved] Tomcat configurate HTTPS error: java.net.SocketException: Permission denied
- [Solved] Mapreducer Class Conversion error: java.lang.ClassCastException
- [Solved] Hbase Error: ERROR: KeeperErrorCode = NoNode for /hbase/master
- ZK Error contacting service. It is probably not running [How to Solve]
- How to Solve classnotfoundexception error in spark without Hadoop runtime
- [Solved] spingboot Error: I/O error on POST request for “9411/api/v2/spans“: connect timed out
- [Solved] Hive On Spark Error: Remote Spark Driver – HiveServer2 connection has been closed
- [Solved] Web server failed to start. Port 8080 was already in use.
- The Java class generated by protocol reports an error: cannot access