Hadoop构建错误127

时间:2017-07-31 09:45:18

标签: java maven hadoop

我为我的覆盆子pi群集构建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

我尝试了几次,并在找到两个解决方法后尝试使用不同的配置。有人说,java路径对我来说是不正确的。第二个说我必须得到一个不同的maven版本,我已经安装了。我希望有一个人可以帮助我。

2 个答案:

答案 0 :(得分:0)

如果有人仍然遇到此问题,可能是由于" 命令行太长。问题,如mailing list所述。

建议的解决方案是将maven存储库路径$ User \ .m2 \ repository更改为{M2_HOME} \ conf \ setting.xml

中较短的路径

答案 1 :(得分:0)

由于"我遇到了同样的问题;命令行太长"并通过更改settings.xml中的maven m2位置来修复它。

function checkHeight(userHeight) {

  var rex = /^(\d+)'(\d+)(?:''|")$/;
  var match = rex.exec(userHeight);
  var feet, inch;

  if (match) {
    feet = parseInt(match[1], 10);
    inch = parseInt(match[2], 10);
    console.log("feet = " + feet + ", inches = " + inch);
  } else {
    console.log("Didn't match");
  }

};

checkHeight("5' 5\"")