hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serkan Taş <serkan_...@hotmail.com>
Subject Code generation error due to locale settings to tr
Date Sat, 05 Apr 2014 14:16:24 GMT


> Hi,
> 
> I am faced to a common problem of tr locale settings for java application while trying
to build dev environment according to http://wiki.apache.org/hadoop/EclipseEnvironment.
> 
> Here is the error :
> 
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile
(default-testCompile) on project hadoop-common: Compilation failure
> [ERROR] /Users/serkan/programlar/dev/hadooptest/hadoop-trunk/hadoop-common-project/hadoop-common/target/generated-test-sources/java/org/apache/hadoop/io/serializer/avro/AvroRecord.java:[10,244]
unmappable character for encoding UTF-8
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile
(default-testCompile) on project hadoop-common: Compilation failure
> /Users/serkan/programlar/dev/hadooptest/hadoop-trunk/hadoop-common-project/hadoop-common/target/generated-test-sources/java/org/apache/hadoop/io/serializer/avro/AvroRecord.java:[10,244]
unmappable character for encoding UTF-8
> 
> 
> I f i check the code i discovered the reason for error :
> 
>   public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"AvroRecord\",\"namespace\":\"org.apache.hadoop.io.serializer.avro\",\"fields\":[{\"name\":\"intField\",\"type\":\"Ýnt\"}]}");
> 
> As you can see, locale dependent capitalization of letter "i" turns in to "Ý".
> 
> May i report a bug ? 
> 
> 
> Note : I may fix this by changing locale to EN but not prefer.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message