Skip to main content
nidhi300
Bronze III
Oct 27, 2021 7:43 AM UTC
Solved

How to send data from Hive(which is stored on Adls layer )to rest API

We are using cdp 7.2.x and ADLS GEN2 public cloud .

I have a requirement ,related to which one team wants to consume the data via rest Api .

1. They expose their rest api and then using some tool or code we can send data from Hive layer to their rest api . Can we do this via NIFI?

2. we create rest api on top of our Hive layer in ADLS and the other team can consume the data from this API. 

Can you Please suggest how to proceed on both options . Are they feasible?

 

BennyZ
BennyZAnswer
Gold ⭐️
Oct 28, 2021 8:14 AM UTC

Hive doesn't provide the rest API itself. The user has to connect Hive by using JDBC/ODBC to fetch the data. Alternatively, you may write the query result to the ADLS and fetch the data via ADLS rest API.

https://docs.qubole.com/en/latest/user-guide/engines/presto/insert.html

2 replies

BennyZ
Gold ⭐️
BennyZAnswer
Gold ⭐️
Oct 28, 2021 8:14 AM UTC

Hive doesn't provide the rest API itself. The user has to connect Hive by using JDBC/ODBC to fetch the data. Alternatively, you may write the query result to the ADLS and fetch the data via ADLS rest API.

https://docs.qubole.com/en/latest/user-guide/engines/presto/insert.html

Translate
VidyaSargur
Community Manager
Community Manager
Nov 10, 2021 6:47 AM UTC

@nidhi300, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.