【问题标题】:Apache Knox config阿帕奇诺克斯配置
【发布时间】:2015-05-07 04:44:38
【问题描述】:

以下网址有效 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 Pragma:无缓存 内容类型:应用程序/json 传输编码:分块 服务器:码头(6.1.26.hwx)

{"文件状态":{"文件状态":[ {"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 页面中返回了“找不到页面”错误。我猜问题是“/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} 在哪里定义?

【问题讨论】:

    标签: hadoop


    【解决方案1】:

    您需要在 URL 中使用小写的 webhdfs。

    【讨论】:

      【解决方案2】:

      Clustername 和 configure 在 xml 文件中定义,这些文件存储在目录 conf/topologies/{clustername}.xml

      【讨论】:

        猜你喜欢
        • 2014-05-26
        • 2015-04-17
        • 2011-03-21
        • 2020-09-08
        • 2021-03-08
        • 2020-10-10
        • 1970-01-01
        • 2011-10-28
        • 1970-01-01
        相关资源
        最近更新 更多