What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-14 02:29:02
flask app with spark
from pyspark import SparkContext sc = SparkContext('local') from flask import Flask, request app = Flask(__name__) @app.route('/whateverYouWant', methods=['POST']) #can set first param to '/' def toyFunction(): posted_data = sc.parallelize([reques... Add solution
Best helpers
Ranking is empty