Zeppelin解释器的REST API接口
2019独角兽企业重金招聘Python工程师标准>>>
Zeppelin解释器的REST API接口
概览
Apache Zeppelin 提供了多个REST APIs用于远程功能交互操作。 所有的REST APIs 都通过 endpoint http://[zeppelin-server]:[zeppelin-port]/api
进行操作。注意,Apache Zeppelin 的REST APIs 都接受和返回 JSON 对象, 建议安装 JSON viewers, 比如 JSONView。
如果你使用Apache Zeppelin ,发现对其它的 REST API需求, 可以到这里去提出来或者发送电子邮件给我们: send us an email.
解释器 REST API 列表
注册的解释器作用、设置的描述,参考 here。
注册的 interpreters列表
Description |
This GET method returns all the registered interpreters available on the server.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter
|
Success code | 200 |
Fail code | 500 |
Sample JSON response |
{"status": "OK","message": "","body": {"md.md": {"name": "md","group": "md","className": "org.apache.zeppelin.markdown.Markdown","properties": {},"path": "/zeppelin/interpreter/md"},"spark.spark": {"name": "spark","group": "spark","className": "org.apache.zeppelin.spark.SparkInterpreter","properties": {"spark.executor.memory": {"defaultValue": "1g","description": "Executor memory per worker instance. ex) 512m, 32g"},"spark.cores.max": {"defaultValue": "","description": "Total number of cores to use. Empty value uses all available core."},},"path": "/zeppelin/interpreter/spark"},"spark.sql": {"name": "sql","group": "spark","className": "org.apache.zeppelin.spark.SparkSqlInterpreter","properties": {"zeppelin.spark.maxResult": {"defaultValue": "1000","description": "Max number of Spark SQL result to display."}},"path": "/zeppelin/interpreter/spark"}} } |
注册的 interpreter 设置列表
Description |
This GET method returns all the interpreters settings registered on the server.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting
|
Success code | 200 |
Fail code | 500 |
Sample JSON response |
{"status": "OK","message": "","body": [{"id": "2AYUGP2D5","name": "md","group": "md","properties": {"empty": ""},"interpreterGroup": [{"class": "org.apache.zeppelin.markdown.Markdown","name": "md"}],"dependencies": []},{"id": "2AY6GV7Q3","name": "spark","group": "spark","properties": {"spark.cores.max": "","spark.executor.memory": "1g",},"interpreterGroup": [{"class": "org.apache.zeppelin.spark.SparkInterpreter","name": "spark"},{"class": "org.apache.zeppelin.spark.SparkSqlInterpreter","name": "sql"}],"dependencies": [{"groupArtifactVersion": "com.databricks:spark-csv_2.10:1.3.0"}]}] } |
通过设置ID得到注册 interpreter 设置
Description |
This GET method returns a registered interpreter setting on the server.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/[setting ID]
|
Success code | 200 |
Fail code |
400 if such interpreter setting id does not exist 500 for any other errors |
Sample JSON response |
{"status": "OK","message": "","body": {"id": "2AYW25ANY","name": "Markdown setting name","group": "md","properties": {"propname": "propvalue"},"interpreterGroup": [{"class": "org.apache.zeppelin.markdown.Markdown","name": "md"}],"dependencies": [{"groupArtifactVersion": "groupId:artifactId:version","exclusions": ["groupId:artifactId"]}]} } |
创建新的 interpreter 设置
Description |
This POST method adds a new interpreter setting using a registered interpreter to the server.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting
|
Success code | 200 |
Fail code |
400 if the input json is empty 500 for any other errors |
Sample JSON input |
{"name": "Markdown setting name","group": "md","properties": {"propname": "propvalue"},"interpreterGroup": [{"class": "org.apache.zeppelin.markdown.Markdown","name": "md"}],"dependencies": [{"groupArtifactVersion": "groupId:artifactId:version","exclusions": ["groupId:artifactId"]}] } |
Sample JSON response |
{"status": "CREATED","message": "","body": {"id": "2AYW25ANY","name": "Markdown setting name","group": "md","properties": {"propname": "propvalue"},"interpreterGroup": [{"class": "org.apache.zeppelin.markdown.Markdown","name": "md"}],"dependencies": [{"groupArtifactVersion": "groupId:artifactId:version","exclusions": ["groupId:artifactId"]}]} } |
更新 interpreter 设置
Description |
This PUT method updates an interpreter setting with new properties.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/[interpreter ID]
|
Success code | 200 |
Fail code | 500 |
Sample JSON input |
{"name": "Markdown setting name","group": "md","properties": {"propname": "Otherpropvalue"},"interpreterGroup": [{"class": "org.apache.zeppelin.markdown.Markdown","name": "md"}],"dependencies": [{"groupArtifactVersion": "groupId:artifactId:version","exclusions": ["groupId:artifactId"]}] } |
Sample JSON response |
{"status": "OK","message": "","body": {"id": "2AYW25ANY","name": "Markdown setting name","group": "md","properties": {"propname": "Otherpropvalue"},"interpreterGroup": [{"class": "org.apache.zeppelin.markdown.Markdown","name": "md"}],"dependencies": [{"groupArtifactVersion": "groupId:artifactId:version","exclusions": ["groupId:artifactId"]}]} } |
删除 interpreter 设置
Description |
This DELETE method deletes an given interpreter setting.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/[interpreter ID]
|
Success code | 200 |
Fail code | 500 |
Sample JSON response |
{"status":"OK"}
|
重新启动 interpreter
Description |
This PUT method restarts the given interpreter id.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/setting/restart/[interpreter ID]
|
Success code | 200 |
Fail code | 500 |
Sample JSON input (Optional) |
{"noteId": "2AVQJVC8N" } |
Sample JSON response |
{"status":"OK"}
|
添加新的 repository到依赖性引用
Description |
This POST method adds new repository.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/repository
|
Success code | 200 |
Fail code | 500 |
Sample JSON input |
{"id": "securecentral","url": "https://repo1.maven.org/maven2","snapshot": false } |
Sample JSON response |
{"status":"OK"}
|
删除依赖性引用的 repository
Description |
This DELETE method delete repository with given id.
|
URL |
http://[zeppelin-server]:[zeppelin-port]/api/interpreter/repository/[repository ID]
|
Success code | 200 |
Fail code |
500 |
原文(英):http://zeppelin.apache.org/docs/0.8.0-SNAPSHOT/rest-api/rest-interpreter.html
转载于:https://my.oschina.net/u/2306127/blog/894606
Zeppelin解释器的REST API接口相关推荐
- API接口的加速利器-varnish使用大全(含生产集群环境布署)
Varnish是什么 这是一张标准的新零售行业中的微服务化组件从前到后的架构概览图. 我们都知道,凡是静态内容,一般我们都有cdn来进行缓存,cdn缓过的内容之前会从cdn处返回给到前端流量层客户端. ...
- 用令牌桶算法完成API接口限流
这是张富涛的第15篇原创 用令牌桶算法完成API接口限流 本文介绍了"令牌桶算法",和使用lua+redis实现基于令牌桶算法的限流. 1. 限流需求的产生背景 软件开发时偶尔会面 ...
- java跨域权重_爱站权重查询 API 接口请求调用
原标题:爱站权重查询 API 接口请求调用 爱站权重查询 API 接口在网上已经很多且大都封装成了 API 供别人调用.支持前台跨域请求,以GET/POST方式提交即可.爱站权重查询 API 接口可以 ...
- 使用Node.js写一个简单的api接口
引入Http模块 默认你已经安装了Node.js Node当中内置了Http模块: 可以使用 var http= require("http"); 复制代码 引入http模块: H ...
- Swagger 生成 PHP restful API 接口文档
需求和背景 需求: 为客户端同事写接口文档的各位后端同学,已经在各种场合回忆了使用自动化文档工具前手写文档的血泪史. 我的故事却又不同,因为首先来说,我在公司是 Android 组负责人,属于上述血泪 ...
- shell脚本api接口考虑并发问题的可行性操作
当我们通过收集每台客户端数据后通过api接口上传到云服务器时,可能会由于客户端过多,几千以至于几万,这时不得不考虑个问题: 并发的问题,同时并发上传文件,可能导致api接口挂掉,但如果我们让文件错开时 ...
- js学习总结----crm客户管理系统之项目开发流程和api接口文档
CRM ->客户管理系统 CMS ->内容发布管理系统 ERP ->企业战略信息管理系统 OA -> 企业办公管理系统 产品 / UI设计:需求分析,产品定位,市场调查...按 ...
- 看看人家那后端API接口写得,那叫一个优雅!
点击上方蓝色"方志朋",选择"设为星标" 回复"666"获取独家整理的学习资料! 来源:r6d.cn/tEvn 在移动互联网,分布式.微服务 ...
- 拒绝接口裸奔!开放API接口签名验证!
点击上方蓝色"方志朋",选择"设为星标" 回复"666"获取独家整理的学习资料! 来源:r6d.cn/kChH 接口安全问题 请求身份是否合 ...
最新文章
- IntelliJ IDEA添加过滤文件或目录
- mxnet基础到提高(21)-配置mxnet并运行第一个C++程序
- Python自动化运维——系统进程管理模块
- CodeForces - 618B Guess the Permutation(思维+构造)
- android图像处理系列之五-- 给图片添加边框(中)
- spring cloud gateway集成hystrix全局断路器
- 文件管理类函数(1)
- windows10系统下以管理员身份进入CMD(命令提示符)的三种方法
- 中级计算机证书知识,计算机中级考哪些内容
- 2021图像检索综述
- Word文档怎么取消密码
- adb devices 无法识别手机设备
- 基于Java+SSM+Vue农家乐管理系统(住宿-美食-活动)设计与实现
- html实现正方体原理,CSS3 实现正方体
- 计算机专业英语形成型考核册,电大资源网《人文英语3》形成性考核册作业题目和答案2018年...
- 微信小程序内含H5页面实现方式
- Hostker云主机
- 初识MyBatis Plus
- MySQL数据库常用基本语句及管理
- MySQL中间件Atlas