下面的URL地址是curl -X GET 'http://10.1.1.1:50070/webhdfs/v1/?op=LISTSTATUS‘
返回过期时间:清华,2015 -05 04:19:20 GMT日期:清华,2015 -05 04:19:20 GMT : no-cache Content-Type: application/json Transfer-Encoding: chunked Server: Jetty(6.1.26.hwx)
{"FileStatuses":{"FileStatus":[ {"accessTime":0,"blockSize":0,“....
有关http://hortonworks.com/hadoop-tutorial/securing-hadoop-infrastructure-apache-knox/的文档
要使用Knox,您可以输入: curl -iku guest:guest-password -X GET 'https://localhost:8443/gateway/sandbox/webhdfs/v1/?op=LISTSTATUS‘
我尝试过这种方法,但在HTML页面中返回"Page Not Found“错误。我猜问题是"/sandbox/“。输入/10.1.1.1:50070/不起作用,所以我需要在某个地方定义它。我有过
/conf/topologies/admin.xml /conf/topologies/default.xml
在default.xml中,我有一个定义了WEBHDFS的服务。我猜我只是需要一种方法来引用这个default.xml才能让它工作。所以,我试了一下:'https://localhost:8443/gateway/default/WEBHDFS/v1/?op=LISTSTATUS‘
但它还是不起作用。网址的格式为: Gateway https://{gateway-host}:{gateway-port}/{gateway-path}/{cluster-name}/oozie
那么,{cluster-name}是在哪里定义的?
发布于 2015-07-07 11:48:22
您需要在URL中使用小写的webhdfs。
发布于 2015-05-08 11:14:52
集群名称和配置是在xml文件中定义的,这些文件存储在目录conf/topologies/{ Clustername }.xml中
https://stackoverflow.com/questions/30092112
复制相似问题