Zeppelin Notebook 存储访问 REST API

Apache Zeppelin Notebook Repository API

概览

Apache Zeppelin 提供了多个REST APIs用于远程功能交互操作。 所有的REST APIs 都通过 endpoint http://[zeppelin-server]:[zeppelin-port]/api 进行操作。注意,Apache Zeppelin 的REST APIs 都接受和返回 JSON 对象, 建议安装 JSON viewers, 比如 JSONView

Notebook Repository REST API 列表

列出所有可用的notebook repositories

DescriptionThis GET method returns all the available notebook repositories.
URLhttp://[zeppelin-server]:[zeppelin-port]/api/notebook-repositories
Success code200
Fail code500
Sample JSON response
{
  "status": "OK",
  "message": "",
  "body": [
    {
      "name": "GitNotebookRepo",
      "className": "org.apache.zeppelin.notebook.repo.GitNotebookRepo",
      "settings": [
        {
          "type": "INPUT",
          "value": [],
          "selected": "ZEPPELIN_HOME/zeppelin/notebook/",
          "name": "Notebook Path"
        }
      ]
    }
  ]
}

重新载入notebook repository

DescriptionThis GET method triggers reloading and broadcasting of the note list.
URLhttp://[zeppelin-server]:[zeppelin-port]/api/notebook-repositories/reload
Success code200
Fail code500
Sample JSON response
{
  "status": "OK",
  "message": ""
}

 

更新指定的 notebook repository

DescriptionThis PUT method updates a specific notebook repository.
URLhttp://[zeppelin-server]:[zeppelin-port]/api/notebook-repositories
Success code200
Fail code404 when the specified notebook repository doesn't exist
406 for invalid payload
500 for any other errors
Sample JSON input
{
  "name":"org.apache.zeppelin.notebook.repo.GitNotebookRepo",
  "settings":{
    "Notebook Path":"/tmp/notebook/"
  }
}
Sample JSON response
{
  "status": "OK",
  "message": "",
  "body": {
    "name": "GitNotebookRepo",
    "className": "org.apache.zeppelin.notebook.repo.GitNotebookRepo",
    "settings": [
      {
        "type": "INPUT",
        "value": [],
        "selected": "/tmp/notebook/",
        "name": "Notebook Path"
      }
    ]
  }
}

转载于:https://my.oschina.net/u/2306127/blog/894658

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值