Menanyakan detail tugas alur data.
Deskripsi operasi
Hanya CPFS versi 2.2.0 ke atas dan CPFS for Lingjun versi 2.4.0 ke atas yang mendukung kueri tugas alur data. Informasi versi dapat dilihat pada halaman detail sistem file di konsol.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
ID sistem file.
|
bmcpfs-290w65p03ok64ya**** |
| Filters |
array<object> |
No |
Detail filter. |
|
|
object |
No |
|||
| Key |
string |
No |
Nama filter. Nilai yang valid:
|
DataFlowIds |
| Value |
string |
No |
Nilai filter. Parameter ini tidak mendukung wildcard.
|
df-194433a5be31**** |
| NextToken |
string |
No |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Anda tidak perlu menentukan parameter ini untuk permintaan pertama. Anda harus menentukan token yang diperoleh dari kueri sebelumnya sebagai nilai NextToken. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| MaxResults |
integer |
No |
Jumlah hasil untuk setiap kueri. Nilai yang valid: 10 hingga 100. Nilai default: 20. |
20 |
| WithReports |
boolean |
No |
Apakah akan menanyakan informasi laporan.
Catatan
|
True |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
| NextToken |
string |
Token paginasi. Dapat digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. |
TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0= |
| TaskInfo |
object |
||
| Task |
array<object> |
Informasi tentang tugas alur data. |
|
|
array<object> |
|||
| FilesystemId |
string |
ID sistem file. |
bmcpfs-290w65p03ok64ya**** |
| DataFlowId |
string |
ID alur data. |
df-194433a5be31**** |
| TaskId |
string |
ID tugas alur data. |
task-38aa8e890f45**** |
| SourceStorage |
string |
Jalur akses penyimpanan sumber. Format: Diantaranya:
Catatan
|
oss://178321033379****:bucket-01 |
| FileSystemPath |
string |
Direktori fileset dalam sistem file CPFS. Batasan:
Catatan
Hanya CPFS yang mendukung parameter ini. |
/a/b/c/ |
| Originator |
string |
Inisiator tugas alur data. Informasi berikut ditampilkan:
Catatan
Hanya CPFS yang mendukung parameter ini. |
User |
| TaskAction |
string |
Jenis tugas alur data. Informasi berikut ditampilkan:
Catatan
Hanya CPFS for Lingjun V2.6.0 ke atas yang mendukung StreamImport dan StreamExport. |
Import |
| DataType |
string |
Jenis data yang dioperasikan oleh tugas alur data. Informasi berikut ditampilkan:
Catatan
CPFS for Lingjun hanya mendukung tipe MetaAndData. |
MetaAndData |
| Progress |
integer |
Kemajuan tugas alur data. Jumlah operasi yang telah dilakukan oleh tugas alur data. |
50 |
| Status |
string |
Status tugas alur data. Informasi berikut ditampilkan:
|
Failed |
ReportPath
deprecated
|
string |
Jalur penyimpanan laporan tugas alur data dalam sistem file CPFS.
|
/path_in_cpfs/reportfile.cvs |
| CreateTime |
string |
Waktu saat tugas dibuat. |
2021-08-04 18:27:35 |
| StartTime |
string |
Waktu mulai tugas. |
2021-08-04 18:27:35 |
| EndTime |
string |
Waktu akhir tugas. |
2021-08-04 18:27:35 |
| FsPath |
string |
Jalur direktori cerdas. |
/aa/ |
| ConflictPolicy |
string |
Kebijakan konflik untuk file dengan nama yang sama. Nilai yang valid:
|
KEEP_LATEST |
| Directory |
string |
Direktori tempat tugas alur data dieksekusi. |
/path_in_cpfs/ |
| DstDirectory |
string |
Direktori yang dipetakan ke tugas alur data. |
/path_in_cpfs/ |
| ErrorMsg |
string |
Penyebab pengecualian tugas. Catatan
Jika parameter ini tidak dikembalikan atau nilai kembali kosong, berarti tidak terjadi error. |
{"ErrorKey":"PATH_NOT_ACCESSIBLE","ErrorDetail":"lstat /cpfs/370lx1ev9ss27o****/test/abcdfnotfound: no such file or directory"} |
| ProgressStats |
object |
Kemajuan tugas alur data. |
|
| FilesTotal |
integer |
Jumlah file yang dipindai di sumber. |
3 |
| FilesDone |
integer |
Jumlah file (termasuk file yang dilewati) yang telah selesai diproses oleh tugas alur data. |
3 |
| ActualFiles |
integer |
Jumlah aktual file yang telah selesai diproses oleh tugas alur data. |
3 |
| BytesTotal |
integer |
Jumlah data yang dipindai di sumber. Satuan: byte. |
131092971520 |
| BytesDone |
integer |
Jumlah data (termasuk data yang dilewati) yang telah selesai diproses oleh tugas alur data. Satuan: byte. |
131092971520 |
| ActualBytes |
integer |
Jumlah aktual data yang telah selesai diproses oleh tugas alur data. Satuan: byte. |
131092971520 |
| RemainTime |
integer |
Perkiraan sisa waktu eksekusi. Satuan: detik. |
437 |
| AverageSpeed |
integer |
Kecepatan aliran rata-rata. Satuan: byte/detik. |
342279299 |
| Reports |
object |
||
| Report |
array<object> |
Laporan. Catatan
|
|
|
object |
|||
| Name |
string |
Nama laporan.
|
TotalFilesReport |
| Path |
string |
URL laporan. |
https://a-hbr-temp-cn-hangzhou-staging.oss-cn-hangzhou.aliyuncs.com/temp/report/162319438359****/job-000bb6fwqficjbxk****/job-000bb6fwqficjbxk****_failed.zip?Expires=1721201422&OSSAccessKeyId=LTA****************&Signature=Fp%2BvauORTIVxooXY2tec6z0T%2Bp4%3D |
| Includes |
string |
Memfilter subdirektori dan mentransfer isinya. Catatan
Hanya CPFS for Lingjun yang mendukung operasi ini. |
["/test/","/test1/"] |
| TransferFileListPath |
string |
Menentukan direktori OSS dan menyinkronkan data berdasarkan konten file CSV di direktori OSS tersebut. Catatan
Hanya CPFS for Lingjun yang mendukung operasi ini. |
/path_in_cpfs/ |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****",
"NextToken": "TGlzdFJlc291cmNlU****mVzJjE1MTI2NjY4NzY5MTAzOTEmMiZORnI4NDhVeEtrUT0=",
"TaskInfo": {
"Task": [
{
"FilesystemId": "bmcpfs-290w65p03ok64ya****",
"DataFlowId": "df-194433a5be31****",
"TaskId": "task-38aa8e890f45****",
"SourceStorage": "oss://178321033379****:bucket-01",
"FileSystemPath": "/a/b/c/",
"Originator": "User",
"TaskAction": "Import",
"DataType": "MetaAndData ",
"Progress": 50,
"Status": "Failed",
"ReportPath": "/path_in_cpfs/reportfile.cvs",
"CreateTime": "2021-08-04 18:27:35",
"StartTime": "2021-08-04 18:27:35",
"EndTime": "2021-08-04 18:27:35",
"FsPath": "/aa/",
"ConflictPolicy": "KEEP_LATEST",
"Directory": "/path_in_cpfs/",
"DstDirectory": "/path_in_cpfs/\n",
"ErrorMsg": "{\"ErrorKey\":\"PATH_NOT_ACCESSIBLE\",\"ErrorDetail\":\"lstat /cpfs/370lx1ev9ss27o****/test/abcdfnotfound: no such file or directory\"}",
"ProgressStats": {
"FilesTotal": 3,
"FilesDone": 3,
"ActualFiles": 3,
"BytesTotal": 131092971520,
"BytesDone": 131092971520,
"ActualBytes": 131092971520,
"RemainTime": 437,
"AverageSpeed": 342279299
},
"Reports": {
"Report": [
{
"Name": "TotalFilesReport",
"Path": "https://a-hbr-temp-cn-hangzhou-staging.oss-cn-hangzhou.aliyuncs.com/temp/report/162319438359****/job-000bb6fwqficjbxk****/job-000bb6fwqficjbxk****_failed.zip?Expires=1721201422&OSSAccessKeyId=LTA****************&Signature=Fp%2BvauORTIVxooXY2tec6z0T%2Bp4%3D"
}
]
},
"Includes": "[\"/test/\",\"/test1/\"]\n",
"TransferFileListPath": "/path_in_cpfs/\n"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalCharacters | The parameter contains illegal characters. | |
| 400 | MissingFileSystemId | FileSystemId is mandatory for this action. | |
| 400 | InvalidFilesystemVersion.NotSupport | This Api does not support this fileSystem version. | |
| 403 | OperationDenied.DataFlowNotSupported | The operation is not supported. | |
| 404 | InvalidParameter.InvalidNextToken | The specified NextToken is invaild. | |
| 404 | InvalidFileSystem.NotFound | The specified file system does not exist. | |
| 404 | InvalidDataFlow.NotFound | The specified data flow does not exist. | |
| 404 | InvalidParameter.InvalidMaxResults | The specified MaxResults is invalid. | |
| 404 | InvalidFilterParam | The specified Filter.N.Key is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.