zoukankan      html  css  js  c++  java
  • Mondrian xmla Provider的配置

    To will setup XMLA service, follow these steps.  

    1. Describe the data sources in datasources.xml 

         In WEB-INF directory of your webapp, create a file called datasources.xml, with content like this:

         

    <?xml version="1.0"?>
    <DataSources>
      <DataSource>
        <DataSourceName>MondrianFoodMart</DataSourceName>
        <DataSourceDescription>FoodMart 2000 Data Warehouse From MS Analysis Services</DataSourceDescription>
        <URL>http://localhost:8080/mondrian/xmla</URL>
        <DataSourceInfo>Provider=mondrian; Jdbc=jdbc:odbc:MondrianFoodMart; JdbcDrivers=sun.jdbc.odbc.JdbcOdbcDriver</DataSourceInfo>
        <ProviderType>MDP</ProviderType>
        <AuthenticationMode>Unauthenticated</AuthenticationMode>
        <Catalogs>
            <Catalog name="FoodMart">
                <Definition>/WEB-INF/schema/FoodMart.xml</Definition>
            </Catalog>
            <Catalog name="Marketing">
                <DataSourceInfo>Provider=mondrian; Jdbc=jdbc:odbc:MarketingDB; JdbcDrivers=sun.jdbc.odbc.JdbcOdbcDriver</DataSourceInfo>
                <Definition>/WEB-INF/schema/Marketing.xml</Definition>
            </Catalog>
        </Catalogs>
      </DataSource>

      <DataSource>
        <DataSourceName>PostgreSQLTest</DataSourceName>
        <DataSourceDescription>Test Data Warehouse On PostgreSQL</DataSourceDescription>
        <URL>http://localhost:8080/mondrian/xmla</URL>
        <DataSourceInfo>Provider=mondrian; Jdbc=jdbc:postgresql://localhost/olap; JdbcDrivers=org.postgresql.Driver; JdbcUser=pgsql; JdbcPassword=pgsql</DataSourceInfo>
        <ProviderName>Mondrian</ProviderName>
        <ProviderType>MDP</ProviderType>
        <AuthenticationMode>Unauthenticated</AuthenticationMode>
        <Catalogs>
            <Catalog name="Test">
                <Definition>/WEB-INF/schema/TestPgsql.xml</Definition>
            </Catalog>
        </Catalogs>
      </DataSource>
    </DataSources>

    备注说明:

    URL:xmla所在地址,tomcat端口号可能不同,请改为安装tomcat时设置的端口号;datacourceinfo部分

    Provider:提供者必须是mondrian

    Jdbc:数据库jdbc驱动的路径,此处为acceess数据库,不同数据库的jdbc路径请参阅相关文档

    JdbcUser:用户名

    JdbcPassword:密码

    JdbcDrivers:jdbc完整的驱动名称,此处为access数据库,不同数据库的驱动名称请参阅相关文档

    Catalog:cube文件存放的路径

    <ProviderType> and <AuthenticationMode> are ignored because the XML/A implementation currently only supports 'MDP' and 'Unauthenticated'.

    Multiple data sources and multiple catalogs

         if you intend to use Mondrian with Microsoft's ADOMD.NET client library or Simba's O2X bridge, the data sources file must have precisely one <DataSource> element. These clients will ignore all but one data source. Other XML/A clients, such as Rex, work fine with multiple data sources.

    Note that each catalog has a name attribute, and the URI (path) of an XML schema file. The name of the catalog must match the name attribute in the schema file (for example <Schema name="FoodMart">).

    Whether  you use one data source or several, the catalogs in the datasources.xml file must have unique names.

    Configure XmlaServlet in your web.xml

    (1)       修改…Tomcat 6.0webappsmondrianWEB-INF中web.xml文件对应内容如下:

      <servlet>

        <servlet-name>MondrianXmlaServlet</servlet-name>

        <servlet-class>mondrian.xmla.impl. MondrianXmlaServlet </servlet-class>

        <!--

        <init-param>

          <param-name>DataSourcesConfig</param-name>

          <param-value>/datasources.xml</param-value>

        </init-param>

        -->

      </servlet>

  • 相关阅读:
    SpringCloud Ribbon实现负载均衡,SpringCloud Ribbon自定义策略
    springCloud zookeeper整合,Java Zookeeper微服务注册中心整合
    SpringCloud Eureka安装和使用,SpringCloud使用Eureka作为服务注册中心
    Linux yum安装Consul服务中心,Centos7在线安装consul
    SpringCloud consul安装和使用,Windows Consul安装和使用,Java consul服务中心安装和使用
    哔哩哔哩视频下载到电脑,bilibili UWP下载的视频重命名,blibli视频下载到电脑
    elasticsearch kibana安装和配置
    elasticsearch安装和配置,elasticsearch启动报错:can not run elasticsearch as root
    cmd打开当前文件所在目录,cmd进入当前文件目录,cmd进入指定目录
    京东到家 首页 笔记
  • 原文地址:https://www.cnblogs.com/zzw1787044/p/4224731.html
Copyright © 2011-2022 走看看