Skip to main content

ocean-spark-connect

Wrapper to create Spark Connect session for Spark Applications in Ocean

from ocean_spark_connect.ocean_spark_session import OceanSparkSession

spark = OceanSparkSession.Builder().cluster_id("osc-cluster").appid("appid").profile("default").getOrCreate()
spark.sql("select random()").show()
spark.stop()

To use periodic ping to keep the session alive, use the ping_interval option (in seconds). The default value is off (-1).

spark = OceanSparkSession.Builder() \
    .ping_interval(5.0) \
    .cluster_id("osc-cluster") \
    .appid("appid") \
    .profile("default") \
    .getOrCreate()

To use java Spark plugin for the websocket bridge instead, add the use_java(True) option.

Options for OceanSparkSession.Builder with and without default values

In addition to the existing SparkSession.Builder option, the following options are available:

  • token
  • profile
  • appid
  • account_id
  • cluster_id
  • host = "api.spotinst.io"
  • port = "15002"
  • bind_address = "0.0.0.0"

Metadata

Release files for ocean-spark-connect 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocean-spark-connect 0.3.7
File Size Uploaded Provenance
ocean_spark_connect-0.3.7.tar.gz 6.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ocean-spark-connect 0.3.7
File Interpreter ABI Platform
ocean_spark_connect-0.3.7-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / ocean_spark_connect-0.3.7.tar.gz

Download URL ocean_spark_connect-0.3.7.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
754e4457e29431bd45f4ffff50f432e283f193f5166ebaf37dde1004924771d8
BLAKE2b-256 checksum
How to use checksums
ab9f8234b41d9b0ea3051a3af65181c9b45ec4cd7e8a97b7f9b553d0fad44cb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / ocean_spark_connect-0.3.7-py3-none-any.whl

Download URL ocean_spark_connect-0.3.7-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
685054da4fd2b9d805b794d16fae0e7e7b0e288fc050d08d7f8476a8d659e6ea
BLAKE2b-256 checksum
How to use checksums
2129c9c0de9cbdf84bed3a1f4fa054eb5c7c6365a15187048a953e4eb6312f66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for ocean-spark-connect 0.3.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page