We're updating the issue view to help you get more done. 

Explore Exception while deploying the FileSetExample

Description

When I try to deploy the FileSetExample in standalone, I am getting the following exception -

2015-03-20 22:14:42,836 - ERROR [executor-1:c.c.c.e.c.ExploreFacade@162] - enable explore did not finish successfully for dataset instance lines.
2015-03-20 22:14:42,845 - ERROR [executor-1:c.c.c.d.d.d.s.DatasetInstanceHandler@383] - Cannot enable exploration of dataset instance DatasetInstance{namespace=sagar, instance=lines} of type {input.format=org.apache.hadoop.mapreduce.lib.input.TextInputFormat, base.path=example/data/lines, output.format=org.apache.hadoop.mapreduce.lib.output.TextOutputFormat}: Cannot enable explore on dataset lines. Reason: Response code: 500, message:'Internal Server Error', body: 'Error enabling explore on dataset DatasetInstance{namespace=sagar, instance=lines}'
co.cask.cdap.explore.service.ExploreException: Cannot enable explore on dataset lines. Reason: Response code: 500, message:'Internal Server Error', body: 'Error enabling explore on dataset DatasetInstance{namespace=sagar, instance=lines}'
at co.cask.cdap.explore.client.ExploreHttpClient.doEnableExploreDataset(ExploreHttpClient.java:147) ~[classes/:na]
at co.cask.cdap.explore.client.AbstractExploreClient$2.getHandle(AbstractExploreClient.java:99) ~[classes/:na]
at co.cask.cdap.explore.client.AbstractExploreClient$18.call(AbstractExploreClient.java:292) ~[classes/:na]
at co.cask.cdap.explore.client.AbstractExploreClient$18.call(AbstractExploreClient.java:289) ~[classes/:na]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) ~[na:1.6.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) ~[na:1.6.0_65]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) ~[na:1.6.0_65]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) ~[na:1.6.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) ~[na:1.6.0_65]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) ~[na:1.6.0_65]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206) ~[na:1.6.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) ~[na:1.6.0_65]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) ~[na:1.6.0_65]
at java.lang.Thread.run(Thread.java:695) ~[na:1.6.0_65]

Release Notes

None

Activity

Show:
Bhooshan Mogal
March 21, 2015, 5:21 AM
Edited

The cause of this exception is an NPE at ExploreTableManager#enableDataset. The createStatement is null at line 199, because in the example, FileSetProperties.enable.explore is not set.

This may be a problem in other sql statements in that class as well, but not sure.

Ali Anwar
March 21, 2015, 5:23 AM

This code might be reverted then, if a better fix goes in:
https://github.com/caskdata/cdap/pull/1650/files

Albert Shau
March 21, 2015, 5:40 AM

Assignee

Albert Shau

Reporter

Sagar Kapare

Labels

None

Docs Impact

None

UX Impact

None

Components

Fix versions

Affects versions

Priority

Major
Configure