Hello Rohit,thanks for your response!
Sorry for the delaySo I tried to reproduce the issue from the clean setuphere status of services, everything okay, as I understandcurl -v hc1-ubc-dn1:11015/v3/system/services/status* About to connect() to hc1-ubc-dn1 port 11015 (#0)* Trying 161.8.251.59... connected* Connected to hc1-ubc-dn1 (161.8.251.59) port 11015 (#0)> GET /v3/system/services/status HTTP/1.1> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2> Host: hc1-ubc-dn1:11015> Accept: */*>< HTTP/1.1 200 OK< Content-Type: application/json< Content-Length: 180< Connection: keep-alive<* Connection #0 to host hc1-ubc-dn1 left intact* Closing connection #0{"dataset.executor":"OK","metrics":"OK","transaction":"OK","appfabric":"OK","metadata.service":"OK","streams":"OK","explore.service":"OK","log.saver":"OK","metrics.processor":"OK"}I loaded the artifactcdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> load artifact HelloWorld-3.2.1.jarSuccessfully added artifact with name 'HelloWorld'cdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> list artifacts user+==============================+| name | version | scope |+==============================+| HelloWorld | 3.2.1 | USER |+==============================+deploy the applicationcdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> create app HelloWorld HelloWorld 3.2.1 USERSuccessfully created applicationcdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> describe app HelloWorld+===========================================================================+| type | id | description |+===========================================================================+| Flow | WhoFlow | A flow that collects names || Service | Greeting | Service that creates a greeting using a user's name. |+===========================================================================+cdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> start flow HelloWorld.WhoFlowSuccessfully started flow 'WhoFlow' of application 'HelloWorld' with stored runtime arguments '{}'cdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> list dataset instances+===================================================+| name | type |+===================================================+| whom | co.cask.cdap.api.dataset.lib.KeyValueTable |+===================================================+cdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> describe dataset instance whom+================================================================================================================================================+| hive table | spec | type |+================================================================================================================================================+| | {"name":"whom","type":"co.cask.cdap.api.da | {"name":"co.cask.cdap.api.dataset.lib.KeyValueTable","modules":[{"name":"orderedTabl || | taset.lib.KeyValueTable","properties":{}," | e-hbase","className":"co.cask.cdap.data2.dataset2.module.lib.hbase.HBaseTableModule" || | datasetSpecs":{"kv":{"name":"whom.kv","typ | ,"types":["table","co.cask.cdap.api.dataset.table.Table","orderedTable","co.cask.cda || | e":"table","properties":{},"datasetSpecs": | p.api.dataset.table.OrderedTable"],"usesModules":[],"usedByModules":["core","objectM || | {}}}} | appedTable","cube","usage","lineage","queueDataset"]},{"name":"core","className":"co || | | .cask.cdap.data2.dataset2.lib.table.CoreDatasetsModule","types":["keyValueTable","co || | | .cask.cdap.api.dataset.lib.KeyValueTable","objectStore","co.cask.cdap.api.dataset.li || | | b.ObjectStore","indexedObjectStore","co.cask.cdap.api.dataset.lib.IndexedObjectStore || | | ","indexedTable","co.cask.cdap.api.dataset.lib.IndexedTable","timeseriesTable","co.c || | | ask.cdap.api.dataset.lib.TimeseriesTable","counterTimeseriesTable","co.cask.cdap.api || | | .dataset.lib.CounterTimeseriesTable","co.cask.cdap.api.dataset.table.MemoryTable","m || | | emoryTable"],"usesModules":["orderedTable-hbase"],"usedByModules":["timePartitionedF || | | ileSet","partitionedFileSet","businessMetadata"]}]} |+================================================================================================================================================+Hive table is empty, is it right?when I try to explore the dataset I got the errorcdap (http://hc1-ubc-dn1.roll.mmk.chel.su:11015/default)> execute "select * from dataset_whom"Error: co.cask.cdap.explore.service.ExploreException: Cannot execute query. Reason: Response code: 400, message: 'Bad Request', body: '[SQLState 42S02] Error while compiling statement: FAILED: SemanticException [Error 10001]: Line 1:14 Table not found 'dataset_whom''and I see a lot of exceptions in router.log like this2015-12-04 17:00:35,946 ERROR co.cask.cdap.gateway.router.handlers.HttpRequestHandler: Exception raised in Request Handler [id: 0xe7c85cd6, /161.8.251.59:57147 :> /161.8.251.59:11015]java.nio.channels.ClosedChannelException: nullat org.jboss.netty.channel.socket.nio.AbstractNioWorker.cleanUpWriteBuffer(AbstractNioWorker.java:434) ~[io.netty.netty-3.6.6.Final.jar:na]at org.jboss.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:374) ~[io.netty.netty-3.6.6.Final.jar:na]at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:93) ~[io.netty.netty-3.6.6.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109) ~[io.netty.netty-3.6.6.Final.jar:na]at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) ~[io.netty.netty-3.6.6.Final.jar:na]at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90) ~[io.netty.netty-3.6.6.Final.jar:na]at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) ~[io.netty.netty-3.6.6.Final.jar:na]at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_67]at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_67]at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
It would be great if you can tell me what's wrong with my deployment.I need to be able query CASK's datasets in HiveThanks in advance!Regards, Dmitry2015-12-03 6:58 GMT+05:00 Rohit Sinha <rsi...@cask.co>:Hello Dmitry,The curl command above to enable explore on an existing dataset had a mistype. We have updated the post with the right one but I thought to reach out to you to point this out.The command will be:
Thanks.
On Wed, Dec 2, 2015 at 5:16 PM, Rohit Sinha <rsi...@cask.co> wrote:
Also,If explore was not enabled on your setup initially and you changed the cdap-site.xml you should restart cdap-master for the changes to reflect.You can do this by following command:/etc/init.d/cdap-master restartOnce the master starts you will have to enable explore on the existing datasets and streams. All new ones will automatically be explore enabled.You can enable explore on the whom dataset using the following curl command:
curl -v -X POST hostname:10000/v3/namespaces/default/data/datasets/whom/enable
--To view this discussion on the web visit https://groups.google.com/d/msgid/cdap-user/17451360-72c5-4c36-8057-fd0554e043c0%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "CDAP User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cdap-user+...@googlegroups.com.
To post to this group, send email to cdap...@googlegroups.com.--