如何在 Mac OS X Lion 上安装 Cloudera Hue?

发布于 2024-12-31 21:53:17 字数 2496 浏览 1 评论 0原文

有人试过这个吗?谷歌发现了一片空白,到目前为止这是一个艰巨的过程(我对制作、蚂蚁等还很陌生)。

下载大量依赖项后,坦率地使用了一些不明智的“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.

我使用的是 Mac OS X 10.7.2 (Lion) 并运行 Hadoop CDH3 (hadoop-0.20.2-cdh3u2)、Hue 1.2.0。

任何帮助将不胜感激 - 提前非常感谢。

Has anyone tried this? Google turns up a complete blank and it's been an arduous process so far (I'm pretty new to make, ant, etc).

After downloading a multitude of dependencies, some frankly unwise use of 'ln -s' and copious amounts of 'sudo'...I finally have hit an error I can't get past.

$ 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.

I'm on Mac OS X 10.7.2 (Lion) and running Hadoop CDH3 (hadoop-0.20.2-cdh3u2), Hue 1.2.0.

Any assistance would be much appreciated - many thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

他是夢罘是命 2025-01-07 21:53:17

您尝试编译的 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

当然,您需要一些依赖项才能成功编译所有组件。我使用 Homebrew 来管理我的,​​这是我当前安装的列表(您不需要所有这些,但可能需要其中一些):

$ brew list
autoconf    gd      jpeg        pango       rrdtool
automake    gettext     libffi      pidof       snappy
cairo       glib        libtool     pixman      wget
cmake       gnu-sed     lua     pkg-config  xz
coreutils   gnuplot     mysql       protobuf
expat       intltool    p7zip       readline

对于与您的 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 以及一些从修复 CDH3u2 编译的 master 向后移植。

The Hue release download you're trying to compile, works only until CDH3u1 onwards, after which CDH3 had some internal API method changes, over some methods that Hue depends on.

The following works for me, to compile Hue 1.2.0 against CDH3u1:

$ 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

You'd of course need some dependencies to compile all components successfully. I use Homebrew to manage mine, and this is my currently installed list (you do not need all of these, but may need some of these):

$ brew list
autoconf    gd      jpeg        pango       rrdtool
automake    gettext     libffi      pidof       snappy
cairo       glib        libtool     pixman      wget
cmake       gnu-sed     lua     pkg-config  xz
coreutils   gnuplot     mysql       protobuf
expat       intltool    p7zip       readline

For a release of Hue that works with your CDH3 version, you can pick the right download from the CDH3 archives: http://archive.cloudera.com/cdh/3/.

So, for your CDH3u2 version, download and use http://archive.cloudera.com/cdh/3/hue-1.2.0.0-cdh3u2.tar.gz which carries 1.2.0 version of Hue with some backports on it from master that fix compilation for CDH3u2.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文