Apache Drill – REST Support

This came as a pleasant surprise to me today when I found that Apache Drill now also has an embedded Jetty-Jersey based REST service interface exposed for tracking the status of the Drillbit along with the status of submitted queries.

The interface can be checked out here once the Drillbit is running: http://localhost:8047/status

Exposed REST API’s:

+--------------------------+-----+---------------------------------------+
|Task                      |Type |REST URI                               |
+--------------------------+-----+---------------------------------------+
|Get Drillbit status       |GET  |http://localhost:8047/status           |
+--------------------------+-----+---------------------------------------+
|Get all submitted queries |GET  |http://localhost:8047/queries          |
+--------------------------+-----+---------------------------------------+
|Get status of given query |GET  |http://localhost:8047/query/{QUERY_ID} |
+--------------------------+-----+---------------------------------------+

For single node installations, you can start the Sqlline shell and hit the above URI’s in your browser and check the corresponding Rest Response.

For developers: Checkout org.apache.drill.exec.server.rest.DrillRoot.java for implementation details.

Hope the crisp post was helpful. Be tuned for code deep dive.

 

Yash Sharma is a Big Data & Machine Learning Engineer, A newbie OpenSource contributor, Plays guitar and enjoys teaching as part time hobby.
Talk to Yash about Distributed Systems and Data platform designs.

One thought on “Apache Drill – REST Support

Leave a Reply

Your email address will not be published. Required fields are marked *