2023年8月1日发(作者:)
win10编译Hadoop3.0.2源码遇到的坑⽬录背景周五尝试⽤hive建表时,出现了问题,需要修改hadoop源码,⽽后编译。但是在编译时,遇到了不少问题,周⽇耗时⼀天,排查完毕,编译通过所有资源⽹盘链接见最后,请按需使⽤1、Failed to execute goal :hadoop-maven-plugins:3.0.2:protoc(compile-protoc) on project hadoop-common:ecutionException: 'protoc --version' did not return aversion
解决⽅法:安装protobuf2.5-win1、下载zip压缩包2、解压压缩包,然后把解压路径添加到环境变量path⾥
2、 Failed to execute goal :native-maven-plugin:1.0-alpha-8:javah(default) on project hadoop-common: Error running javah command: Error executingcommand line. Exit code:1 -> [Help 1]cleExecutionException: Failed to execute :native-maven-plugin:1.0-alpha-8:javah (default) on projecthadoop-common: Error running javah command
javah出现了问题,解决⽅法:修改源码⽬录下⽂件,把所有的javahPath标签内容改成javah的绝对路径
3、Cannot run program "msbuild" (in directory "D:hadoop-3.0.2-srchadoop-common-projecthadoop-common"): CreateProcess error=2, 系统找不到指定的⽂件。
解决⽅法:安装VS Code,然后把msbuild可执⾏⽂件的绝对路径添加到path⾥(C:Program Files (x86)MSBuild14.0Bin)
4、 Failed to execute goal s:maven-antrun-plugin:1.7:run(make) on project hadoop-hdfs-native-client: An Ant BuildException has occured:exec returned: 1[ERROR] around Ant part ...
cmake和MsBuild(MSB1009找不到)莫名报错,暂时在中,屏蔽它们的错误
5、 Could not resolve dependencies for project :hadoop-resourceestimator:jar:3.0.2: Could not transfer artifact :ojalgo:jar:43.0from/to nexus-aliyun (/nexus/content/groups/public): GETrequest of: org/ojalgo/ojalgo/43.0/ from nexus-aliyun failed:Connection reset
解决⽅法:把下载下来,复制到本地maven仓库⽂件夹的orgojalgoojalgojar43.0⽬录下
编译结果资源下载链接包括hadoop3.0.2源码压缩包,,,,,,
发布者:admin,转转请注明出处:http://www.yc00.com/xiaochengxu/1690875461a452492.html
评论列表(0条)