Using R with Databricks Connect
summary
sparklyr now connects to Spark via reticulate->pyspark using Spark Connect, so R sessions can run dplyr/DBI queries remotely and push aggregation to the cluster; Databricks Connect V2 works on DBR 13+ and requires Python 3.9+ and a cluster ID plus token. setup uses the PSparkC helper to install Python deps, removes the need for no Java on laptop, exposes Unity Catalog (catalog->schema->table), and lets R call new Python ML APIs directly though some Spark 3.4/3.5 ML/SDF features remain limited.
AI-written summary · about
chapters (14)
- 0:00What this talk covers
- 0:28What Spark Connect is, and why it changes things
- 2:07Why gRPC means Python is the bridge
- 3:10What sparklyr gives you today
- 4:14Upgrading sparklyr and installing pysparklyr
- 5:17Local Spark and Spark Connect compared
- 5:52Databricks Connect: working from your laptop
- 7:24Connecting with a cluster ID and a token
- 8:28Previewing tables and exploring the data
- 9:32Using dplyr against a Spark table
- 10:35Managing clusters from the Databricks UI
- 12:41Current limitations with Spark 3.4
- 13:46Reaching the full API through reticulate
- 15:53Running models and getting results back
related talks
01h 18mScalable Data Science with Spark and R
19mDatabases using R The latest
17mEasing the pain of connecting to databases
48mReactive Relational Database Connectivity
28mAdapting from Spark to Dask: what to expect
34mR2DBC = R2D2 + JDBC (Well, Almost...)
50mFull Steam Ahead, R2DBC!
50mBig Data Processing and Data Science Environment in Python
