Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2022 06:38 PM
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?
Labels:
- Labels:
-
Sagemaker
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 05:03 PM
You might be using some other package named dbutils.
Try
import pyspark.dbutils
dbutils.fs.ls("/mnt")
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 01:56 AM
What Melbourne said or you are using databricks-connect which has limited dbutils functionality.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2022 09:36 PM
agree with @Werner Stinckens . also may try importing dbutils - @ben Hamilton