dmlc / xgboost

Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
https://xgboost.readthedocs.io/en/stable/
Apache License 2.0
25.79k stars 8.69k forks source link

[jvm-packages] Allow control over path of extracted library #10302

Open oferfort opened 1 month ago

oferfort commented 1 month ago

In the jvm-package, the NativeLibLoader extracts the library from the jar to the java.io.tmpdir. We prefer to be able to control that path for the xgboost library independently. Thanks!

trivialfis commented 1 month ago

Hi, could you please share more details on your use case, and what type of paths would you use?

oferfort commented 1 month ago

We are running in an environment where the default tmp folder has limited permissions. We would like to be able to control the folder the lib is extracted to, so that it can be managed, independently. Regards

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jiaming Yuan @.> Sent: Thursday, May 30, 2024 3:08:30 PM To: dmlc/xgboost @.> Cc: oferfort @.>; Author @.> Subject: Re: [dmlc/xgboost] [jvm-packages] Allow control over path of extracted library (Issue #10302)

Hi, could you please share more details on your use case, and what type of paths would you use?

— Reply to this email directly, view it on GitHubhttps://github.com/dmlc/xgboost/issues/10302#issuecomment-2139414242, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AACNEJLUYLCYSWLWDU66KYTZE4JD5AVCNFSM6AAAAABH7SEOZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZGQYTIMRUGI. You are receiving this because you authored the thread.Message ID: @.***>

wbo4958 commented 3 weeks ago

probably change "java.io.tmpdir" accordingly? @oferfort

oferfort commented 3 weeks ago

There are other applications on the same JVM so we can't do that

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Bobby Wang @.> Sent: Friday, June 14, 2024 3:04:51 PM To: dmlc/xgboost @.> Cc: oferfort @.>; Mention @.> Subject: Re: [dmlc/xgboost] [jvm-packages] Allow control over path of extracted library (Issue #10302)

probably change "java.io.tmpdir" accordingly? @oferforthttps://github.com/oferfort

— Reply to this email directly, view it on GitHubhttps://github.com/dmlc/xgboost/issues/10302#issuecomment-2167878152, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AACNEJP37EL4ROTWUM3WO6TZHLL6HAVCNFSM6AAAAABH7SEOZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRXHA3TQMJVGI. You are receiving this because you were mentioned.Message ID: @.***>

wbo4958 commented 2 weeks ago

Yeah, it's quite doable, but recently I am working on https://github.com/dmlc/xgboost/issues/10415. Will do that if no one picks this issue.