简体   繁体   English

Hadoop构建错误127

[英]Hadoop build error 127

I get the following error building hadoop for my raspberry pi cluster 我为树莓派集群构建hadoop时遇到以下错误

failure goal org.codehaus.mojo:native-maven-plugin:1.0-alpha-7:javah (default) on project hadoop-common: error running javah command: error executing command line. exit code:127

I tried several times and also tried to use different configs after finding two workarounds. 我尝试了几次,并且在找到两个解决方法后也尝试使用不同的配置。 One said, that java path won't be correct what isnt the case for me. 有人说,java路径对我来说不是正确的。 Second said I have to get a different maven version, which I had already installed. 其次,我必须获得已经安装的其他Maven版本。 I hope someone can help me. 我希望有一个人可以帮助我。

In case someone is still having this problem, it is probably due to " The command line is too long. problem as pointed out in mailing list . 如果有人仍然有此问题,则可能是由于“ 邮件列表中指出的命令行太长。问题。

The suggested solution was to change the maven repository path $User\\.m2\\repository to a shorter one in {M2_HOME}\\conf\\setting.xml 建议的解决方案是将Maven存储库路径$ User \\ .m2 \\ repository更改为{M2_HOME} \\ conf \\ setting.xml中的较短路径。

由于“命令行太长”,我遇到了同样的问题,并通过更改settings.xml中的maven m2位置来解决了该问题。

<localRepository>c:\\.m2</localRepository>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM