0

我正在尝试构建 Hue,它似乎需要我缺少的 Thrift 二进制文件。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile 

(default-compile) on project hue-plugins: Compilation failure: Compilation failure:
[ERROR] /Users/kramachandran/Sandbox/hue/hue/desktop/libs/hadoop/java/src/main/java/org/apache/hadoop/thriftfs/DatanodePlugin.java:[32,29] cannot find symbol
[ERROR] symbol  : class BlockReader
[ERROR] location: package org.apache.hadoop.hdfs
[ERROR] /Users/kramachandran/Sandbox/hue/hue/desktop/libs/hadoop/java/src/main/java/org/apache/hadoop/thriftfs/DatanodePlugin.java:[33,39] cannot find symbol
[ERROR] symbol  : class RemoteBlockReader
[ERROR] location: class org.apache.hadoop.hdfs.DFSClient
[ERROR] /Users/kramachandran/Sandbox/hue/hue/desktop/libs/hadoop/java/src/main/java/org/apache/hadoop/thriftfs/DatanodePlugin.java:[91,10] cannot find symbol
[ERROR] symbol: class BlockReader
[ERROR] BlockReader reader = null;
[ERROR] /Users/kramachandran/Sandbox/hue/hue/desktop/libs/hadoop/java/src/main/java/org/apache/hadoop/thriftfs/DatanodePlugin.java:[95,21] cannot find symbol
[ERROR] symbol: variable RemoteBlockReader
[ERROR] reader = RemoteBlockReader.newBlockReader(getSocket(), block.path, block.blockId,

然而,没有关于色调和节俭如何相互作用的文档。具体来说,需要哪些版本的 thrift 二进制文件以及它们应该放在哪里。

4

1 回答 1

1

依赖项在hue pom.xml文件中

      <dependency>
        <groupId>org.apache.thrift</groupId>
        <artifactId>libthrift</artifactId>
        <version>0.5.0-cdh</version>
      </dependency>
      <dependency>
        <groupId>org.apache.thrift</groupId>
        <artifactId>libfb303</artifactId>
        <version>0.5.0-cdh</version>
      </dependency>
于 2011-12-24T13:21:05.020 回答