Merge "Added json REST samples for edp"
This commit is contained in:
commit
b2c393f752
10
etc/rest-api-samples/edp/data_source_create.json
Normal file
10
etc/rest-api-samples/edp/data_source_create.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"description": "This is input",
|
||||
"url": "swift://container.savanna/text",
|
||||
"credentials": {
|
||||
"password": "swordfish",
|
||||
"user": "admin"
|
||||
},
|
||||
"type": "swift",
|
||||
"name": "text"
|
||||
}
|
9
etc/rest-api-samples/edp/job_binary_create.json
Normal file
9
etc/rest-api-samples/edp/job_binary_create.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"url": "swift-internal://container/jar-example.jar",
|
||||
"name": "jar-example.jar",
|
||||
"description": "This is job binary",
|
||||
"extra": {
|
||||
"password": "swordfish",
|
||||
"user": "admin"
|
||||
}
|
||||
}
|
7
etc/rest-api-samples/edp/job_create.json
Normal file
7
etc/rest-api-samples/edp/job_create.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"description": "This is pig job example",
|
||||
"mains": ["84248975-3c82-4206-a58d-6e7fb3a563fd"],
|
||||
"libs": ["508fc62d-1d58-4412-b603-bdab307bb926"],
|
||||
"type": "Pig",
|
||||
"name": "pig-job-example"
|
||||
}
|
19
etc/rest-api-samples/edp/job_execute.json
Normal file
19
etc/rest-api-samples/edp/job_execute.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"cluster_id": "776e441b-5816-4d47-9e07-7ded58f9a5f6",
|
||||
"input_id": "af7dc864-6331-4c30-80f5-63d74b667eaf",
|
||||
"output_id": "b63780f3-13d7-4286-b731-88270fb204de",
|
||||
"job_configs": {
|
||||
"configs": {
|
||||
"mapred.map.tasks": "1",
|
||||
"mapred.reduce.tasks": "1"
|
||||
},
|
||||
"args": {
|
||||
"arg1": "val1",
|
||||
"arg2": "val2"
|
||||
},
|
||||
"params": {
|
||||
"param2": "value2",
|
||||
"param1": "value1"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user