I am trying to locate steps to run druid queries using scala or java


I am new to druid and have been able to successfully injest data in druid and query it using cmd (http://druid.io/docs/latest/tutorials/tutorial-query.html). Now I am trying to query suing java or scala. Is there a place I can look at for help?



Hi Tushar,

From the http://druid.io/libraries page, you can use the Druidry (for Java) or Scruid (for Scala) projects to query Druid using native JSON queries. There’s also https://github.com/implydata/druid-client which isn’t actively maintained and was last updated for 0.11.0, but it might be a useful example.

Scruid: https://github.com/ing-bank/scruid

Druidry: https://github.com/zapr-oss/druidry

If you want to use SQL for querying, you can use the Avatica JDBC driver (see http://druid.io/docs/latest/querying/sql).

  • Justin Borromeo