Calling Talend Cloud Rest API from Apache Drill via sql
2022-02-04 | #apache #api #drill #rest #sql #sql #Talend
Abstract
I’ll show how to connect to Talend Cloud API via sql using Apache Drill.

Download
Download Apache Drill from https://drill.apache.org/download/
Configure
Create or edit the file conf/storage-plugins-override.conf
"storage": {
"talendcloud" : {
"type" : "http",
"cacheResults" : true,
"connections" : {
"get" : {
"url" : "https://api.eu.cloud.talend.com",
"method" : "GET",
"headers" : {
"Authorization" : "Bearer MYSECRETKEY"
},
"authType" : "none",
"userName" : null,
"password" : null,
"postBody" : null,
"params" : ["query"],
"dataPath" : null,
"requireTail" : true,
"inputType" : "json",
"xmlDataLevel" : 1
}
},
"proxyType" : "direct",
"enabled" : true
}
}
Start Drill
Run drill with