cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

AttributeError: module 'dbutils' has no attribute 'fs'

bonjih
New Contributor

Hi,

Using db in SageMaker to connect EC2 to S3. Following other examples I get 'AttributeError: module 'dbutils' has no attribute 'fs'....

I guess Im missing an import?

1 ACCEPTED SOLUTION

Accepted Solutions

AmanSehgal
Honored Contributor III

You might be using some other package named dbutils.

Try

import pyspark.dbutils
 
dbutils.fs.ls("/mnt")

View solution in original post

3 REPLIES 3

AmanSehgal
Honored Contributor III

You might be using some other package named dbutils.

Try

import pyspark.dbutils
 
dbutils.fs.ls("/mnt")

-werners-
Esteemed Contributor III

What Melbourne said or you are using databricks-connect which has limited dbutils functionality.

Atanu
Databricks Employee
Databricks Employee

agree with @Werner Stinckensโ€‹  . also may try importing dbutils - @ben Hamiltonโ€‹ 

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