Documente Academic
Documente Profesional
Documente Cultură
Alberto Ghedin
2014/07/29 12:08
Table of Contents
Engines Configuration ............................................................................................................................................................... 3
Internal Engines ...................................................................................................................................................................... 5
External Engines ..................................................................................................................................................................... 5
Summary of engine configuration options ............................................................................................................................. 6
Data Source Configuration ....................................................................................................................................................... 6
SpagoBI Configuration ............................................................................................................................................................. 7
Logging ................................................................................................................................................................................... 7
Mail Server ............................................................................................................................................................................. 8
DBMS Type ............................................................................................................................................................................ 9
Database schema .................................................................................................................................................................. 9
Maximum file size ................................................................................................................................................................ 10
Date Format .......................................................................................................................................................................... 10
Language ............................................................................................................................................................................... 10
Context name ........................................................................................................................................................................ 10
JNDI name ............................................................................................................................................................................ 10
SpagoBI Installation as a portal application ........................................................................................................................... 11
This section describes the configuration procedure for SpagoBI 3 and later. For older versions, please check here .
Engines Configuration
Internal Engines
External Engines
Summary of engine configuration options
Data Source Configuration
SpagoBI Configuration
Logging
Mail Server
DBMS Type
Database schema
Maximum file size
Date Format
Language
Context name
JNDI name
SpagoBI Installation as a portal application
Engines Configuration
All Engines have a default configuration at startup.
You can manually edit engines configuration via the Engines Management functionality under the Resources menu in
SpagoBI homepage.
In this list you can find one instance of each engine type.
Using the editor you can modify engine configuration as follows:
edit the URL of external engines, in case you installed that engine in a diferent server.
create a duplicate instance of an engine to balance load.
There are 2 types of engines:
Internal: installed within /SpagoBI context
External: installed within a specific context (e.g., /SpagoBIJPivot )
For each type of engine the administrator can set:
label
name
description
document type: predefined list of document types that can be implemented using the engine
engine type: external or internal
Data Set: if this option is enabled, any analytical document of this type can be associated to a dataset from the
document detail page
Data Source: if this option is enabled, any analytical document of this type can be associated to a data source from the
document detail page
Details about the configuration process for each engine are provided below.
Internal Engines
In this case you only need to set the implementation class.
External Engines
In this case you need to set:
URL: the URL used by browser to call the Engine
Driver: the implementation class of specific driver
Data Set
Dashboard
Data Source
Class
it.eng.spagobi.engines.dashboard.SpagoBIDashboardInt
Chart
it.eng.spagobi.engines.chart.SpagoBIChartInternalEngin
Dossier
it.eng.spagobi.engines.dossier.SpagoBIDossierInternalE
Office Document
it.eng.spagobi.engines.officedocument.SpagoBIOfficeD
Document Composition
it.eng.spagobi.engines.documentcomposition.SpagoBID
Kpi
it.eng.spagobi.engines.kpi.SpagoBIKpiInternalEngine
EXTERNAL
Name
Data Set
Data Source
Birt
Geo
JPivot
JPalo
JasperReport
QBE
X
X
Talend
Weka
Worksheet Engine
ConsoleEngine
GeoReportEngine
Accessibility Engine
SmartFilterEngine
SpagoBI Configuration
This section describes how to configure different options for SpagoBI.
Logging
Each WebApplication uses Log4J to log debug and error information.
You can adjust the logging verbosity level by editing the following file:
WEB/classes/log4j.properties
There are four possible logging levels:
DEBUG
ERROR
WARN
INFO
Note: for more information about log4j configuration [ http://logging.apache.org/log4j/ ]
Each WebApplication writes its log file under TOMCAT_HOME/logs. This option can be changed if needed.
SpagoBI uses Spago as J2EE Application Framewor. Spago has a specific logging system that gets redirected in log4j.
Hence, if you want to debug Spago, you will need to change the Spago Log Level at TOMCAT_HOME/webapps/SpagoBI/
WEB-INF/conf/config/tracing.xml
<TRACING>
<LOGGER isDefault= "true" name= "Spago" class= "it.eng.spago.tracing.Log4JLogger" >
<CONFIG trace_min_log_severity= "0" debug= "false" append= "true" trace_thread_name= "false" />
</LOGGER>
</TRACING>
Simply set debug="true" and debug for Spago will be enabled.
Mail Server
SpagoBI uses 3 mail profiles
scheduler: used by SpagoBI Scheduler
user: used to send documents by e-mail
kpi_alarm: used to send alarms
These profiles can be configured via Tools -> Manages Configurations:
In order to configure mail profiles, select MAIL in the filter bar and you will be shown the mail profiles.
Below the parameters that can be configure for each mail profile:
MAIL.PROFILES.scheduler.smtphost="mail.eng.it" v
MAIL.PROFILES.scheduler.smtpport="110"
MAIL.PROFILES.scheduler.from="spagobi@eng.it"
MAIL.PROFILES.scheduler.user=""
MAIL.PROFILES.scheduler.password=""
MAIL.PROFILES.user.smtphost="mail.eng.it"
MAIL.PROFILES.user.smtpport="110"
MAIL.PROFILES.user.from="spagobi@eng.it"
MAIL.PROFILES.user.user=""
MAIL.PROFILES.user.password=""
MAIL.PROFILES.kpi_alarm.smtphost="mail.eng.it"
MAIL.PROFILES.kpi_alarm.smtpport="110"
MAIL.PROFILES.kpi_alarm.from" name="spagobi@eng.it"
MAIL.PROFILES.kpi_alarm.user" name=""
MAIL.PROFILES.kpi_alarm.password=""
DBMS Type
It is compulsory to properly configure the type of DBMS used by SpagoBI. This is done by editing the hibernate.cfg.xml
file and setting the proper Hibernate , as shown below.
<property name= "hibernate.dialect" >org.hibernate.dialect.MySQLDialect </property>
<!-<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.dialect">org.hibernate.dialect.IngresDialect</property>
<property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="hibernate.dialect">org.hibernate.dialect.DB2400Dialect</property>
-->
If you are using the SpagoBIWorkflowEngine, you also need to configure the Hibernate dialect for JBPM workflow
engine. This can be done by editing apache-tomcat-6.0.18/webapps/SpagoBI/WEB-INF/classes/jbpm.cfg.xml
As shwon below, this file contains a reference to JBPM hibernate file:
<string name= 'resource.hibernate.cfg.xml' value= 'jbpm.hibernate.cfg.xml' />
In case your file reads jbpm.hibernate.cfg.hsql.xml instead of jbpm.hibernate.cfg.xml: jbpm.hibernate.cfg.hsql.xml
is the hibernate file suitable for HSQLDB; if you are not using HSQLDB change resource.hibernate.cfg.xml property to
jbpm.hibernate.cfg.xml, then edit apache-tomcat-6.0.18/webapps/SpagoBI/WEB-INF/classes/jbpm.hibernate.cfg.xml
and change
<property name= "hibernate.dialect" >org.hibernate.dialect.MySQLDialect </property>
according to your database server.
Finally, in case you are using SpagoBI Scheduler, you need to configure the Quartz scheduler engine by editing apachetomcat-6.0.18/webapps/SpagoBI/WEB-INF/classes/quartz.properties.
The file looks similar to what is shown below:
# job store delegate class # Hsqldb delegate class
org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.HSQLDBDelegate
# Mysql /Ingres delegate class
#org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
# Postgres delegate class
#org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
# Oracle delegate class
#org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
#Simply uncomment the job store delegate class suitable to your database server and comment all others.
Database schema
SpagoBI metadata repository (DB tables) should reside in the default schema of the user using the JDBC connection.
In case this is not possible, you should edit hibernate.cfg.xml by adding the following line:
Date Format
It is possible to customize the date format displayed by SpagoBI drivers. The date format depends in general on the
LOCALE options.
You can configure it via Tools -> Manages Configurations by editing the following properties of the DATE-FORMAT
Category
SPAGOBI.DATE-FORMAT-SERVER.format="dd/MM/yyyy"
SPAGOBI.DATE-FORMAT-SERVER.extJsFormat="d/m/Y"
SPAGOBI.DATE-FORMAT.format"dd/MM/yyyy"
SPAGOBI.DATE-FORMAT.extJsFormat="d/m/Y"
SPAGOBI.DATE-FORMAT-IT_IT.format="dd/MM/yyyy"
SPAGOBI.DATE-FORMAT-IT_IT.extJsFormat="d/m/Y"
SPAGOBI.DATE-FORMAT-EN_US.format="MM/dd/yyyy"
SPAGOBI.DATE-FORMAT-EN_US.extJsFormat=valueCheck="m/d/Y"
SPAGOBI.DATE-FORMAT-FR_FR.format="dd/MM/yyyy"
SPAGOBI.DATE-FORMAT-FR_FR.extJsFormat="d/m/Y"
SPAGOBI.DATE-FORMAT-ES_ES.format="dd/MM/yyyy"
SPAGOBI.DATE-FORMAT-ES_ES.extJsFormat="d/m/Y"
SPAGOBI.TIMESTAMP-FORMAT.format="dd/MM/yyyy hh:mm:ss"
SPAGOBI.TIMESTAMP-FORMAT.extJsFormat="d/m/Y H:i:s"
Note that these formats only affect formats of dates shown in documents parameter selection. The format of dates actually
passed to SpagoBI reports (as parameters values) do not depend on the LOCALE.
Language
SpagoBI supports Java standard i18n. Each user can choose the preferred language. The default language is read from the
browser.
You can set different language supported via Tools -> Manages Configurations by changing the following properties of the
LANGUAGE_SUPPORTED Category
SPAGOBI.LANGUAGE_SUPPORTED.LANGUAGES="[it,IT],[en,US],[fr,FR],[es,ES]"
SPAGOBI.LANGUAGE_SUPPORTED.LANGUAGE.default="en,US"
Context name
You can change the context name via Tools -> Manages Configurations by changing this property of
GENERIC_CONFIGURATION Category
SPAGOBI.SPAGOBI_CONTEXT=/SpagoBI
JNDI name
You can change the JNDI names used to lookup environment variables via Tools -> Manages Configurations by changing
the following properties of the GENERIC_CONFIGURATION Category
SPAGOBI.SPAGOBI_HOST_JNDI= java://comp/env/spagobi_host_url
SPAGOBI.RESOURCE_PATH_JNDI_NAME= java://comp/env/spagobi_resource_path
SPAGOBI_SSO.INTEGRATION_CLASS_JNDI=java://comp/env/spagobi_sso_class
Note that these properties are valid only within SpagoBI core project.
In addition, each External Engine has engine-config.xml where you can change some JNDI names such as:
<INTEGRATION_CLASS_JNDI>java://comp/env/spagobi_sso_class </INTEGRATION_CLASS_JNDI>
<SPAGOBI_SERVER_URL_JNDI_NAME>java://comp/env/spagobi_service_url </
SPAGOBI_SERVER_URL_JNDI_NAME>
<RESOURCE_PATH_JNDI_NAME>java://comp/env/spagobi_resource_path </RESOURCE_PATH_JNDI_NAME>
We recommend to chane these names only in case you have trouble with your Application Server