bob*_*bob 6 hadoop cloudera hue
有没人试过这个?谷歌出现了一个完整的空白,到目前为止这是一个艰难的过程(我很擅长制作,蚂蚁等).
在下载了大量的依赖项之后,一些坦率地使用'ln -s'和大量的'sudo'......我终于遇到了一个我无法通过的错误.
$ cd /Users/bob/Downloads/hue-1.2.0
$ sudo make install
[snip]
--- Building Hadoop plugins
cd /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java && ant -Dbuild.dir=/Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/build/java -Dhadoop.home=/usr/lib/hadoop -Dplugins.version=1.2.0 jar
Buildfile: /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java/build.xml
init:
compile-gen:
[echo] contrib: hue
[javac] /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java/build.xml:69: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 55 source files to /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/build/java/classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
compile:
[echo] contrib: hue
[echo] src dir: /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java/src/java
[javac] /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java/build.xml:85: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 10 source files to /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/build/java/classes
[javac] /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java/src/java/org/apache/hadoop/mapred/ThriftJobTrackerPlugin.java:1036: getMapCounters(org.apache.hadoop.mapred.Counters) in org.apache.hadoop.mapred.JobInProgress cannot be applied to ()
[javac] JTThriftUtils.toThrift(jip.getMapCounters()));
[javac] ^
[javac] /Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java/src/java/org/apache/hadoop/mapred/ThriftJobTrackerPlugin.java:1038: getReduceCounters(org.apache.hadoop.mapred.Counters) in org.apache.hadoop.mapred.JobInProgress cannot be applied to ()
[javac] JTThriftUtils.toThrift(jip.getReduceCounters()));
[javac] ^
[javac] 2 errors
BUILD FAILED
/Users/bob/Downloads/hue-1.2.0/desktop/libs/hadoop/java/build.xml:85: Compile failed; see the compiler error output for details.
Run Code Online (Sandbox Code Playgroud)
我在Mac OS X 10.7.2(Lion)上运行Hadoop CDH3(hadoop-0.20.2-cdh3u2),Hue 1.2.0.
非常感谢任何帮助 - 非常感谢提前.
您尝试编译的 Hue 版本下载仅在 CDH3u1 之前有效,之后 CDH3 对 Hue 依赖的某些方法进行了一些内部 API 方法更改。
以下内容对我有用,针对 CDH3u1 编译 Hue 1.2.0:
$ wget http://archive.cloudera.com/cdh/3/hadoop-0.20.2-cdh3u1.tar.gz
$ tar xf hadoop-0.20.2-cdh3u1.tar.gz; export HADOOP_HOME=hadoop-0.20.2-cdh3u1
$ cd hue-1.2.0/
$ make apps
Run Code Online (Sandbox Code Playgroud)
当然,您需要一些依赖项才能成功编译所有组件。我使用 Homebrew 来管理我的,这是我当前安装的列表(您不需要所有这些,但可能需要其中一些):
$ 酿造清单 autoconf gd jpeg pango rrdtool automake gettext libffi pidof snappy 开罗 glib libtool pixman wget cmake gnu-sed lua pkg-config xz coreutils gnuplot mysql protobuf expat intltool p7zip 阅读线
对于适用于您的 CDH3 版本的 Hue 版本,您可以从 CDH3 档案中选择正确的下载: http: //archive.cloudera.com/cdh/3/。
因此,对于您的 CDH3u2 版本,请下载并使用http://archive.cloudera.com/cdh/3/hue-1.2.0.0-cdh3u2.tar.gz,它带有 1.2.0 版本的 Hue 以及来自 master 的一些向后移植修复 CDH3u2 的编译。