Coder Social home page Coder Social logo

bishwajitdey / spark-connect-appstate-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grundprinzip/spark-connect-appstate-example

0.0 0.0 0.0 13 KB

An Example Plugin for Spark Connect

License: Apache License 2.0

Python 24.51% Scala 75.49%

spark-connect-appstate-example's Introduction

spark-connect-appstate-example

An Example Plugin for Spark Connect

mvn package
spark-shell --jars appstate-0.0.1.jar --conf spark.connect.extensions.relation.classes=de.grundprinzip.appstate.ConnectAppStateRelationPlugin --conf spark.sql.extensions=de.grundprinzip.appstate.AppStatusExtension
from pyspark.sql.connect.session import SparkSession
import appstate

spark = SparkSession.builder.remote("sc://localhost").getOrCreate()
spark.sql("select count(*) from range(100)").collect()

spark.sqlExecutions().show()
+---+--------------------+-------------+--------------+--------------------+--------------------+
| id|         description|      started|completionTime|             details|             metrics|
+---+--------------------+-------------+--------------+--------------------+--------------------+
|  0|analyzePlan at Sp...|1679950061644|          null|org.apache.spark....|                  []|
|  1|executePlan at Sp...|1679950081439|          null|org.apache.spark....|[{avg hash probes...|
|  2|executePlan at Sp...|1679950082244|          null|org.apache.spark....|[{number of outpu...|
+---+--------------------+-------------+--------------+--------------------+--------------------+

spark-connect-appstate-example's People

Contributors

grundprinzip avatar

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.