Be compatible to ray 1.5.0 (#4387)
Be compatible to ray 1.5.0 (#4387)

* compatible to ray 1.5.0

* refine
intel-analytics/BigDL,yangw1234/BigDL,intel-analytics/BigDL,intel-analytics/BigDL,intel-analytics/BigDL,yangw1234/BigDL,yangw1234/BigDL,yangw1234/BigDL