Skip to main content

ocean-sparkconnect

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()

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-sparkconnect 0.3.6

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-sparkconnect 0.3.6
File Size Uploaded
ocean_sparkconnect-0.3.6.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ocean-sparkconnect 0.3.6
File Interpreter ABI Platform
ocean_sparkconnect-0.3.6-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / ocean_sparkconnect-0.3.6.tar.gz

Download URL ocean_sparkconnect-0.3.6.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d5c8323b9835f8fe8b42793c205cf3ddaea5ec3fc4ba0e9f5058cf6c08b7eb20
BLAKE2b-256 checksum
How to use checksums
b95666e6f96a9068f5e05ac0ebdc04fe06afdd42c0fc22382b821220ecc57614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / ocean_sparkconnect-0.3.6-py3-none-any.whl

Download URL ocean_sparkconnect-0.3.6-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
164deebed4f7a2d4eb7193313925a8183ed9d0edd62baff5778ba58687bc5b9f
BLAKE2b-256 checksum
How to use checksums
1910c5189451cf78f836b2ccdd0b21b395ebfbff66589cd09c22de6f6254baeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.3.6 This release

2 release files

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