gpt4 book ai didi

maven - 在Windows 7 Enterprise N上安装Hadoop时出现问题

转载 作者:行者123 更新时间:2023-12-02 21:40:44 25 4
gpt4 key购买 nike

目前,我正在尝试在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

我已经通过安装正确版本的Protocol Buffer解决了以前的一些问题。
但是现在遇到了一个新问题。

> [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全新安装”,并且从测试中得到以下错误。
> ------------------------------------------------------------------------------- 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)

我再次尝试在Internet上找到有关此错误的信息,但找不到解决方案。

您是否知道我可能会缺少什么或如何解决此错误?

非常感谢。

丹尼尔

最佳答案

当我尝试使用Win7进行构建时,必须删除.java文件注释部分中的双**。不知道为什么,但是出于某种原因,maven不喜欢这些。例如,在第693行附近的DefaultRequestDirector.java中进行检查。如果第693行似乎出现在注释中,那就是问题所在。只需在评论开始处将**更改为*。

关于maven - 在Windows 7 Enterprise N上安装Hadoop时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28942970/

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