目前我正在尝试在Windows 7企业计算机上安装Hadoop 2.6.0。 我使用了以下指南 http://www.srccodes.com/p/article/38/build-install-configure-run-apache-hadoop-2.2.0-microsoft-windows-os
我已经通过安装正确版本的协议缓冲区修复了以前的一些问题。 但现在遇到了一个新问题。
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-ms-winutils) on
> project hadoop-common: Command execution failed. Process exited with
> an error: 1(Exit value: 1) -> [Help 1]
我搜索了互联网,发现可能是我的MSBuild造成了问题,但我检查了我的PATH并且它包含了到正确位置的MSBuild路径。我正在使用.Net Framework 4.0
我尝试运行“mvn clean install”,从测试中我得到了以下错误。
> ------------------------------------------------------------------------------- Test set:
> org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator
> ------------------------------------------------------------------------------- Tests run: 14, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 33.35
> sec <<< FAILURE! - in
> org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator
> testAuthenticationHttpClientPost[0](org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator)
> Time elapsed: 2.201 sec <<< ERROR!
> org.apache.http.client.ClientProtocolException: null
> at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:693)
> at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
> at org.apache.hadoop.security.authentication.client.AuthenticatorTestCase.doHttpClientRequest(AuthenticatorTestCase.java:265)
> at org.apache.hadoop.security.authentication.client.AuthenticatorTestCase._testAuthenticationHttpClient(AuthenticatorTestCase.java:291)
> at org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:160)
> at org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:157)
> at org.apache.hadoop.security.authentication.KerberosTestUtils$1.run(KerberosTestUtils.java:102)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at org.apache.hadoop.security.authentication.KerberosTestUtils.doAs(KerberosTestUtils.java:99)
> at org.apache.hadoop.security.authentication.KerberosTestUtils.doAsClient(KerberosTestUtils.java:115)
> at org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator.testAuthenticationHttpClientPost(TestKerberosAuthenticator.java:157)
>
> testAuthenticationHttpClientPost[1](org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator)
> Time elapsed: 1.914 sec <<< ERROR!
> org.apache.http.client.ClientProtocolException: null
> at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:693)
> at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
> at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
> at org.apache.hadoop.security.authentication.client.AuthenticatorTestCase.doHttpClientRequest(AuthenticatorTestCase.java:265)
> at org.apache.hadoop.security.authentication.client.AuthenticatorTestCase._testAuthenticationHttpClient(AuthenticatorTestCase.java:291)
> at org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:160)
> at org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:157)
> at org.apache.hadoop.security.authentication.KerberosTestUtils$1.run(KerberosTestUtils.java:102)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at org.apache.hadoop.security.authentication.KerberosTestUtils.doAs(KerberosTestUtils.java:99)
> at org.apache.hadoop.security.authentication.KerberosTestUtils.doAsClient(KerberosTestUtils.java:115)
> at org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator.testAuthenticationHttpClientPost(TestKerberosAuthenticator.java:157)
我再次尝试在互联网上找到有关此错误的信息,但我找不到解决方案。
您是否知道我可能缺少什么或如何解决此错误?
非常感谢。
丹尼尔
答案 0 :(得分:0)
当我尝试使用Win7构建时,我必须删除.java文件注释部分中的双**。不知道为什么,但由于某种原因,maven不喜欢这些。例如,在第693行附近的DefaultRequestDirector.java中检查这一点。如果第693行看起来在注释内,那就是问题所在。只需在评论开头将**更改为*。