Apache Knox配置

时间:2015-05-07 04:44:38

标签: hadoop

以下网址有效 curl -X GET'http://10.1.1.1:50070/webhdfs/v1/?op=LISTSTATUS'

并返回 到期日:2015年5月7日星期四04:19:20 GMT 日期:星期四,2015年5月7日04:19:20 GMT Pragma:没有缓存 Content-Type:application / json 转移编码:分块 服务器:Jetty(6.1.26.hwx)

{ “FileStatuses”:{ “时间filestatus”:[ { “accessTime”:0, “BLOCKSIZE”:0,” ....

关于的文件 http://hortonworks.com/hadoop-tutorial/securing-hadoop-infrastructure-apache-knox/

说使用诺克斯,你输入: curl -iku guest:guest-password -X GET'https://localhost:8443/gateway/sandbox/webhdfs/v1/?op=LISTSTATUS'

我试过这个,我只是在HTML页面中返回“找不到页面”错误。我猜这个问题是“/ 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'

它仍然无效。 URL的格式为: 网关https:// {gateway-host}:{gateway-port} / {gateway-path} / {cluster-name} / oozie

那么,{cluster-name}定义在哪里?

1 个答案:

答案 0 :(得分:1)

您需要在网址中使用小写webhdfs。