Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Commit cc80946

Browse files
committed
spark3 off release
1 parent b499e07 commit cc80946

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
py4j==0.10.7.0
1+
py4j
22
mlflow==1.8.0
33
pyyaml
4-
mleap==0.15.0
4+
mleap==0.16.0
55
graphviz
66
requests
77
gorilla==0.3.0
@@ -10,7 +10,7 @@ pyspark-dist-explore==0.1.8
1010
numpy
1111
pandas
1212
scipy
13-
pyspark>=2.4.0,<=2.4.5
14-
h2o-pysparkling-2.4==3.28.1.2-1
13+
pyspark>=3.0.1
14+
h2o-pysparkling-3.0==3.32.0.4-1
1515
IPython
1616
cloudpickle==1.6.0
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
py4j
1+
py4j==0.10.7.0
22
mlflow==1.8.0
33
pyyaml
4-
mleap==0.16.0
4+
mleap==0.15.0
55
graphviz
66
requests
77
gorilla==0.3.0
@@ -10,7 +10,7 @@ pyspark-dist-explore==0.1.8
1010
numpy
1111
pandas
1212
scipy
13-
pyspark>=3.0.1
14-
h2o-pysparkling-3.0==3.32.0.4-1
13+
pyspark>=2.4.0,<=2.4.5
14+
h2o-pysparkling-2.4==3.28.1.2-1
1515
IPython
1616
cloudpickle==1.6.0

splicemachine/mlflow_support/mlflow_support.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@
6363
import requests
6464
import sklearn
6565
import yaml
66-
# from h2o.model.model_base import ModelBase as H2OModel TODO: For Spark3
67-
from h2o.estimators.estimator_base import ModelBase as H2OModel
6866
from pandas.core.frame import DataFrame as PandasDF
6967
from pyspark.ml.base import Model as SparkModel
7068
from pyspark.sql import DataFrame as SparkDF
@@ -78,6 +76,11 @@
7876
from splicemachine import SpliceMachineException
7977
from splicemachine.spark.context import PySpliceContext
8078

79+
try: # PySpark/H2O 3.X
80+
from h2o.model.model_base import ModelBase as H2OModel
81+
except: # PySpark/H2O 2.X
82+
from h2o.estimators.estimator_base import ModelBase as H2OModel
83+
8184
# For recording notebook history
8285
try:
8386
from IPython import get_ipython

0 commit comments

Comments
 (0)