Skip to main content

Spark Connect adapter for Ocean Spark

Project description

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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocean_sparkconnect-0.3.6.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

ocean_sparkconnect-0.3.6-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ocean_sparkconnect-0.3.6.tar.gz.

File metadata

  • Download URL: ocean_sparkconnect-0.3.6.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ocean_sparkconnect-0.3.6.tar.gz
Algorithm Hash digest
SHA256 d5c8323b9835f8fe8b42793c205cf3ddaea5ec3fc4ba0e9f5058cf6c08b7eb20
MD5 862046d2492d68b3adc3faf4c0b00984
BLAKE2b-256 b95666e6f96a9068f5e05ac0ebdc04fe06afdd42c0fc22382b821220ecc57614

See more details on using hashes here.

File details

Details for the file ocean_sparkconnect-0.3.6-py3-none-any.whl.

File metadata

File hashes

Hashes for ocean_sparkconnect-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 164deebed4f7a2d4eb7193313925a8183ed9d0edd62baff5778ba58687bc5b9f
MD5 2651a960d3de1167c88771b619b70d28
BLAKE2b-256 1910c5189451cf78f836b2ccdd0b21b395ebfbff66589cd09c22de6f6254baeb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page