cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

sparkR.session

Flachboard84
New Contributor II

Why might this be erroring out? My understanding is that SparkR is built into Databricks.

Code:

library(SparkR, include.only=c('read.parquet', 'collect'))
sparkR.session()
 
Error:
Error in sparkR.session(): could not find function "sparkR.session"
4 REPLIES 4

shan_chandra
Esteemed Contributor

@Flachboard84  - could you please try the below code ?

library(SparkR, include.only=c('read.parquet', 'collect'))

sparkR.session() is not required on the databricks notebook. This should be handled automatically.

Reference: https://docs.databricks.com/en/sparkr/overview.html

Thanks for the reply!

Now I'm getting this:

Warning in sparkR.callJMethod(SparkR:::getSparkContext(), "setLocalProperty", : could not find function "sparkR.callJMethod"

@Flachboard84  - could you please share the associated code?

 

Flachboard84
New Contributor II

It happens with any code; even something as simple as...

x <- 2 + 2

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group