Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide PySpark and SparkR wrapper packages #21

Open
naidubharadwaj9 opened this issue Aug 29, 2018 · 3 comments
Open

Provide PySpark and SparkR wrapper packages #21

naidubharadwaj9 opened this issue Aug 29, 2018 · 3 comments

Comments

@naidubharadwaj9
Copy link

Is there a way I can use this library for importing a PMML model into Spark using pyspark or scala or sparkR?

@vruusmann
Copy link
Member

importing a PMML model into Spark using pyspark or scala or sparkR?

JPMML-Evaluator-Spark is a Java library, which means that you can call it directly from Scala code.

If you want to call it from PySpark or SparkR/Sparklyr, then you should take time to develop simple Python/R wrappers for it. Otherwise, simply use their Java gateways for communication (eg. in PySpark, you can access it via sc._jvm).

@SachinTen11
Copy link

So, we cannot use this package in Zeppelin or Jupyter notebooks? since JPMML is a java package and it cannot be used with a interpreted language? I am new to spark, please correct me if my understanding is incorrect.

@vruusmann
Copy link
Member

So, we cannot use this package in Zeppelin or Jupyter notebooks?

You can use this package in whatever Apache Spark ML environment you like. However, if you are using non-Java environments such as Python or R, then it would be recommended to create an appropriate Python or R wrapper API on top of the existing Java API to improve end user experience.

I haven't had time to build those Python or R wrapper APIs yet. But it's a fairly short task, maybe one or two days of development work.

@vruusmann vruusmann changed the title How to use it on scala or pyspark or sparkR? Provide PySpark and SparkR wrapper packages Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants