It cause by the Chinese garbled true! I download the Sandbox_HDP_2.2.4.2_VMWare.ova from hortonworks.com<http://hortonworks.com> By default the /etc/sysconfig/i18n is:
LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16" I execute the command: yum groupinstall chinese-support and change the i18n config to : LANG="en_US.UTF-8" SUPPORTED="zh_CN.UTF-8:zh_CN:zh" SYSFONT="latarcyrheb-sun16" It works! Thanks hongbin! 在 2016年1月25日,17:31,hongbin ma <[email protected]<mailto:[email protected]>> 写道: interesting,, it's also be a lesson to us all. can you define "VMWare not support Chinese" and why java the UT (actually a java program) cannot process the file? On Mon, Jan 25, 2016 at 5:18 PM, 王晓雨 <[email protected]<mailto:[email protected]>> wrote: It is cause by My VMWare not support Chinese…. Chinese garbled cause the exception! I will try to make the VM work! 在 2016年1月25日,16:17,Xiaoyu Wang <[email protected]<mailto:[email protected]>> 写道: I see in examples/test_case_data/localmeta/data/flatten_data_for_ii.csv file has Chinese garbled! I copy the code from local to sandbox VMWare machine! and in local it is good. I will have a try to convert the file encoding. 在 2016年1月25日,15:51,Xiaoyu Wang <[email protected]<mailto:[email protected]>> 写道: The same error when run in sandbox KYLIN_HOME: L4J [2016-01-25 07:49:01,566][ERROR][org.apache.kylin.dict.TrieDictionary] - Not a valid value: ?? Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.585 sec <<< FAILURE! - in org.apache.kylin.invertedindex.InvertedIndexLocalTest testCodec(org.apache.kylin.invertedindex.InvertedIndexLocalTest) Time elapsed: 0.727 sec <<< ERROR! java.lang.IllegalArgumentException: Value not exists! at org.apache.kylin.common.util.Dictionary.getIdFromValueBytes(Dictionary.java:161) at org.apache.kylin.dict.TrieDictionary.getIdFromValueImpl(TrieDictionary.java:158) at org.apache.kylin.common.util.Dictionary.getIdFromValue(Dictionary.java:97) at org.apache.kylin.common.util.Dictionary.getIdFromValue(Dictionary.java:77) at org.apache.kylin.invertedindex.index.TableRecord.setValueString(TableRecord.java:116) at org.apache.kylin.invertedindex.InvertedIndexLocalTest.loadRecordsSorted(InvertedIndexLocalTest.java:187) at org.apache.kylin.invertedindex.InvertedIndexLocalTest.testCodec(InvertedIndexLocalTest.java:133) Results : Tests in error: InvertedIndexLocalTest.testCodec:133->loadRecordsSorted:187 ? IllegalArgument ... Tests run: 2, Failures: 0, Errors: 1, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Kylin:HadoopOLAPEngine ............................. SUCCESS [ 0.564 s] [INFO] Kylin:AtopCalcite .................................. SUCCESS [ 0.749 s] [INFO] Kylin:Core-Common .................................. SUCCESS [ 0.982 s] [INFO] Kylin:Core-Metadata ................................ SUCCESS [ 0.382 s] [INFO] Kylin:Core-Dictionary .............................. SUCCESS [ 0.218 s] [INFO] Kylin:Core-Cube .................................... SUCCESS [ 0.310 s] [INFO] Kylin:Core-Job ..................................... SUCCESS [ 0.490 s] [INFO] Kylin:Core-Storage ................................. SUCCESS [ 0.394 s] [INFO] Kylin:InvertedIndex ................................ FAILURE [ 6.698 s] [INFO] Kylin:Engine-MR .................................... SKIPPED [INFO] Kylin:Engine-Streaming ............................. SKIPPED [INFO] Kylin:Storage-HBase ................................ SKIPPED But I run the InvertedIndexLocalTest UT in local machine is ok. 在 2016年1月25日,15:45,hongbin ma <[email protected]<mailto:[email protected]>> 写道: or maybe you should try this on sandbox's KYLIN_HOME: mvn test -Dtest=org.apache.kylin.invertedindex.InvertedIndexLocalTest -DfailIfNoTests=false -- Regards, *Bin Mahone | 马洪宾* Apache Kylin: http://kylin.io Github: https://github.com/binmahone
