0
点赞
收藏
分享

微信扫一扫

Windows下的Eclipse连接不上虚拟机上的hdfs,一直显示Listing folder content的解决方案

谁知我新 2022-06-02 阅读 51

Eclipse连接不上虚拟机上的hdfs,一直显示Listing folder content,如下图所示:

Windows下的Eclipse连接不上虚拟机上的hdfs,一直显示Listing folder content的解决方案_hdfs

 

要做到以下三点:

1. 本身就还没创建输入和输出目录,此时要在hdfs上建个文件夹 。

   bin/hdfs dfs -mkdir -p  /user/hadoop/input

   bin/hdfs dfs -mkdir -p  /user/hadoop/output

2. core-site.xml这个配置文件中要写虚拟机的ip地址,不能写localhost

Windows下的Eclipse连接不上虚拟机上的hdfs,一直显示Listing folder content的解决方案_hdfs_02

 3. 一定要关闭防火墙 (这是CentOS的命令,不同Linux系统防火墙命令不一样,请自行百度命令)

systemctl status firewalld #查看防火墙状态
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动

 


举报

相关推荐

0 条评论