Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # dev - Building Hadoop from source code


Copy link to this message
-
Re: Building Hadoop from source code
Mohammad Mustaqeem 2013-04-08, 15:11
Last lines are -

[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 33:26.460s
[INFO] Finished at: Tue Oct 08 20:37:45 IST 2013
[INFO] Final Memory: 28M/133M
[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/mustaqeem/hadoop-trunk/hadoop-common-project/hadoop-common/target/surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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

On Mon, Apr 8, 2013 at 8:38 PM, Mohammad Mustaqeem
<[EMAIL PROTECTED]>wrote:

> Please, tell what I am doing wrong??
> Whats the problem??
>
>
> On Mon, Apr 8, 2013 at 8:36 PM, Mohammad Mustaqeem <[EMAIL PROTECTED]
> > wrote:
>
>> Hi,
>>      I have followed all the steps of
>> http://wiki.apache.org/hadoop/HowToContribute
>> and run following command -
>>  <http://wiki.apache.org/hadoop/HowToContribute>"svn checkout
>> http://svn.apache.org/repos/asf/hadoop/common/trunk/ hadoop-trunk"
>> by this command I get the hadoop source code in "hadoop-trunk" directory
>> and then execute "cd hadoop-trunk"
>> Without changing anything I executed "mvn -e package" to build the binary
>> distribution but I get  error whose last few lines are -
>>
>> I am using Ubuntu 12.04 LTS.
>>
>> Running org.apache.hadoop.net.TestNetUtils
>> Tests run: 38, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 33.714
>> sec <<< FAILURE!
>> testNormalizeHostName(org.apache.hadoop.net.TestNetUtils)  Time elapsed:
>> 30029 sec  <<< FAILURE!
>> java.lang.AssertionError:
>> at org.junit.Assert.fail(Assert.java:91)
>>  at org.junit.Assert.assertTrue(Assert.java:43)
>> at org.junit.Assert.assertFalse(Assert.java:68)
>> at org.junit.Assert.assertFalse(Assert.java:79)
>>  at
>> org.apache.hadoop.net.TestNetUtils.testNormalizeHostName(TestNetUtils.java:617)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>  at java.lang.reflect.Method.invoke(Method.java:601)
>> at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>>  at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>> at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>>  at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>> at
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>>  at
>> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
>> at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
>>  at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>>  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>>  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>>  at
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
*With regards ---*
*Mohammad Mustaqeem*,
M.Tech (CSE)
MNNIT Allahabad
9026604270