关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)

关于hdfs突然上传和下载不了文件的解决方法

    • 1、问题描述
    • 2、解决方案

1、问题描述

在浏览器上可以正常访问HDFS集群http://node1:9870的Web UI页面,成功进入以下界面
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第1张图片

同时可以查看hdfs的目录和文件
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第2张图片
但无法上传和下载文件,出现以下报错:Couldn’t upload the file.
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第3张图片
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第4张图片

2、解决方案

1、刚开始是可以对文件及文件夹进行增删改操作的,现在突然操作不了的,请检查下本地电脑的hosts文件,是否已经成功添加虚拟机ip地址的映射及主节点、从节点的ip地址。,注意映射是否被注释掉,如是把注释去掉即可
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第5张图片
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第6张图片
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第7张图片

2、请检查是电脑端是否开启VPN,开启的话将其关闭即可。整了很久发现是因为开始VPN导致主机地址发生改变,将其关闭便能对文件进行操作了。
关于hdfs突然无法上传下载文件的解决方法(Couldn‘t upload the file)_第8张图片

你可能感兴趣的:(hdfs,hadoop)