如何在德鲁伊中查询数据?

时间:2019-04-30 15:26:22

标签: druid

我正在遵循druid文档,但是在运行命令

curl -X 'POST' -H 'Content-Type:application/json' -d @quickstart/tutorial/wikipedia-top-pages.json http://localhost:8082/druid/v2?pretty

我得到了答复

[]

怎么了?我的机器上也有quickstart文件夹。

1 个答案:

答案 0 :(得分:0)

转到您的druid控制台->数据源。您将找到数据源的名称,并将public class CountryProcessTest { @Rule public final JUnitRuleMockery context = new JUnitRuleMockery(); private final CntDao cntDao = context.mock(CntDao.class); @Before public void setup() { Injector injector = Guice.createInjector(new AbstractModule() { @Override protected void configure() { bind(cntDao.class).toInstance(cntDao); } }); } @Test public void shouldIgnoreIfFileSizeBiggerThanPermitted() { //some code to make it trigger ELSE statement above... verify(cntDao, never()).addCountryLandMark(anyString()); } } 中的数据源名称替换为数据源名称。

相关问题