我正在尝试在 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
我不确定,但也许这是构建部分的一个问题,比如版本冲突,我正在解决这个问题。
有任何想法吗?