[ 
https://issues.apache.org/jira/browse/SQOOP-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abraham Elmahrek reassigned SQOOP-1377:
---------------------------------------

    Assignee: Abraham Elmahrek  (was: Gwen Shapira)

> Sqoop2: From/To: Improve client/server communication
> ----------------------------------------------------
>
>                 Key: SQOOP-1377
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1377
>             Project: Sqoop
>          Issue Type: Sub-task
>            Reporter: Abraham Elmahrek
>            Assignee: 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)

Reply via email to