hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shani Ranasinghe <shanir...@gmail.com>
Subject Re: hadoop 2.2.0 - test failure in released src pack
Date Wed, 05 Feb 2014 11:27:57 GMT
Hi,

However I encountered the following issue. Appreciate any help.

Results :

Failed tests:
testLocalHostNameForNullOrWild(org.apache.hadoop.security.TestSecurityUtil):
expected:<hdfs/shani-[ThinkPad-T]530@REALM> but
was:<hdfs/shani-[thinkpad-t]530@REALM>

Tests run: 2015, Failures: 1, Errors: 0, Skipped: 64

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................ SUCCESS [1.147s]
[INFO] Apache Hadoop Project POM ......................... SUCCESS [0.314s]
[INFO] Apache Hadoop Annotations ......................... SUCCESS [1.200s]
[INFO] Apache Hadoop Project Dist POM .................... SUCCESS [0.444s]
[INFO] Apache Hadoop Assemblies .......................... SUCCESS [0.241s]
[INFO] Apache Hadoop Maven Plugins ....................... SUCCESS [3.726s]
[INFO] Apache Hadoop Auth ................................ SUCCESS [4.321s]
[INFO] Apache Hadoop Auth Examples ....................... SUCCESS [0.540s]
[INFO] Apache Hadoop Common .............................. FAILURE
[11:47.163s]
[INFO] Apache Hadoop NFS ................................. SKIPPED
[INFO] Apache Hadoop Common Project ...................... SKIPPED
[INFO] Apache Hadoop HDFS ................................ SKIPPED
[INFO] Apache Hadoop HttpFS .............................. SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED
[INFO] Apache Hadoop HDFS-NFS ............................ SKIPPED
[INFO] Apache Hadoop HDFS Project ........................ SKIPPED
[INFO] hadoop-yarn ....................................... SKIPPED
[INFO] hadoop-yarn-api ................................... SKIPPED
[INFO] hadoop-yarn-common ................................ SKIPPED
[INFO] hadoop-yarn-server ................................ SKIPPED
[INFO] hadoop-yarn-server-common ......................... SKIPPED
[INFO] hadoop-yarn-server-nodemanager .................... SKIPPED
[INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED
[INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED
[INFO] hadoop-yarn-server-tests .......................... SKIPPED
[INFO] hadoop-yarn-client ................................ SKIPPED
[INFO] hadoop-yarn-applications .......................... SKIPPED
[INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED
[INFO] hadoop-mapreduce-client ........................... SKIPPED
[INFO] hadoop-mapreduce-client-core ...................... SKIPPED
[INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SKIPPED
[INFO] hadoop-yarn-site .................................. SKIPPED
[INFO] hadoop-yarn-project ............................... SKIPPED
[INFO] hadoop-mapreduce-client-common .................... SKIPPED
[INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED
[INFO] hadoop-mapreduce-client-app ....................... SKIPPED
[INFO] hadoop-mapreduce-client-hs ........................ SKIPPED
[INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED
[INFO] hadoop-mapreduce-client-hs-plugins ................ SKIPPED
[INFO] Apache Hadoop MapReduce Examples .................. SKIPPED
[INFO] hadoop-mapreduce .................................. SKIPPED
[INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED
[INFO] Apache Hadoop Distributed Copy .................... SKIPPED
[INFO] Apache Hadoop Archives ............................ SKIPPED
[INFO] Apache Hadoop Rumen ............................... SKIPPED
[INFO] Apache Hadoop Gridmix ............................. SKIPPED
[INFO] Apache Hadoop Data Join ........................... SKIPPED
[INFO] Apache Hadoop Extras .............................. SKIPPED
[INFO] Apache Hadoop Pipes ............................... SKIPPED
[INFO] Apache Hadoop Tools Dist .......................... SKIPPED
[INFO] Apache Hadoop Tools ............................... SKIPPED
[INFO] Apache Hadoop Distribution ........................ SKIPPED
[INFO] Apache Hadoop Client .............................. SKIPPED
[INFO] Apache Hadoop Mini-Cluster ........................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 12:01.394s
[INFO] Finished at: Wed Feb 05 15:43:09 IST 2014
[INFO] Final Memory: 45M/803M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.12.3:test (default-test)
on project hadoop-common: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/shani/sranasinghe/POC/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-surefire-plugin:2.12.3:test
(default-test) on project hadoop-common: There are test failures.

Please refer to
/home/shani/sranasinghe/POC/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/surefire-reports
for the individual test results.
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test
failures.

Please refer to
/home/shani/sranasinghe/POC/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/surefire-reports
for the individual test results.
    at
org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:83)
    at
org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:177)
    at
org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:151)
    at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:650)
    at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:586)
    at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more



On Wed, Feb 5, 2014 at 4:55 PM, Shani Ranasinghe <shanira14@gmail.com>wrote:

> Hi,
>
> I got it working after modifying the pom file as explained in
> https://issues.apache.org/jira/secure/attachment/12614482/HADOOP-10110.patch
> .
>
>
> On Wed, Feb 5, 2014 at 4:18 PM, Shani Ranasinghe <shanira14@gmail.com>wrote:
>
>> Hi,
>>
>>  I am trying to run the src downloaded from
>> http://archive.apache.org/dist/hadoop/core/hadoop-2.2.0/ for hadoop
>> 2.2.0. I encounter the following test failure when a maven build is
>> triggered with tests. However, builds fine without tests.
>>
>> Any idea on how to resolve this?
>>
>> Failed tests:
>> testLocalHostNameForNullOrWild(org.apache.hadoop.security.TestSecurityUtil):
>> expected:<hdfs/shani-[ThinkPad-T]530@REALM> but
>> was:<hdfs/shani-[thinkpad-t]530@REALM>
>>
>> Tests run: 2015, Failures: 1, Errors: 0, Skipped: 64
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Apache Hadoop Main ................................ SUCCESS
>> [1.147s]
>> [INFO] Apache Hadoop Project POM ......................... SUCCESS
>> [0.314s]
>> [INFO] Apache Hadoop Annotations ......................... SUCCESS
>> [1.200s]
>> [INFO] Apache Hadoop Project Dist POM .................... SUCCESS
>> [0.444s]
>> [INFO] Apache Hadoop Assemblies .......................... SUCCESS
>> [0.241s]
>> [INFO] Apache Hadoop Maven Plugins ....................... SUCCESS
>> [3.726s]
>> [INFO] Apache Hadoop Auth ................................ SUCCESS
>> [4.321s]
>> [INFO] Apache Hadoop Auth Examples ....................... SUCCESS
>> [0.540s]
>> [INFO] Apache Hadoop Common .............................. FAILURE
>> [11:47.163s]
>> [INFO] Apache Hadoop NFS ................................. SKIPPED
>> [INFO] Apache Hadoop Common Project ...................... SKIPPED
>> [INFO] Apache Hadoop HDFS ................................ SKIPPED
>> [INFO] Apache Hadoop HttpFS .............................. SKIPPED
>> [INFO] Apache Hadoop HDFS BookKeeper Journal ............. SKIPPED
>> [INFO] Apache Hadoop HDFS-NFS ............................ SKIPPED
>> [INFO] Apache Hadoop HDFS Project ........................ SKIPPED
>> [INFO] hadoop-yarn ....................................... SKIPPED
>> [INFO] hadoop-yarn-api ................................... SKIPPED
>> [INFO] hadoop-yarn-common ................................ SKIPPED
>> [INFO] hadoop-yarn-server ................................ SKIPPED
>> [INFO] hadoop-yarn-server-common ......................... SKIPPED
>> [INFO] hadoop-yarn-server-nodemanager .................... SKIPPED
>> [INFO] hadoop-yarn-server-web-proxy ...................... SKIPPED
>> [INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED
>> [INFO] hadoop-yarn-server-tests .......................... SKIPPED
>> [INFO] hadoop-yarn-client ................................ SKIPPED
>> [INFO] hadoop-yarn-applications .......................... SKIPPED
>> [INFO] hadoop-yarn-applications-distributedshell ......... SKIPPED
>> [INFO] hadoop-mapreduce-client ........................... SKIPPED
>> [INFO] hadoop-mapreduce-client-core ...................... SKIPPED
>> [INFO] hadoop-yarn-applications-unmanaged-am-launcher .... SKIPPED
>> [INFO] hadoop-yarn-site .................................. SKIPPED
>> [INFO] hadoop-yarn-project ............................... SKIPPED
>> [INFO] hadoop-mapreduce-client-common .................... SKIPPED
>> [INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED
>> [INFO] hadoop-mapreduce-client-app ....................... SKIPPED
>> [INFO] hadoop-mapreduce-client-hs ........................ SKIPPED
>> [INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED
>> [INFO] hadoop-mapreduce-client-hs-plugins ................ SKIPPED
>> [INFO] Apache Hadoop MapReduce Examples .................. SKIPPED
>> [INFO] hadoop-mapreduce .................................. SKIPPED
>> [INFO] Apache Hadoop MapReduce Streaming ................. SKIPPED
>> [INFO] Apache Hadoop Distributed Copy .................... SKIPPED
>> [INFO] Apache Hadoop Archives ............................ SKIPPED
>> [INFO] Apache Hadoop Rumen ............................... SKIPPED
>> [INFO] Apache Hadoop Gridmix ............................. SKIPPED
>> [INFO] Apache Hadoop Data Join ........................... SKIPPED
>> [INFO] Apache Hadoop Extras .............................. SKIPPED
>> [INFO] Apache Hadoop Pipes ............................... SKIPPED
>> [INFO] Apache Hadoop Tools Dist .......................... SKIPPED
>> [INFO] Apache Hadoop Tools ............................... SKIPPED
>> [INFO] Apache Hadoop Distribution ........................ SKIPPED
>> [INFO] Apache Hadoop Client .............................. SKIPPED
>> [INFO] Apache Hadoop Mini-Cluster ........................ SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 12:01.394s
>> [INFO] Finished at: Wed Feb 05 15:43:09 IST 2014
>> [INFO] Final Memory: 45M/803M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.3:test (default-test)
>> on project hadoop-common: There are test failures.
>> [ERROR]
>> [ERROR] Please refer to
>> /home/shani/sranasinghe/POC/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/surefire-reports
>> for the individual test results.
>> [ERROR] -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.apache.maven.plugins:maven-surefire-plugin:2.12.3:test
>> (default-test) on project hadoop-common: There are test failures.
>>
>> Please refer to
>> /home/shani/sranasinghe/POC/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/surefire-reports
>> for the individual test results.
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>     at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>     at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>     at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>     at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoFailureException: There are test
>> failures.
>>
>> Please refer to
>> /home/shani/sranasinghe/POC/hadoop-2.2.0-src/hadoop-common-project/hadoop-common/target/surefire-reports
>> for the individual test results.
>>     at
>> org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:83)
>>     at
>> org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:177)
>>     at
>> org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:151)
>>     at
>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:650)
>>     at
>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:586)
>>     at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>     ... 19 more
>> [ERROR]
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn <goals> -rf :hadoop-common
>>
>>
>> Regards,
>> Shani.
>>
>>
>

Mime
View raw message