我已经安装了带有 MapR 发行版的 Kylin,在某种程度上,一切似乎都很好。我运行了 sample.sh 脚本,现在我有了“learning_kylin”项目,我可以在多维数据集上运行“build”,并且作业报告成功 100% 完成。
但是.. 这样做之后,显示器总是将我的多维数据集显示为 0.0 字节,如果我从文档中运行示例查询,我会收到“超时访问多维数据集”错误。
我注意到的另一件奇怪的事情是,“构建”对话框显示了今天日期的开始日期,我无法对其进行编辑。不确定这是否与我所看到的怪异有关,但谁能告诉我 Kylin 如何确定放在那里的价值?
无论如何,非常感谢有关如何调试它的任何想法。我检查了日志,但没有看到任何对我来说非常有用的东西。这是我发现的:
==========================[QUERY]===============================
SQL: select part_dt, sum(price) as total_selled, count(distinct
seller_id) as sellers from kylin_sales group by part_dt order by
part_dt
User: ADMIN
Success: false
Duration: 0.0
Project: learn_kylin
Realization Names: [kylin_sales_cube]
Cuboid Ids: [64]
Total scan count: 0
Result row count: 0
Accept Partial: true
Is Partial Result: false
Hit Exception Cache: false
Storage cache used: false
Message: Error while executing SQL "select part_dt, sum(price) as
total_selled, count(distinct seller_id) as sellers from kylin_sales
group by part_dt order by part_dt
LIMIT 50000": Timeout visiting cube!
==========================[QUERY]===============================
2016-04-30 03:45:32,310 ERROR [http-bio-7070-exec-9]
controller.BasicController:44 :
org.apache.kylin.rest.exception.InternalErrorException: Error while
executing SQL "select part_dt, sum(price) as total_selled,
count(distinct seller_id) as sellers from
kylin_sales group by part_dt order by part_dt LIMIT 50000": Timeout
visiting cube!
at org.apache.kylin.rest.controller.QueryController.doQueryWithCache(QueryController.java:224)
at org.apache.kylin.rest.controller.QueryController.query(QueryController.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
编辑:用 hbase shell 查看 HBase,我可以看到 Kylin 肯定连接到 HBase,至少足以创建表等等。但是看起来是多维数据集的后备存储的表是空的。
hbase(main):006:0> list
TABLE
KYLIN_PC2ZBJAZEC
kylin_metadata
2 row(s) in 0.0270 seconds
=> ["KYLIN_PC2ZBJAZEC", "kylin_metadata"]
hbase(main):007:0> list 'KYLIN_PC2ZBJAZEC'
TABLE
KYLIN_PC2ZBJAZEC
1 row(s) in 0.0160 seconds
=> ["KYLIN_PC2ZBJAZEC"]
hbase(main):008:0>