v2

package
v0.1.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForBatchDeleteJobs

func GenReqDefForBatchDeleteJobs() *def.HttpRequestDef

func GenReqDefForCancelSql

func GenReqDefForCancelSql() *def.HttpRequestDef

func GenReqDefForCreateCluster

func GenReqDefForCreateCluster() *def.HttpRequestDef

func GenReqDefForCreateExecuteJob

func GenReqDefForCreateExecuteJob() *def.HttpRequestDef

func GenReqDefForExecuteSql

func GenReqDefForExecuteSql() *def.HttpRequestDef

func GenReqDefForRunJobFlow added in v0.1.35

func GenReqDefForRunJobFlow() *def.HttpRequestDef

func GenReqDefForShowAgencyMapping

func GenReqDefForShowAgencyMapping() *def.HttpRequestDef

func GenReqDefForShowAutoScalingPolicy added in v0.1.13

func GenReqDefForShowAutoScalingPolicy() *def.HttpRequestDef

func GenReqDefForShowHdfsFileList

func GenReqDefForShowHdfsFileList() *def.HttpRequestDef

func GenReqDefForShowJobExeListNew

func GenReqDefForShowJobExeListNew() *def.HttpRequestDef

func GenReqDefForShowSingleJobExe

func GenReqDefForShowSingleJobExe() *def.HttpRequestDef

func GenReqDefForShowSqlResult

func GenReqDefForShowSqlResult() *def.HttpRequestDef

func GenReqDefForShowSqlResultWithJob

func GenReqDefForShowSqlResultWithJob() *def.HttpRequestDef

func GenReqDefForStopJob

func GenReqDefForStopJob() *def.HttpRequestDef

func GenReqDefForUpdateAgencyMapping

func GenReqDefForUpdateAgencyMapping() *def.HttpRequestDef

func GenReqDefForUpdateClusterName added in v0.1.13

func GenReqDefForUpdateClusterName() *def.HttpRequestDef

func MrsClientBuilder

func MrsClientBuilder() *http_client.HcHttpClientBuilder

Types

type BatchDeleteJobsInvoker added in v0.0.90

type BatchDeleteJobsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteJobsInvoker) Invoke added in v0.0.90

type CancelSqlInvoker added in v0.0.90

type CancelSqlInvoker struct {
	*invoker.BaseInvoker
}

func (*CancelSqlInvoker) Invoke added in v0.0.90

type CreateClusterInvoker added in v0.0.90

type CreateClusterInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateClusterInvoker) Invoke added in v0.0.90

type CreateExecuteJobInvoker added in v0.0.90

type CreateExecuteJobInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateExecuteJobInvoker) Invoke added in v0.0.90

type ExecuteSqlInvoker added in v0.0.90

type ExecuteSqlInvoker struct {
	*invoker.BaseInvoker
}

func (*ExecuteSqlInvoker) Invoke added in v0.0.90

type MrsClient

type MrsClient struct {
	HcClient *http_client.HcHttpClient
}

func NewMrsClient

func NewMrsClient(hcClient *http_client.HcHttpClient) *MrsClient

func (*MrsClient) BatchDeleteJobs

func (c *MrsClient) BatchDeleteJobs(request *model.BatchDeleteJobsRequest) (*model.BatchDeleteJobsResponse, error)

BatchDeleteJobs 批量删除作业

在MRS集群中批量删除作业。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) BatchDeleteJobsInvoker added in v0.0.90

func (c *MrsClient) BatchDeleteJobsInvoker(request *model.BatchDeleteJobsRequest) *BatchDeleteJobsInvoker

BatchDeleteJobsInvoker 批量删除作业

func (*MrsClient) CancelSql

func (c *MrsClient) CancelSql(request *model.CancelSqlRequest) (*model.CancelSqlResponse, error)

CancelSql 取消SQL执行任务

在MRS集群中取消一条SQL的执行任务。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) CancelSqlInvoker added in v0.0.90

func (c *MrsClient) CancelSqlInvoker(request *model.CancelSqlRequest) *CancelSqlInvoker

CancelSqlInvoker 取消SQL执行任务

func (*MrsClient) CreateCluster

func (c *MrsClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error)

CreateCluster 创建集群

创建一个MRS集群。使用接口前,您需要先获取下的资源信息。 - 通过VPC创建或查询VPC、子网 - 通过ECS创建或查询密钥对 - 通过[终端节点](https://support.huaweicloud.com/api-mrs/mrs_02_0003.html)获取区域信息 - 参考[MRS服务支持的组件](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)获取MRS版本及对应版本支持的组件信息

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) CreateClusterInvoker added in v0.0.90

func (c *MrsClient) CreateClusterInvoker(request *model.CreateClusterRequest) *CreateClusterInvoker

CreateClusterInvoker 创建集群

func (*MrsClient) CreateExecuteJob

func (c *MrsClient) CreateExecuteJob(request *model.CreateExecuteJobRequest) (*model.CreateExecuteJobResponse, error)

CreateExecuteJob 新增并执行作业

在MRS集群中新增并提交一个作业。

需要先在集群详情页的“概览”页签,单击“IAM用户同步”右侧的“同步”进行IAM用户同步,然后再通过该接口提交作业。

如需使用OBS加密功能,请先参考“MRS用户指南 > 管理现有集群 > 作业管理 > 使用OBS加密数据运行作业”页面进行相关配置后,再调用API接口运行作业。

所有示例中涉及的OBS路径、样例文件及终端节点和AKSK,请提前准备并在提交请求时根据实际情况替换。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) CreateExecuteJobInvoker added in v0.0.90

func (c *MrsClient) CreateExecuteJobInvoker(request *model.CreateExecuteJobRequest) *CreateExecuteJobInvoker

CreateExecuteJobInvoker 新增并执行作业

func (*MrsClient) ExecuteSql

func (c *MrsClient) ExecuteSql(request *model.ExecuteSqlRequest) (*model.ExecuteSqlResponse, error)

ExecuteSql 提交SQL语句

在MRS集群中提交并执行一条SQL语句。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ExecuteSqlInvoker added in v0.0.90

func (c *MrsClient) ExecuteSqlInvoker(request *model.ExecuteSqlRequest) *ExecuteSqlInvoker

ExecuteSqlInvoker 提交SQL语句

func (*MrsClient) RunJobFlow added in v0.1.35

func (c *MrsClient) RunJobFlow(request *model.RunJobFlowRequest) (*model.RunJobFlowResponse, error)

RunJobFlow 创建集群并提交作业

创建一个MRS集群并提交作业,并支持作业完成后删除集群,支持MRS 1.8.9及以上集群版本使用。使用接口前,您需要先获取下的资源信息。 - 通过VPC创建或查询VPC、子网 - 通过ECS创建或查询密钥对 - 通过[终端节点](https://support.huaweicloud.com/api-mrs/mrs_02_0003.html)获取区域信息 - 参考[MRS服务支持的组件](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)获取MRS版本及对应版本支持的组件信息

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) RunJobFlowInvoker added in v0.1.35

func (c *MrsClient) RunJobFlowInvoker(request *model.RunJobFlowRequest) *RunJobFlowInvoker

RunJobFlowInvoker 创建集群并提交作业

func (*MrsClient) ShowAgencyMapping

func (c *MrsClient) ShowAgencyMapping(request *model.ShowAgencyMappingRequest) (*model.ShowAgencyMappingResponse, error)

ShowAgencyMapping 查询用户(组)与IAM委托的映射关系

获取用户(组)与IAM委托之间的映射关系的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ShowAgencyMappingInvoker added in v0.0.90

func (c *MrsClient) ShowAgencyMappingInvoker(request *model.ShowAgencyMappingRequest) *ShowAgencyMappingInvoker

ShowAgencyMappingInvoker 查询用户(组)与IAM委托的映射关系

func (*MrsClient) ShowAutoScalingPolicy added in v0.1.13

ShowAutoScalingPolicy 查看弹性伸缩策略

查看指定集群的所有的弹性伸缩策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ShowAutoScalingPolicyInvoker added in v0.1.13

func (c *MrsClient) ShowAutoScalingPolicyInvoker(request *model.ShowAutoScalingPolicyRequest) *ShowAutoScalingPolicyInvoker

ShowAutoScalingPolicyInvoker 查看弹性伸缩策略

func (*MrsClient) ShowHdfsFileList

func (c *MrsClient) ShowHdfsFileList(request *model.ShowHdfsFileListRequest) (*model.ShowHdfsFileListResponse, error)

ShowHdfsFileList 获取指定目录文件列表

在MRS集群中获取指定目录文件列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ShowHdfsFileListInvoker added in v0.0.90

func (c *MrsClient) ShowHdfsFileListInvoker(request *model.ShowHdfsFileListRequest) *ShowHdfsFileListInvoker

ShowHdfsFileListInvoker 获取指定目录文件列表

func (*MrsClient) ShowJobExeListNew

func (c *MrsClient) ShowJobExeListNew(request *model.ShowJobExeListNewRequest) (*model.ShowJobExeListNewResponse, error)

ShowJobExeListNew 查询作业列表信息

在MRS指定集群中查询作业列表信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ShowJobExeListNewInvoker added in v0.0.90

func (c *MrsClient) ShowJobExeListNewInvoker(request *model.ShowJobExeListNewRequest) *ShowJobExeListNewInvoker

ShowJobExeListNewInvoker 查询作业列表信息

func (*MrsClient) ShowSingleJobExe

func (c *MrsClient) ShowSingleJobExe(request *model.ShowSingleJobExeRequest) (*model.ShowSingleJobExeResponse, error)

ShowSingleJobExe 查询单个作业信息

在MRS集群中查询指定作业的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ShowSingleJobExeInvoker added in v0.0.90

func (c *MrsClient) ShowSingleJobExeInvoker(request *model.ShowSingleJobExeRequest) *ShowSingleJobExeInvoker

ShowSingleJobExeInvoker 查询单个作业信息

func (*MrsClient) ShowSqlResult

func (c *MrsClient) ShowSqlResult(request *model.ShowSqlResultRequest) (*model.ShowSqlResultResponse, error)

ShowSqlResult 查询SQL结果

在MRS集群中查询一条SQL的执行结果。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ShowSqlResultInvoker added in v0.0.90

func (c *MrsClient) ShowSqlResultInvoker(request *model.ShowSqlResultRequest) *ShowSqlResultInvoker

ShowSqlResultInvoker 查询SQL结果

func (*MrsClient) ShowSqlResultWithJob

ShowSqlResultWithJob 获取SQL结果

在MRS集群中查询SparkSql和SparkScript两种类型作业的SQL语句运行完成后返回的查询结果。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) ShowSqlResultWithJobInvoker added in v0.0.90

func (c *MrsClient) ShowSqlResultWithJobInvoker(request *model.ShowSqlResultWithJobRequest) *ShowSqlResultWithJobInvoker

ShowSqlResultWithJobInvoker 获取SQL结果

func (*MrsClient) StopJob

func (c *MrsClient) StopJob(request *model.StopJobRequest) (*model.StopJobResponse, error)

StopJob 终止作业

在MRS集群中终止指定作业。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) StopJobInvoker added in v0.0.90

func (c *MrsClient) StopJobInvoker(request *model.StopJobRequest) *StopJobInvoker

StopJobInvoker 终止作业

func (*MrsClient) UpdateAgencyMapping

UpdateAgencyMapping 更新用户(组)与IAM委托的映射关系

更新用户(组)与IAM委托之间的映射关系。

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) UpdateAgencyMappingInvoker added in v0.0.90

func (c *MrsClient) UpdateAgencyMappingInvoker(request *model.UpdateAgencyMappingRequest) *UpdateAgencyMappingInvoker

UpdateAgencyMappingInvoker 更新用户(组)与IAM委托的映射关系

func (*MrsClient) UpdateClusterName added in v0.1.13

func (c *MrsClient) UpdateClusterName(request *model.UpdateClusterNameRequest) (*model.UpdateClusterNameResponse, error)

UpdateClusterName 修改集群名称

修改集群名称

Please refer to HUAWEI cloud API Explorer for details.

func (*MrsClient) UpdateClusterNameInvoker added in v0.1.13

func (c *MrsClient) UpdateClusterNameInvoker(request *model.UpdateClusterNameRequest) *UpdateClusterNameInvoker

UpdateClusterNameInvoker 修改集群名称

type RunJobFlowInvoker added in v0.1.35

type RunJobFlowInvoker struct {
	*invoker.BaseInvoker
}

func (*RunJobFlowInvoker) Invoke added in v0.1.35

type ShowAgencyMappingInvoker added in v0.0.90

type ShowAgencyMappingInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAgencyMappingInvoker) Invoke added in v0.0.90

type ShowAutoScalingPolicyInvoker added in v0.1.13

type ShowAutoScalingPolicyInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowAutoScalingPolicyInvoker) Invoke added in v0.1.13

type ShowHdfsFileListInvoker added in v0.0.90

type ShowHdfsFileListInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowHdfsFileListInvoker) Invoke added in v0.0.90

type ShowJobExeListNewInvoker added in v0.0.90

type ShowJobExeListNewInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowJobExeListNewInvoker) Invoke added in v0.0.90

type ShowSingleJobExeInvoker added in v0.0.90

type ShowSingleJobExeInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowSingleJobExeInvoker) Invoke added in v0.0.90

type ShowSqlResultInvoker added in v0.0.90

type ShowSqlResultInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowSqlResultInvoker) Invoke added in v0.0.90

type ShowSqlResultWithJobInvoker added in v0.0.90

type ShowSqlResultWithJobInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowSqlResultWithJobInvoker) Invoke added in v0.0.90

type StopJobInvoker added in v0.0.90

type StopJobInvoker struct {
	*invoker.BaseInvoker
}

func (*StopJobInvoker) Invoke added in v0.0.90

func (i *StopJobInvoker) Invoke() (*model.StopJobResponse, error)

type UpdateAgencyMappingInvoker added in v0.0.90

type UpdateAgencyMappingInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateAgencyMappingInvoker) Invoke added in v0.0.90

type UpdateClusterNameInvoker added in v0.1.13

type UpdateClusterNameInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateClusterNameInvoker) Invoke added in v0.1.13

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL