gpt4 book ai didi

Hadoop httpFS 总是返回 HTTP/1.1 404 Not Found

转载 作者:可可西里 更新时间:2023-11-01 16:10:45 25 4
gpt4 key购买 nike

我在使用 hadoop 的 HttpFS 服务时遇到问题。当我尝试 curl 一些资源时:

curl -i http://192.168.4.180:14000/webhdfs/v1/user/hadoop/?op=LISTSTATUS

我得到的响应是:

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 17 Aug 2015 08:57:47 GMT

但是当我尝试对 webhdfs 做同样的事情时,它起作用了:

 curl -i http://192.168.4.180:50070/webhdfs/v1/user/hadoop/?op=LISTSTATUS 

HTTP/1.1 200 OK
and so on ....

Httpfs 服务在端口 14000 上运行,我已经通过 nmap 检查了它。任何建议或想法可能是什么问题?

最佳答案

我遇到了同样的问题。并由此解决 link

简而言之,您需要添加符号链接(symbolic link):

# Point to the 'webapps' in current.
cd /etc/hadoop-httpfs/tomcat-deployment
ln -s /usr/hdp/current/hadoop-httpfs/webapps webapps

关于Hadoop httpFS 总是返回 HTTP/1.1 404 Not Found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32046466/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com