mounting buckets or accessing gcp storage from AI platform notebook instance

1,753 views
Skip to first unread message

Brandon Konkel

unread,
Sep 17, 2019, 5:23:44 PM9/17/19
to Google App Engine
Has anyone been able to successfully mount a gcp storage bucket to an AI platform notebook instance? 

Ali T (Cloud Platform Support)

unread,
Sep 23, 2019, 8:03:05 AM9/23/19
to Google App Engine
Hi,

One way to do this is through gcsfuse. Once you create an AI Platform notebook, click on the notebook’s name, ssh into the VM and follow the gcsfuse installation instructions for Ubuntu and Debian.

Once gcsfuse installed, run the commands below to mount your bucket to the Jupyter notebook:

$ cd /home/jupyter/
$ sudo -s su jupyter
$ mkdir MOUNT_DIRECTORY
$ /usr/bin/gcsfuse GCS_BUCKET MOUNT_DIRECTORY

Afterwards, in your Jupyter notebook interface, you will find a MOUNT_DIRECTORY folder which will be synced to your GCS bucket. 

Reply all
Reply to author
Forward
0 new messages