Panggil API ini untuk membuat fungsi kustom di lakehouse.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:CreateDataLakeFunction |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| CatalogName |
string |
Yes |
Nama katalog data. |
hive |
| DbName |
string |
Yes |
Nama database. |
default |
| FunctionInput | DLFunctionInput |
Yes |
Informasi detail dari fungsi. |
|
| DataRegion |
string |
Yes |
Region tempat data lake berada. |
cn-hangzhou |
| Tid |
integer |
No |
ID penyewa. Catatan
Dapatkan ID penyewa dengan mengarahkan kursor ke foto profil di pojok kanan atas sistem. Untuk informasi lebih lanjut, lihat Lihat informasi penyewa. |
3**** |
| WorkspaceId |
integer |
No |
ID ruang kerja. |
12**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. Digunakan untuk menemukan log dan memecahkan masalah. |
EE214ECD-4330-503A-82F0-FFB039757DC8 |
| ErrorCode |
string |
Kode kesalahan. |
UnknownError |
| ErrorMessage |
string |
Pesan kesalahan yang dikembalikan ketika panggilan gagal. |
UnknownError |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Function | DLFunction |
Informasi detail dari fungsi. |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EE214ECD-4330-503A-82F0-FFB039757DC8",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true,
"Function": {
"FunctionName": "my_funciton",
"OwnerName": "zhangsan",
"OwnerType": "USER",
"CreatorId": 0,
"FunctionType": "JAVA",
"CreateTime": 1731586286,
"ResourceUris": [
{
"ResourceType": "JAR",
"Uri": "hdfs://name****.example.com:8020/user/hive/udfs/my_***.jar"
}
],
"ClassName": "com.example.hive.MyCustomUDF",
"CatalogName": "hive",
"DbName": "default",
"ModifierId": 0
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.