From 8c16da8863a74dfa27381046a9849299364ab319 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Wed, 8 Mar 2023 19:00:10 +0800 Subject: [PATCH] [doc] Add note for rabit port. [skip ci] (#8879) --- doc/tutorials/dask.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/tutorials/dask.rst b/doc/tutorials/dask.rst index 87b2bf996..e35c0b24c 100644 --- a/doc/tutorials/dask.rst +++ b/doc/tutorials/dask.rst @@ -498,11 +498,15 @@ dask config is used: with Client(scheduler_file="sched.json") as client: reg = dxgb.DaskXGBRegressor() - # or we can specify the port too + # We can specify the port for XGBoost as well with dask.config.set({"xgboost.scheduler_address": "192.0.0.100:12345"}): reg = dxgb.DaskXGBRegressor() +Please note that XGBoost requires a different port than dask. By default, on a unix-like +system XGBoost uses the port 0 to find available ports, which may fail if a user is +running in a restricted docker environment. In this case, please open additional ports in +the container and specify it as in the above snippet. ************ IPv6 Support