Nebius AI connector for Apache Spark™
Project description
Nebius AI connector for Apache Spark™
The Managed Service for Apache Spark, a Nebius AI service, offers access to sessions: managed environments that can handle multiple independent ad-hoc computations at the same time.
With this connector, you can connect to your Managed Spark sessions using Spark Connect and process data with Spark APIs from your machine.
Installing
pip install nebius-connect
Example
from pyspark.sql.connect.session import SparkSession
from nebius.spark.connect import create_channel_builder
nebius_spark_cb = create_channel_builder(
'spsession-example123.nebius.cloud:443',
password='my-password'
)
spark = SparkSession \
.builder \
.channelBuilder(nebius_spark_cb) \
.getOrCreate()
columns = ["id","name"]
data = [(1,"Sarah"),(2,"Maria")]
df = spark.createDataFrame(data).toDF(*columns)
df.show()
spark.stop()
License
Copyright 2024 Nebius B.V.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Apache and Apache Spark are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nebius_connect-0.1.0.tar.gz.
File metadata
- Download URL: nebius_connect-0.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69128e87ffcda0250aeeddc201dada72aab5f996fc9f134abc9e3ac509e3d966
|
|
| MD5 |
807323975272ccd405ecb879a1054fc6
|
|
| BLAKE2b-256 |
d2ff56be0125de0365fda640eaa3a87c5b8ea1772e7a11ec57574112cfd9a996
|
File details
Details for the file nebius_connect-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nebius_connect-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a5671084c4eb3e7260024bd72240bfec5504f445812a46cf5a6708a259dd7a1
|
|
| MD5 |
f5f57d49d9a05b5d3065464d6942e21a
|
|
| BLAKE2b-256 |
82f58ea0f2515c4012ac4b6f11eeb0bad63a90113391b30bbfa685c7e5c6c816
|