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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c8323b9835f8fe8b42793c205cf3ddaea5ec3fc4ba0e9f5058cf6c08b7eb20 |
|
MD5 | 862046d2492d68b3adc3faf4c0b00984 |
|
BLAKE2b-256 | b95666e6f96a9068f5e05ac0ebdc04fe06afdd42c0fc22382b821220ecc57614 |
File details
Details for the file ocean_sparkconnect-0.3.6-py3-none-any.whl
.
File metadata
- Download URL: ocean_sparkconnect-0.3.6-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 164deebed4f7a2d4eb7193313925a8183ed9d0edd62baff5778ba58687bc5b9f |
|
MD5 | 2651a960d3de1167c88771b619b70d28 |
|
BLAKE2b-256 | 1910c5189451cf78f836b2ccdd0b21b395ebfbff66589cd09c22de6f6254baeb |