h2oai / h2o-3

H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
http://h2o.ai
Apache License 2.0
6.81k stars 1.99k forks source link

h2o-genmodel xgboost error on IBM Java #12650

Open exalate-issue-sync[bot] opened 1 year ago

exalate-issue-sync[bot] commented 1 year ago

The following error occurs on IBM Java {{ 2018-07-24 04:56:29 ERROR NativeLibLoader:211 - usr_paths 2018-07-24 04:56:29 ERROR DMatrix:36 - Failed to load native library java.io.IOException: Failed to get field handle to set library path at ml.dmlc.xgboost4j.java.NativeLibLoader.addNativeDir(NativeLibLoader.java:212) at ml.dmlc.xgboost4j.java.NativeLibLoader.initXGBoost(NativeLibLoader.java:42) at ml.dmlc.xgboost4j.java.XGBoostJNI.(XGBoostJNI.java:34) at ml.dmlc.xgboost4j.java.Booster.init(Booster.java:462) at ml.dmlc.xgboost4j.java.Booster.(Booster.java:47) at ml.dmlc.xgboost4j.java.Booster.loadModel(Booster.java:85)}}

Java Version {{root@0e8314654430:/app/libertyprofile# java -version java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr3-20160428_01(SR3)) IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20160427_301573 (JIT enabled, AOT enabled) J9VM - R28_Java8_SR3_20160427_1620_B301573 JIT - tr.r14.java.green_20160329_114288 GC - R28_Java8_SR3_20160427_1620_B301573_CMPRSS J9CL - 20160427_301573) JCL - 20160421_01 based on Oracle jdk8u91-b14}}

I think the issue is due we are using sun spefix field:

https://github.com/dmlc/xgboost/blob/master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/NativeLibLoader.java#L168

hasithjp commented 1 year ago

JIRA Issue Migration Info

Jira Issue: PUBDEV-5796 Assignee: New H2O Bugs Reporter: Jorge Hernandez Villapol State: Open Fix Version: N/A Attachments: N/A Development PRs: N/A