hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Kelpe <ake...@concurrentinc.com>
Subject Re: Running Contrail on hadoop
Date Tue, 03 Sep 2013 14:00:49 GMT
This is usually a String.format() problem, when the developer was
using an English locale and was not aware of the fact, that
String.format is locale dependent.

Try this:

export LANG=en_EN.UTF-8
<your hadoop command>

- André

On Tue, Sep 3, 2013 at 3:20 PM, Felipe Gutierrez
<felipe.o.gutierrez@gmail.com> wrote:
> Hi,
>
> I am trying to run Contrail on Hadoop and it starts ok, but after some time
> throws an error. Some java class can't convert a string to float because
> there is a comma.
>
> I think the problem is not at contrail code. Maybe the location of my
> timezone? Does anyone already passed through this?
>
> $ bin/hadoop jar contrail-1.0-SNAPSHOT.jar contrail.Contrail -asm assembly
> -k 25 -reads reads
> == Starting time 2013-09-03 10:08:59
> Preprocess reads:       2
> job_201309030936_0005 9 s  250 converted
> Build Initial:  4
>
> job_201309030936_0006 358 s  2814 nodes [250 (100,00%) good reads, 9000 bp]
>   Quick Merge:  java.lang.NumberFormatException: For input string: "1,00"
>         at
> sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1242)
>         at java.lang.Float.parseFloat(Float.java:439)
>         at contrail.Node.cov(Node.java:1096)
>         at contrail.Node.toNodeMsg(Node.java:664)
>         at contrail.QuickMerge$QuickMergeMapper.map(QuickMerge.java:69)
>         at contrail.QuickMerge$QuickMergeMapper.map(QuickMerge.java:47)
>         at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
>         at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:436)
>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:372)
>         at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:416)
>         at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1149)
>         at org.apache.hadoop.mapred.Child.main(Child.java:249)
>
>
>
> --
> --
> -- Felipe Oliveira Gutierrez
> -- Felipe.o.Gutierrez@gmail.com
> -- https://sites.google.com/site/lipe82/Home/diaadia



-- 
André Kelpe
andre@concurrentinc.com
http://concurrentinc.com

Mime
View raw message