hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Segel <michael_se...@hotmail.com>
Subject Re: Pi Estimator failing to print output after finishing the job sucessfully
Date Tue, 04 Sep 2012 16:36:39 GMT
You blew out the stack? 
Or rather your number was too 'big'/'long'? 


On Sep 4, 2012, at 11:10 AM, Gaurav Dasgupta <gdsayshi@gmail.com> wrote:

> Hi All,
>  
> I am running the Pi Estimator from hadoop-examples.jar in my 11 node CDH3u4 cluster.
>  
> Initially I ran the job for 10 maps and 1000000 samples per map and it ran fine and displayed
the execution time and the pi value in the console.
> Now again when I ran it for 88 maps and 1 trillion total samples (i.e., 11363636364 samples
per map), it executed the job sucessfully, but at end gave the following error and could not
display the "pi value" in the console:
>  
> java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable
decimal result.
>  at java.math.BigDecimal.divide(BigDecimal.java:1603)
>  at org.apache.hadoop.examples.PiEstimator.estimate(PiEstimator.java:313)
>  at org.apache.hadoop.examples.PiEstimator.run(PiEstimator.java:342)
>  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>  at org.apache.hadoop.examples.PiEstimator.main(PiEstimator.java:351)
>  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.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
>  at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
>  at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:64)
>  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.hadoop.util.RunJar.main(RunJar.java:197)
> Can anyone tell me where is it going wrong?
> Note: My Hadoop cluster (CDH3u4) contains all the necessary patches.
>  
> Thanks,
> Gaurav Dasgupta
>  
>  


Mime
View raw message