#Error Codes:
FileSystem fs = FileSystem.get(new URI("hdfs://hadoop000:8020"),new Configuration(),"hadoop");
#Error Messages:
Exception in thread "main" java.net.ConnectException: Call From DESKTOP-09ASUHR/192.168.56.1 to 192.168.137.101:8020 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
#Cause Analysis:
/root/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/core-site.xml
The fs.defaultFS parameter is configured to use a domain name and the domain name is not mapped.
#Solution:
vim /root/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop/core-site.xml
Use IP address before #8020, not hostname
fs.defaultFS hdfs://192.168.154.129:8820
Similar Posts:
- [Solved] hadoop Configuration Modify Error: hive.ql.metadata.HiveException
- [Solved] Call to localhost/127.0.0.1:9000 failed on connection exception:java.net.ConnectException
- Hive appears to refuse connection ConnectionRefused Solution
- IDEA Run mapreduce error: PATH Set Error [How to Solve]
- [Solved] Hadoop Error: The directory item limit is exceeded: limit=1048576 items=1048576
- JAVA api Access HDFS Error: Permission denied in production environment
- [Solved] IDEA Remote Operate hdfs Hadoop Error: Caused by: java.net.ConnectException: Connection refused: no further information
- Error: Could not find or load main class org.apache.hadoop.mapreduce.v2.app.MRAppMaster
- [Solved] HDFS Error: org.apache.hadoop.security.AccessControlException: Permission denied
- [Solved] Hbase Exception: java.io.EOFException: Premature EOF: no length prefix available