文档首页 > > 开发指南> API & SDK 对应关系> Python> MRS

MRS

分享
更新时间: 2019/11/15 GMT+08:00

基于MRS v1.1 API的SDK接口如下,调用方式举例:conn.map_reduce.create_cluster_and_run_job()

Interface

Method

API

Cluster Operations

create_cluster_and_run_job(**cluster,**job)

POST /v1.1/{project_id}/run-job-flow

expand_cluster("cluster-id", expand_node_amount)

PUT /v1.1/{project_id}/cluster_infos/{cluster_id}

reduce_cluster("cluster-id", reduce_node_amount, includes=includes, excludes=excludes)

PUT /v1.1/{project_id}/cluster_infos/{cluster_id}

get_cluster("cluster-id")

GET /v1.1/{project_id}/cluster_infos/{cluster_id}

delete_cluster("cluster-id")

DELETE /v1.1/{project_id}/clusters/{cluster_id}

Job Operations

exe_job(**exe)

POST /v1.1/{project_id}/jobs/submit-job

job_exes(**query)

GET /v1.1/{project_id}/job-exes

get_job_exe("job-exe-id")

GET /v1.1/{project_id}/job-exes/{job_exe_id}

JobExecution Operations

delete_job_execution("job-execution-id")

DELETE /v1.1/{project_id}/job-executions/{job_execution_id}

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区