Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 在Windows 7 Enterprise N上安装Hadoop时出现问题_Maven_Hadoop_Installation_Kerberos - Fatal编程技术网

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

Maven 在Windows 7 Enterprise N上安装Hadoop时出现问题,maven,hadoop,installation,kerberos,Maven,Hadoop,Installation,Kerberos,目前,我正在尝试在Windows7企业计算机上安装Hadoop 2.6.0。 我使用了以下指南 我已经通过安装正确版本的协议缓冲区修复了以前的一些问题。 但现在遇到了一个新问题 > [ERROR] Failed to execute goal > org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-ms-winutils) on > project hadoop-common: Command execution fai

目前,我正在尝试在Windows7企业计算机上安装Hadoop 2.6.0。 我使用了以下指南

我已经通过安装正确版本的协议缓冲区修复了以前的一些问题。 但现在遇到了一个新问题

> [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]
我搜索了internet,发现可能是我的MSBuild导致了问题,但我检查了我的路径,它包含到正确位置的MSBuild路径。我正在使用.NETFramework4.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)
-------------------------------------------------------------测试集:
>org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator
>-------------------------------------------------------------测试运行:14,失败:0,错误:2,跳过:0,经过的时间:33.35
>sec testAuthenticationHttpClientPost[0](org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator)
>运行时间:org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:693)上的2.201秒
>位于org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
>位于org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
>位于org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
>位于org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
>位于org.apache.hadoop.security.authentication.client.authenticationTestCase.doHttpClientRequest(authenticationTestCase.java:265)
>位于org.apache.hadoop.security.authentication.client.authenticationTestCase.\u testAuthenticationHttpClient(authenticationTestCase.java:291)
>位于org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:160)
>位于org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:157)
>位于org.apache.hadoop.security.authentication.KerberosTestUtils$1.run(KerberosTestUtils.java:102)
>位于java.security.AccessController.doPrivileged(本机方法)
>位于javax.security.auth.Subject.doAs(Subject.java:415)
>位于org.apache.hadoop.security.authentication.KerberosTestUtils.doAs(KerberosTestUtils.java:99)
>位于org.apache.hadoop.security.authentication.KerberosTestUtils.doAsClient(KerberosTestUtils.java:115)
>位于org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator.testAuthenticationHttpClientPost(TestKerberosAuthenticator.java:157)
> 
>testAuthenticationHttpClientPost[1](org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator)
>运行时间:org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:693)上的1.914秒
>位于org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
>位于org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
>位于org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
>位于org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
>位于org.apache.hadoop.security.authentication.client.authenticationTestCase.doHttpClientRequest(authenticationTestCase.java:265)
>位于org.apache.hadoop.security.authentication.client.authenticationTestCase.\u testAuthenticationHttpClient(authenticationTestCase.java:291)
>位于org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:160)
>位于org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator$4.call(TestKerberosAuthenticator.java:157)
>位于org.apache.hadoop.security.authentication.KerberosTestUtils$1.run(KerberosTestUtils.java:102)
>位于java.security.AccessController.doPrivileged(本机方法)
>位于javax.security.auth.Subject.doAs(Subject.java:415)
>位于org.apache.hadoop.security.authentication.KerberosTestUtils.doAs(KerberosTestUtils.java:99)
>位于org.apache.hadoop.security.authentication.KerberosTestUtils.doAsClient(KerberosTestUtils.java:115)
>位于org.apache.hadoop.security.authentication.client.TestKerberosAuthenticator.testAuthenticationHttpClientPost(TestKerberosAuthenticator.java:157)
我再次尝试在互联网上查找有关此错误的信息,但找不到解决方案

你知道我可能遗漏了什么,或者我如何解决这个错误吗

非常感谢


Daniel

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