cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Esteemed Contributor
Esteemed Contributor

agree with @Werner Stinckens​  . also may try importing dbutils - @ben Hamilton​ 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.