本文是离线算法平台的使用说明
提交离线任务时,需要传文件系统相关的参数。常见的离线平台文件系统为HDFS和CEPH,下面是参数示例
示例
"inputFileSystemInfo": {
"fileSystemType": "HDFS",
"port": "your_hdfs_namenode_httpserver_port",
"userName": "your_hdfs_file_userName",
"host": "your_hdfs_namenode_httpserver_host",
"spareHost": "your_hdfs_SecondaryNameNode_host",
"inputPath": "your_file_input_path_here"
},
"outputFileSystemInfo": {
"fileSystemType": "HDFS",
"port": "your_hdfs_port",
"userName": "your_hdfs_userName",
"host": "your_hdfs_host",
"spareHost": "your_hdfs_SecondaryNameNode",
"outputPath": "your_output_path_here"
}
说明:
示例
"inputFileSystemInfo": {
"fileSystemType": "CEPH",
"port": "your_ceph_port",
"userName": "your bucket accessKey",
"password": "your bucket secretKey",
"host": "your_ceph_host",
"inputPath": "bucket_name#your_input_path"
},
"outputFileSystemInfo": {
"fileSystemType": "CEPH",
"port": "your_ceph_port",
"userName": "your bucket accessKey",
"password": "your bucket secretKey",
"host": "your_ceph_host",
"outputPath": "bucket_name#your_output_path"
}
说明:
请求示例
curl -XGET -H 'Authorization: your token here' \
https://open.datastory.com.cn/api/algorithm/task/get?taskId=${taskId}
请求说明
响应结果示例
{
"id":3039696,
"status":"FINISHED",
"addTime":"2022-08-08 15:51:23",
"startTime":"2022-08-08 15:51:23",
"finishTime":"2022-08-08 15:52:35"
}
INITIALING 任务正在初始化 或 正在等待资源
RUNNING 运行中
FINISHED 成功
ERROR 失败
必填。提交离线算法任务时,需要填入邮箱,用于接收任务状态的邮件,当任务异常、任务被取消会以邮件的形式发送到该邮箱地址。
1、
产品咨询
020-38061725
微信扫描二维码在线咨询