diff --git a/apps/model-inference-examples/recommendation-inference/pom.xml b/apps/model-inference-examples/recommendation-inference/pom.xml
index 4cdbb0ed5c0..0f5f1fa434e 100644
--- a/apps/model-inference-examples/recommendation-inference/pom.xml
+++ b/apps/model-inference-examples/recommendation-inference/pom.xml
@@ -11,7 +11,7 @@
simple example of ncf recommender inference
2.4.3
- 0.12.1
+ 0.12.2
0.10.0-SNAPSHOT
diff --git a/docker/hyperzoo/Dockerfile b/docker/hyperzoo/Dockerfile
index 98c19968aef..b08f8362436 100644
--- a/docker/hyperzoo/Dockerfile
+++ b/docker/hyperzoo/Dockerfile
@@ -3,7 +3,7 @@ FROM ubuntu:18.04
MAINTAINER The Analytics-Zoo Authors https://github.com/intel-analytics/analytics-zoo
ARG ANALYTICS_ZOO_VERSION=0.10.0-SNAPSHOT
-ARG BIGDL_VERSION=0.12.1
+ARG BIGDL_VERSION=0.12.2
ARG SPARK_VERSION=2.4.3
ARG FLINK_VERSION=1.10.0
ARG JDK_VERSION=8u192
diff --git a/docker/zoo/Dockerfile b/docker/zoo/Dockerfile
index 5d061696ae6..cdfab1951ec 100644
--- a/docker/zoo/Dockerfile
+++ b/docker/zoo/Dockerfile
@@ -21,7 +21,7 @@ MAINTAINER The Analytics-Zoo Authors https://github.com/intel-analytics/analytic
WORKDIR /opt/work
ARG ANALYTICS_ZOO_VERSION=0.10.0-SNAPSHOT
-ARG BIGDL_VERSION=0.12.1
+ARG BIGDL_VERSION=0.12.2
ARG SPARK_VERSION=2.4.3
ARG RUNTIME_SPARK_MASTER=local[4]
ARG RUNTIME_DRIVER_CORES=4
diff --git a/docs/docs/DockerUserGuide/index.md b/docs/docs/DockerUserGuide/index.md
index f272363989c..1a7b0f42ce6 100644
--- a/docs/docs/DockerUserGuide/index.md
+++ b/docs/docs/DockerUserGuide/index.md
@@ -248,10 +248,10 @@ sudo docker build \
```
sudo docker build \
- --build-arg ANALYTICS_ZOO_VERSION=0.7.0 \
+ --build-arg ANALYTICS_ZOO_VERSION=0.9.0 \
--build-arg BIGDL_VERSION=0.12.1 \
--build-arg SPARK_VERSION=2.4.3 \
- --rm -t intelanalytics/analytics-zoo:0.7.0-bigdl_0.10.0-spark_2.4.3 .
+ --rm -t intelanalytics/analytics-zoo:0.9.0-bigdl_0.12.1-spark_2.4.3 .
```
---
diff --git a/docs/docs/release-download.md b/docs/docs/release-download.md
index 24ede748151..ff6076e413c 100644
--- a/docs/docs/release-download.md
+++ b/docs/docs/release-download.md
@@ -1,12 +1,12 @@
## **Release 0.10.0 nightly build**
-| | BigDL 0.12.1 |
+| | BigDL 0.12.2 |
| ------------- | --------- |
-| Spark 2.1.1 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.1-spark_2.1.1/0.10.0-SNAPSHOT/)|
-| Spark 2.2.1 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.1-spark_2.2.1/0.10.0-SNAPSHOT/)|
-| Spark 2.3.1 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.1-spark_2.3.1/0.10.0-SNAPSHOT/)|
-| Spark 2.4.3 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.1-spark_2.4.3/0.10.0-SNAPSHOT/)|
-| Spark 3.0.0 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.1-spark_3.0.0/0.10.0-SNAPSHOT/)|
+| Spark 2.1.1 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.2-spark_2.1.1/0.10.0-SNAPSHOT/)|
+| Spark 2.2.1 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.2-spark_2.2.1/0.10.0-SNAPSHOT/)|
+| Spark 2.3.1 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.2-spark_2.3.1/0.10.0-SNAPSHOT/)|
+| Spark 2.4.3 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.2-spark_2.4.3/0.10.0-SNAPSHOT/)|
+| Spark 3.0.0 | [download](https://oss.sonatype.org/content/repositories/snapshots/com/intel/analytics/zoo/analytics-zoo-bigdl_0.12.2-spark_3.0.0/0.10.0-SNAPSHOT/)|
---
## **Release 0.9.0**
diff --git a/docs/readthedocs/source/doc/release.md b/docs/readthedocs/source/doc/release.md
index d2b6cd667a5..bf24d1d020c 100644
--- a/docs/readthedocs/source/doc/release.md
+++ b/docs/readthedocs/source/doc/release.md
@@ -6,27 +6,27 @@ cellpadding="10"
>
|
- BigDL 0.12.1 |
+ BigDL 0.12.2 |
Spark 2.1.1 |
- download |
+ download |
Spark 2.2.1 |
- download |
+ download |
Spark 2.3.1 |
- download |
+ download |
Spark 2.4.3 |
- download |
+ download |
Spark 3.0.0 |
- download |
+ download |
diff --git a/pyzoo/setup.py b/pyzoo/setup.py
index 28294f680eb..3dad0073d9f 100755
--- a/pyzoo/setup.py
+++ b/pyzoo/setup.py
@@ -136,7 +136,7 @@ def setup_package():
license='Apache License, Version 2.0',
url='https://github.com/intel-analytics/analytics-zoo',
packages=packages,
- install_requires=['pyspark==2.4.3', 'bigdl==0.12.1', 'conda-pack==0.3.1'],
+ install_requires=['pyspark==2.4.3', 'bigdl==0.12.2', 'conda-pack==0.3.1'],
extras_require={'ray': ['ray==1.2.0', 'psutil', 'aiohttp==3.7.0',
'setproctitle', 'pyarrow==0.17.0', 'hiredis==1.1.0'],
'automl': ['tensorflow>=1.15.0,<2.0.0', 'h5py==2.10.0', 'hiredis==1.1.0',
diff --git a/pyzoo/zoo/common/utils.py b/pyzoo/zoo/common/utils.py
index 877dd8988c3..6442c617f21 100644
--- a/pyzoo/zoo/common/utils.py
+++ b/pyzoo/zoo/common/utils.py
@@ -14,7 +14,7 @@
# limitations under the License.
#
from bigdl.util.common import Sample as BSample, JTensor as BJTensor,\
- JavaCreator, _get_gateway, _py2java
+ JavaCreator, _get_gateway, _py2java, _java2py
import numpy as np
import os
import tempfile
@@ -138,54 +138,6 @@ def callZooFunc(bigdl_type, name, *args):
raise error
-# TODO: change to bigdl's _java2py when update to bigdl 0.12.2
-def _java2py(gateway, r, encoding="bytes"):
- from py4j.protocol import Py4JJavaError
- from py4j.java_gateway import JavaObject
- from py4j.java_collections import JavaArray, JavaList, JavaMap
- from pyspark import RDD
- from pyspark.serializers import PickleSerializer
- from pyspark.sql import DataFrame
- from bigdl.util.common import get_spark_context, _picklable_classes, get_spark_sql_context
-
- if isinstance(r, JavaObject):
- clsName = r.getClass().getSimpleName()
- # convert RDD into JavaRDD
- if clsName != 'JavaRDD' and clsName.endswith("RDD"):
- r = r.toJavaRDD()
- clsName = 'JavaRDD'
-
- if clsName == 'JavaRDD':
- jrdd = gateway.jvm.org.apache.spark.bigdl.api.python.BigDLSerDe.javaToPython(r)
- return RDD(jrdd, get_spark_context())
-
- if clsName == 'DataFrame':
- return DataFrame(r, get_spark_sql_context(get_spark_context()))
-
- if clsName == 'Dataset':
- return DataFrame(r, get_spark_sql_context(get_spark_context()))
-
- if clsName == "ImageFrame[]":
- return r
-
- if clsName in _picklable_classes:
- r = gateway.jvm.org.apache.spark.bigdl.api.python.BigDLSerDe.dumps(r)
- elif isinstance(r, (JavaArray, JavaList)) and len(r) != 0 \
- and isinstance(r[0], JavaObject) \
- and r[0].getClass().getSimpleName() in ['DataFrame', 'Dataset']:
- spark = get_spark_sql_context(get_spark_context())
- r = list(map(lambda x: DataFrame(x, spark), r))
- elif isinstance(r, (JavaArray, JavaList, JavaMap)):
- try:
- r = gateway.jvm.org.apache.spark.bigdl.api.python.BigDLSerDe.dumps(
- r)
- except Py4JJavaError:
- pass # not pickable
- if isinstance(r, (bytearray, bytes)):
- r = PickleSerializer().loads(bytes(r), encoding=encoding)
- return r
-
-
class JTensor(BJTensor):
def __init__(self, storage, shape, bigdl_type="float", indices=None):
diff --git a/zoo/pom.xml b/zoo/pom.xml
index f868430f94d..34c394fc84b 100644
--- a/zoo/pom.xml
+++ b/zoo/pom.xml
@@ -35,7 +35,7 @@
2.1.0
3.0.7
2.4.3
- 0.12.1
+ 0.12.2
bigdl-SPARK_2.4
3.4
1.0