Details
-
Type: Task
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.8.0
-
Fix Version/s: None
-
Component/s: app.jobbrowser
-
Labels:None
Description
Romain's guideline:
Some recommendations for gradually making progress:
#0 Let's start with the "Query Detail "
#1 cf. Above, we should start by adding some unit tests with the expected json output of the call
#2 --> hardcode the json data of a query detail and return it e.g. `{"query":{"details":{"id":53,"perf":.....`
#3 --> proxy the call `http://172.27.112.198:30800/api/hive/query?extended=true&queryId=hive_20200911112307_736bcef4-5b2e-49d4-9657-54021eba5545&_=1600354448423` To easily proxy, we could use the `HttpClient` of Hue, e.g. https://github.com/cloudera/hue/blob/master/apps/impala/src/impala/server.py#L139 to just 'GET' the data and return it in the Hue API response
#4 --> Read the DAS DB via the Hue ORM/API (skeleton in https://github.com/cloudera/hue/blob/master/apps/jobbrowser/src/jobbrowser/apis/hive_query_api.py#L67) and return the json. This is the real work to fully port the API!