ShifuML / shifu

An end-to-end machine learning and data mining framework on Hadoop
https://github.com/ShifuML/shifu/wiki
Apache License 2.0
251 stars 109 forks source link

Fixed bug java.lang.NullPointerException when generate pmml #688

Closed wuhaifengdhu closed 4 years ago

wuhaifengdhu commented 4 years ago

Bug: shifu export -t pmml 2019-12-10 10:20:05: INFO BasicModelProcessor [main] - ModelConfig Validation - OK 2019-12-10 10:20:05: INFO BasicModelProcessor [main] - Training Data Soure Location: HDFS 2019-12-10 10:20:05: INFO ModelConfig [main] - 'dataSet::categoricalColumnHashSeedConfFile' is not set and default categoricalColumnHashSeedConfFile: columns/categorical.hash.seed.conf is not found, no categorical hash seed files. 2019-12-10 10:20:05: WARN ModelConfig [main] - 'dataSet::hybridColumnNameFile' is not set and default hybridColumnNameFile: columns/hybrid.column.names is not found, no hybrid configs. 2019-12-10 10:20:05: INFO BasicModelProcessor [main] - Saving ColumnConfig... 2019-12-10 10:20:07: INFO ExportModelProcessor [main] - Start to generate pmmls/cam20_ref_driver17_shortwin_gbt0.pmml 2019-12-10 10:20:07: ERROR ShifuCLI [main] - Error in running, please check the stack, msg:java.lang.NullPointerException java.lang.NullPointerException at ml.shifu.shifu.core.pmml.PMMLTranslator.build(PMMLTranslator.java:120) at ml.shifu.shifu.core.processor.ExportModelProcessor.run(ExportModelProcessor.java:171) at ml.shifu.shifu.ShifuCLI.exportModel(ShifuCLI.java:612) at ml.shifu.shifu.ShifuCLI.main(ShifuCLI.java:377) Error! Please check the log file for more information.