3

以下のコマンドを使用して、windows で hadoop-2.6.0 用の Apache Tez (0.6.1 と 0.7.0 の両方のバージョン) をビルドしようとしています。

mvn clean package -Dhadoop.version=2.6.0 -DskipTests -Dmaven.javadoc.skip

しかし、私は例外を下回っています

[INFO]
[INFO] --- exec-maven-plugin:1.3.2:exec (Bower install) @ tez-ui ---bower FileSaver.js#24b303f49213b905ec9062b708f7cd43d56a5dde           ENOGIT git is not installed or not in the PATH
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] tez ................................................ SUCCESS [  0.924 s]
[INFO] tez-api ............................................ SUCCESS [ 11.585 s]
[INFO] tez-common ......................................... SUCCESS [  1.421 s]
[INFO] tez-runtime-internals .............................. SUCCESS [  2.029 s]
[INFO] tez-runtime-library ................................ SUCCESS [  4.751 s]
[INFO] tez-mapreduce ...................................... SUCCESS [  2.553 s]
[INFO] tez-examples ....................................... SUCCESS [  0.862 s]
[INFO] tez-dag ............................................ SUCCESS [  8.363 s]
[INFO] tez-tests .......................................... SUCCESS [  2.044 s]
[INFO] tez-ui ............................................. FAILURE [  3.105 s]
[INFO] tez-plugins ........................................ SKIPPED
[INFO] tez-yarn-timeline-history .......................... SKIPPED
[INFO] tez-yarn-timeline-history-with-acls ................ SKIPPED
[INFO] tez-mbeans-resource-calculator ..................... SKIPPED
[INFO] tez-tools .......................................... SKIPPED
[INFO] tez-dist ........................................... SKIPPED
[INFO] Tez ................................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.169 s
[INFO] Finished at: 2015-07-13T15:07:23+05:30
[INFO] Final Memory: 76M/1049M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (Bower install) on project tez-ui: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :tez-ui

これを解決するには?

4

5 に答える 5

3

エラーに基づいて、git をインストールする必要があるようです。

ENOGIT git がインストールされていないか、PATH にありません

また、これは他のエラーにも役立つ場合があります: https://cwiki.apache.org/confluence/display/TEZ/Build+errors+and+solutions

于 2015-07-18T17:30:36.243 に答える
1

これを見てください...これはあなたを助けるかもしれません。 理由: root として実行しているか、スーパーユーザー権限で実行しています。

ソリューション:

推奨: スーパーユーザー権限なしで実行するか、root 以外のユーザーとして実行します。

代替: root として続行する場合は、tez-ui/pom.xml の exec-maven-plugin の引数タグに --allow-root を追加します。

ありがとうございました。

于 2016-01-28T16:47:15.870 に答える
0

git、node、npmのインストールもうまくいきました。ビルドする前に、3つすべてをインストールして、mvnパッケージ-DskipTestsを実行してみてください。これはうまくいきます。

于 2016-07-27T17:48:40.177 に答える
0

hadoop_user が提案したように、最初にこのWeb サイトをチェックしてすべての修正を試みますが、1 つのコメントがあります。 ui/src/main/webapp/node_modules/

他のすべてを試した後、そのフォルダーを削除してみましたが、うまくいきました。

于 2015-12-29T23:05:55.610 に答える
0

git、ノード、npn をインストールします。これは私の場合はうまくいきました。

于 2016-05-30T10:24:19.037 に答える