Example that works for me using Drill 1.0...
curl -X POST -H "Authorization: Basic bWFwcjpyb290NG1hcHI=" -H
"Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"queryType" : "SQL",
"query" : "select * from cp.`employee.json`"
}
' http://maprdemo:8047/query.json
On Thu, Jun 18, 2015 at 6:17 AM, Nayan Paul <[email protected]> wrote:
> Hi I have integrated drill on Cloudera cluster and have a hbase table that
> I have to access through REST from PHP.
>
> I can query my hbase table from apache drill query editor , but when I use
> Postman to test json response from the request then i get 415 internet
> error
>
> response from Postman
>
>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
> <title>Error 415 Unsupported Media Type</title>
> </head>
> <body><h2>HTTP ERROR 415</h2>
> <p>Problem accessing /query.json. Reason:
> <pre> Unsupported Media Type</pre></p><hr><i><small>Powered by
> Jetty://</small></i><hr/>
>
> </body>
> </html>
>
> Regards,
>
> ___________________________________________________________________________
>
>
> Nayan Paul | Phone No: +91-9831814333 | email: [email protected]
>