我试图运行我的第一个bi服务器5.1
它在Windows 8.1上运行(是的,我知道)和mysql。 Pentaho BI服务器
我终于让它运行了。我有一个数据源到我的本地数据库但是当我尝试加载以下xml并生成jpivot视图时,我得到错误17,如下所示。我测试了数据源,并表示没问题。
XML
<Schema name="New Schema1">
<Cube name="cubo" visible="true" cache="true" enabled="true">
<Table name="data_original" alias="">
</Table>
<Dimension type="StandardDimension" visible="true" name="Date">
<Hierarchy name="Date" visible="true" hasAll="true">
<Level name="date" visible="true" table="data_original" column="date" type="Timestamp" uniqueMembers="false" formatter="MM-dd-yyyy hh:nn:ss">
</Level>
</Hierarchy>
</Dimension>
<Dimension type="StandardDimension" visible="true" name="Sistema">
<Hierarchy name="Sistema" visible="true" hasAll="true">
<Level name="Sistema" visible="true" table="data_original" column="sistema" type="String" uniqueMembers="false">
</Level>
</Hierarchy>
</Dimension>
<Dimension type="StandardDimension" visible="true" name="Programa">
<Hierarchy name="Programa" visible="true" hasAll="true">
<Level name="Programa" visible="true" table="data_original" column="programa" type="String" uniqueMembers="false">
</Level>
</Hierarchy>
</Dimension>
<Measure name="Uso" column="uso" datatype="Numeric" aggregator="sum" visible="true">
</Measure>
</Cube>
</Schema>
任何帮助将不胜感激
2014-09-05 18:06:29,640 ERROR [org.pentaho.platform.engine.services.solution.SolutionEngine] e2c7f50e-3548-11e4-8c84-a01d48b1d73d:SOLUTION-ENGINE:default.xjpivot:操作序列执行失败,请参阅详情如下 |错误时间:viernes 5 de septiembre de 2014 18H06&#39; CLT |会话ID:admin |实例ID:e2c7f50e-3548-11e4-8c84-a01d48b1d73d |行动顺序: |执行堆栈: 执行操作:透视视图(PivotViewComponent) |动作类:PivotViewComponent |动作描述:透视视图 |循环指数:0 堆栈跟踪:org.pentaho.platform.api.engine.ActionExecutionException:RuntimeContext.ERROR_0017 - [es_18]活动无法执行 在org.pentaho.platform.engine.services.runtime.RuntimeContext.executeComponent(RuntimeContext.java:1211) 在org.pentaho.platform.engine.services.runtime.RuntimeContext.executeAction(RuntimeContext.java:1151) 在org.pentaho.platform.engine.services.runtime.RuntimeContext.performActions(RuntimeContext.java:1063) 在org.pentaho.platform.engine.services.runtime.RuntimeContext.executeLoop(RuntimeContext.java:1013) 在org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSequence(RuntimeContext.java:895) 在org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSequence(RuntimeContext.java:797) at org.pentaho.platform.engine.services.solution.SolutionEngine.executeInternal(SolutionEngine.java:352) 在org.pentaho.platform.engine.services.solution.SolutionEngine.execute(SolutionEngine.java:282) 在org.pentaho.platform.engine.services.solution.SolutionEngine.execute(SolutionEngine.java:188) 在org.pentaho.jpivot.AnalysisViewService.getNewAnalysisViewRuntime(AnalysisViewService.java:553) 在org.pentaho.jpivot.Pivot_jsp._jspService(Pivot_jsp.java:472) 在org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:723) 在org.pentaho.platform.web.servlet.PluginDispatchServlet.service(PluginDispatchServlet.java:89) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.pentaho.platform.web.http.filters.PentahoWebContextFilter.doFilter(PentahoWebContextFilter.java:185) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.pentaho.platform.web.http.filters.PentahoRequestContextFilter.doFilter(PentahoRequestContextFilter.java:87) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:378) 在org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) 在org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:390) at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) 在org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:390) 在org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) 在org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:390) 在org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174) 在org.pentaho.platform.web.http.security.PentahoBasicProcessingFilter.doFilterHttp(PentahoBasicProcessingFilter.java:115) 在org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:390) 在org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) 在org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:390) 在org.pentaho.platform.web.http.filters.HttpSessionPentahoSessionIntegrationFilter.doFilter(HttpSessionPentahoSessionIntegrationFilter.java:263) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:390) 在org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) 在org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 在org.springframework.security.util.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:390) 在org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175) 在org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.pentaho.platform.web.http.filters.SystemStatusFilter.doFilter(SystemStatusFilter.java:55) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:114) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.pentaho.platform.web.http.filters.WebappRootForwardingFilter.doFilter(WebappRootForwardingFilter.java:70) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.pentaho.platform.web.http.filters.PentahoPathDecodingFilter.doFilter(PentahoPathDecodingFilter.java:33) 在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) 在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) 在org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879) 在org.apache.coyote.http11.Http11AprProtocol $ Http11ConnectionHandler.process(Http11AprProtocol.java:617) 在org.apache.tomcat.util.net.AprEndpoint $ Worker.run(AprEndpoint.java:1774) 在java.lang.Thread.run(Thread.java:745)
。
更新 添加了以下
系统/简单JNDI / jdbc.properties
local/type=javax.sql.DataSource
local/driver=com.mysql.jdbc.Driver
local/url=jdbc:mysql://localhost/local
local/user=********
local/password=********
的Tomcat / CONF / context.xml中
<Resource name="jdbc/local"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="**********"
password="********"
driverClassName="org.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/base_url" (base_url is not the name, just used it for security issues
/>
答案 0 :(得分:0)
您是否手动编写了XML?或者您使用过Pentaho Schema Workbench(PSW)?有时使用PSW并验证架构很有用。此外,对于日期,请使用type =“TimeDimension”
答案 1 :(得分:0)
架构中的表引用不是正确的:如果层元素引用除事实表之外的表,则层元素需要将Table元素作为子元素;
Levels上的table属性不是必需的,除非层次结构的表元素实际上是表连接,使用多个表,并且您需要指定从哪个表中读取元素。
上的文档