I have run a non-hadoop index task which resulted in the creation of data source called "websites". I can see the data source listed in the coordinator console.
Now I am trying to query some data. I have created a query json and executing following query from putty to my Ubuntu machine running single node druid cluster:
user@machine:/opt/druid-0.9.1.1$ sudo curl -X 'POST' -H 'Content-Type:application/json' -d @quickstart/websites-ds-metadata-query.json localhost:8081/druid/v2/?pretty
However this gave me following output:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 </title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /druid/v2/. Reason:
<pre> Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
So I tried running following query (as suggested
here) to check if it returns the datasource:
user@machine:/opt/druid-0.9.1.1$ sudo curl -X 'GET' localhost:8081/druid/v2/datasources
that too gave me following output:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 </title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /druid/v2/datasources. Reason:
<pre> Not Found</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
I must be missing something. What is that?