gpt4 book ai didi

c++ - 在WSL上安装Apache Kudu

转载 作者:行者123 更新时间:2023-12-02 10:31:06 30 4
gpt4 key购买 nike

我正在尝试安装Apache Kudu并在WSL的Ubuntu发行版(18.04)上运行C++示例。我正在https://kudu.apache.org/docs/installation.html上按照Ubuntu的说明进行操作

一切运行顺利,直到我执行步骤6

make -j4

我收到以下错误
Exception in thread "main" java.util.zip.ZipException: error in opening zip file  
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.zip.ZipFile.<init>(ZipFile.java:169)
at org.gradle.wrapper.Install.unzip(Install.java:235)
at org.gradle.wrapper.Install.access$900(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:81)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:63)
CMakeFiles/init_gradle.dir/build.make:60: recipe for target '../../java/gradle/wrapper/gradle-wrapper.jar' failed
make[2]: *** [../../java/gradle/wrapper/gradle-wrapper.jar] Error 1
make[2]: *** Deleting file '../../java/gradle/wrapper/gradle-wrapper.jar'
CMakeFiles/Makefile2:1708: recipe for target 'CMakeFiles/init_gradle.dir/all' failed
make[1]: *** [CMakeFiles/init_gradle.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 5%] Built target kudu_util_pb_util_proto
[ 5%] Built target kudu_util_hash_proto
[ 6%] Built target hms_thrift
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

Image of error

有人知道导致错误的原因吗?

最佳答案

碰巧遇到了同样的情况。
构建hms时发生此异常。您可以通过执行以下操作找到详细的日志

cd <root_of_kudu>/java
./gradlew assemble
我遇到的问题是下载gradle的zip文件似乎不正确,因此我清理了 ~/.gradle/wrapper/dists/gradle-6.2.2-all/2k4hz1yffuhb6ob9prdg10tx/gradle-6.2.2-all.zip<root_of_kudu>/java/gradle/wrapper/gradle-wrapper.jar。并尝试再次调用 make -j4
此外,如果碰巧与我的网络相同,则可以手动下载gradle zip,方法是检查 <root_of_kudu>/java/gradlew的内容,curl所在的行会告诉您下载链接,请尝试通过良好的网络或代理进行下载然后将其放在您清理的第一条路径上,可能会起作用。

关于c++ - 在WSL上安装Apache Kudu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62270741/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com