Abraham Elmahrek created SQOOP-1377:
---------------------------------------
Summary: Sqoop2: From/To: Improve JSON Response
Key: SQOOP-1377
URL: https://issues.apache.org/jira/browse/SQOOP-1377
Project: Sqoop
Issue Type: Sub-task
Reporter: Abraham Elmahrek
The JSON response currently takes the form:
{code}
{
"connection-id": 1,
"id": 1,
"updated": 1371246055277,
"created": 1371246055277,
"name": "import1",
"connector": [
{
"id": 3,
"inputs": [
{
"id": 10,
"name": "table.schemaName",
"type": "STRING",
"size": 50,
"sensitive": false
},
...
],
"name": "table",
"type": "CONNECTION"
}
],
"connector-id": 1,
"type": "IMPORT",
"framework": [
{
"id": 7,
"inputs": [
{
"id": 20,
"values": "HDFS",
"name": "output.storageType",
"value": "HDFS",
"type": "ENUM",
"sensitive": false
},
...
],
"name": "output",
"type": "CONNECTION"
},
{
"id": 8,
"inputs": [
{
"id": 23,
"name": "throttling.extractors",
"type": "INTEGER",
"sensitive": false
},
...
],
"name": "throttling",
"type": "CONNECTION"
}
]
}
{code}
There will be multiple connectors and connections per job. The response should
reflect this. Example:
{code}
{
"connection-id": 1,
"id": 1,
"updated": 1371246055277,
"created": 1371246055277,
"name": "import1",
"connectors": {
'from': [
{
"id": 3,
"inputs": [
{
"id": 10,
"name": "table.schemaName",
"type": "STRING",
"size": 50,
"sensitive": false
},
...
],
"name": "table",
"type": "CONNECTION"
}
],
'to': [
{
"id": 3,
"inputs": [
{
"id": 10,
"name": "table.schemaName",
"type": "STRING",
"size": 50,
"sensitive": false
},
...
],
"name": "table",
"type": "CONNECTION"
}
],
}
"connector-id": 1,
"type": "IMPORT",
"framework": [
{
"id": 8,
"inputs": [
{
"id": 23,
"name": "throttling.extractors",
"type": "INTEGER",
"sensitive": false
},
...
],
"name": "throttling",
"type": "CONNECTION"
}
]
}
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)