In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This issue of the content of the editor will bring you about the java program in eclipse can not access the hdfs file system and report: Connection Refused how to do, the article is rich in content and professional analysis and description for you, after reading this article, I hope you can get something.
Phenomenon: after starting hadoop in pseudo-distributed mode, the java program on eclipse cannot access the hdfs file system, report: Connection Refused
Analysis:
The hadoop server and client code are no longer on the same machine. Telnet 192.168.222.128 9000 does not work on the client machine, telnet 127.0.0.1 9000 is fine on the server, but telnet 192.168.222.128 9000 does not work, so it is no wonder that the server cannot be accessed on client. Later, I thought that the value of fs.defaultFS configured in core-site.xml is hdfs://localhost:9000. I think it may have something to do with this. Then change to the hostname hadoop (there is 192.168.222.128 hadoop in / etc/hosts), restart the hdfs service, and then use the client to access it.
The above is the java program in eclipse shared by Xiaobian cannot access the hdfs file system and report: what should Connection Refused do? if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.