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

Switch to Plain View
MapReduce >> mail # dev >> trying to run streaming test with MR1 MiniMRCluster fails


Copy link to this message
-
trying to run streaming test with MR1 MiniMRCluster fails
I'm trying to mavenize streaming and I'm getting the following error in all
testcases that try to start MiniMRCluster.

I'm wondering if it is related to some missing configuration.

Any clue?

Thanks.

Alejandro

testCommandLine(org.apache.hadoop.streaming.TestFileArgs)  Time elapsed:
14.69 sec  <<< ERROR!
java.lang.RuntimeException: java.net.BindException: Problem binding to
[dontknow.local/192.168.2.102:0] java.net.BindException: Can't assign
requested address; For more details see:
http://wiki.apache.org/hadoop/BindException
 at
org.apache.hadoop.mapred.MiniMRCluster.waitUntilIdle(MiniMRCluster.java:336)
at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:547)
 at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:484)
at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:476)
 at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:468)
at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:460)
 at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:450)
at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:440)
 at org.apache.hadoop.mapred.MiniMRCluster.<init>(MiniMRCluster.java:431)
at org.apache.hadoop.streaming.TestFileArgs.<init>(TestFileArgs.java:59)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 at
org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:202)
at
org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:251)
 at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:248)
 at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
 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.runners.ParentRunner.run(ParentRunner.java:236)
 at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
 at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
 at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
 at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:78)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
Caused by: java.net.BindException: Problem binding to [dontknow.local/
192.168.2.102:0] java.net.BindException: Can't assign requested address; For
more details see:  http://wiki.apache.org/hadoop/BindException
 at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:573)
at org.apache.hadoop.ipc.Client.call(Client.java:1089)
 at
org.apache.hadoop.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:244)
at $Proxy17.getClusterMetrics(Unknown Source)
 at org.apache.hadoop.mapreduce.Cluster.getClusterStatus(Cluster.java:203)
at org.apache.hadoop.mapred.JobClient.getClusterStatus(JobClient.java:709)
 at
org.apache.hadoop.mapred.MiniMRCluster.waitUntilIdle(MiniMRCluster.java:323)