1

我正在尝试在 Ambari 1.7.0 上添加视图。

对于此处可用的文件视图:https ://github.com/apache/ambari/tree/trunk/contrib/views/files

尝试启动视图实例后出现错误:

500 HdfsApi 连接失败。检查“webhdfs.url”属性

使用以下堆栈跟踪(只是第一行):

java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hdfs.web.WebHdfsFileSystem not found
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1720)
at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2415)
at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2428)
at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:88)
at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2467)

我只是在视图的配置过程中添加了以下属性:

webhdfs.url webhdfs://mycluster1:50070

我不确定,但也许这是构建部分的一个问题,比如版本冲突,我正在解决这个问题。

有任何想法吗?

4

1 回答 1

-1

您在文件视图实例中为 WebHDFS url 使用的值是多少?

您的集群 Namenode HA 是否启用?如果是,请尝试使用 url 作为 webhdfs://:50070 如果没有启用 HA,则使用 webhdfs://:50070

如果没有工作,请使用直接数据节点 dfs 地址作为 webhdfs://:50070

于 2015-07-29T10:50:15.133 回答