Coder Social home page Coder Social logo

Integrate spline with pyspark about spline HOT 7 CLOSED

absaoss avatar absaoss commented on May 19, 2024 2
Integrate spline with pyspark

from spline.

Comments (7)

brunoRenzo6 avatar brunoRenzo6 commented on May 19, 2024 1

@vackosar @wajda SPLINE is a greate tool, we've been using it in our company inside jobs but just like @maorshechter we work with pyspark to run our process, therefore we came up with a solution for SPLINE and PYSPARK Integration.
The solution is : write a PysparkHandler object in Scala to receive the SparkSession from PySpark, and return a SparkSession with SPLINE enabled.
Pretty Simple Implementation, take a look : https://github.com/WilliamPorto/keyruslab-spline/blob/master/Integra%C3%A7%C3%A3o.md

from spline.

wajda avatar wajda commented on May 19, 2024

We never think about it, but sounds like a good idea. I'll work on it.

from spline.

wajda avatar wajda commented on May 19, 2024

https://stackoverflow.com/questions/44082957/how-to-add-a-sparklistener-from-pyspark-in-python
and
http://aseigneurin.github.io/2016/09/01/spark-calling-scala-code-from-pyspark.html

from spline.

maorshechter avatar maorshechter commented on May 19, 2024

from spline.

vackosar avatar vackosar commented on May 19, 2024

Have u been able to resolve this. I recon the solution wud be also akin to Java use:
#43 (comment)

from spline.

wajda avatar wajda commented on May 19, 2024

@brunoRenzo6 Wow, that's awesome! Thank you for contribution! I'll add it to the Spline docs.

from spline.

vackosar avatar vackosar commented on May 19, 2024

@brunoRenzo6 thanks for the tips. I modified the our API and here is example how you can run Spline via PySpark: https://github.com/AbsaOSS/spline/blob/release/0.3/sample/src/main/scala/za/co/absa/spline/sample/batch/python_sample.py

It should be released soon as part of 0.3

from spline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.