如何在GCP AI平台Jupyter笔记本中安装Cloud Filestore?

时间:2019-12-12 21:14:00

标签: jupyter-notebook jupyter jupyter-lab gcp-ai-platform-notebook google-cloud-filestore

我想在GCP AI Platform Jupyter笔记本实例中安装Cloud Filestore实例,这样就不必将所有数据上传到笔记本中。

我按照https://cloud.google.com/filestore/docs/mounting-fileshares上的说明进行操作,但收到以下错误消息:

root@0084329abd1b:/home# mount <IP_ADDRESS>:/streams cfs
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
root@0084329abd1b:/home# mount -o nolock <IP_ADDRESS>:/streams cfs
mount.nfs: Operation not permitted

2 个答案:

答案 0 :(得分:1)

从你的终端,你可以做这样的事情。

mkdir des_bucket
gcsfuse --debug_gcs --implicit-dirs  src_bucket des_bucket

答案 1 :(得分:0)

  1. 创建文件存储实例link

  2. 创建一个Google VM实例link

  3. 创建Notebook AI实例link

  4. 在VM实例上,运行以下命令:

    sudo apt-get -y update
    sudo apt-get -y install nfs-common
    sudo mkdir test
    # fileshare remote target
    sudo mount 111.11.111.11:/fileshare test
    sudo chmod go+rw test
    echo 'This is a test' > test/testfile
    ls test 
    #testfile
    
  5. 在Notebook AI实例上运行命令link

    sudo apt-get -y update
    sudo apt-get -y install nfs-common
    sudo mkdir test
    # fileshare remote target
    sudo mount 111.11.111.11:/fileshare /test
    ls test
    #testfile
    

您还可以选中link