Spagobi Server Installation v3
Spagobi Server Installation v3
Spagobi Server Installation v3
Angelo Bernabei
2014/07/24 09:41
spagobi_server - SpagoBI Installation
Table of Contents
Install JDK .............................................................................................................................................................................. 3
Install Tomcat .......................................................................................................................................................................... 3
Install SpagoBI Metadata DB .................................................................................................................................................. 3
Deploy SpagoBI WebApplication on Tomcat .......................................................................................................................... 4
Configure SpagoBI .................................................................................................................................................................. 4
Edit server.xml ..................................................................................................................................................................... 4
Set Up Data Source .............................................................................................................................................................. 4
Set up Environment variables ............................................................................................................................................... 4
Context /SpagoBI .................................................................................................................................................................. 5
Context /SpagoBI*Engine ..................................................................................................................................................... 5
Thread Manager ................................................................................................................................................................... 5
Additional libraries .................................................................................................................................................................. 6
Run & Test ............................................................................................................................................................................. 6
This section describes the installation procedure for the latest release of SpagoBI. For older versions, please check here .
Beside the quick start procedure that installs all SpagoBI engines with minimal configuration effort (All-In-One), advanced
users can choose to manually select which engines to download and install.
Install JDK
Install Tomcat
Install SpagoBI Metadata DB
Deploy SpagoBI WebApplication on Tomcat
Configure SpagoBI
Edit server.xml
Set Up Data Source
Set up Environment variables
Additional libraries
Run & Test
Install JDK
If you haven't a JVM (1.7) already installed on your machine, you have to download and install it.
Install Tomcat
Download Tomcat 7.0.50 from http://tomcat.apache.org/download-60.cgi and unzip apache-tomcat-7.0.50.zip.
To check if the installation was successful:
double-click on apache-tomcat-7.0.50/bin/startup.bat
open your browser and type http://localhost:8080
you should be able to see the "Tom cat"
The Scripts db package may contain, apart from .sql scritps, a README.txt file and patches to be applied to SpagoBI
Server: follow the instructions of README.txt after having deployed SpagoBI war files as explained below.
For example, in MySql you have to open "MySql Query Browser" and execute these files:
MySQL-create.sql
MySQL-create-quartz-schema.sql
In order to recreate the Foodmart DB open MySql Administrator and execute an import of foodmart DB.
Remember to change the MySQL File dimension ( my.ini)
Don't worry if Tomcat writes some type of error in console or log files
Configure SpagoBI
Now you have to edit some configuration file.
Edit server.xml
This is Tomcat main configuration file. Here you need to set up:
DataSource
Environment variables
From SpagoBI version *2.3* context information is defined within the *META-INF/context.xml* files, which are already
included in all packages.
<GlobalNamingResources>
<Resource auth= "Container" driverClassName= "com.mysql.jdbc.Driver" maxActive= "20" maxIdle= "10" maxWait= "-1"
name= "jdbc/spagobi" password= "root" type= "javax.sql.DataSource" url= "jdbc:mysql://localhost/spagobi" username=
"root" />
<Resource auth= "Container" driverClassName= "com.mysql.jdbc.Driver" maxActive= "20" maxIdle= "10" maxWait= "-1"
name= "jdbc/foodmart" password= "root" type= "javax.sql.DataSource" url= "jdbc:mysql://localhost/foodmart"
username= "root" />
The first represents the Connection pool for SpagoBI metadata and the second the Connection pool for Foodmart ( DWH
used for demos )
Note that the JDBC driver must be available under the /lib folder.
<GlobalNamingResources>
This path is used to store resources that SpagoBI Server will look for at the specified directory. These resources are:
QBE datamarts
Talend jobs
Images that are used within reports
HTML files
.xls. or .csv files used in self-service datasets
Starting SpagoBI 4, Mondrian schemas are made available to SpagoBI Server under a dedicated catalog.
These classes implements the interaction between SpagoBI and the SSO system.
it.eng.spagobi.services.common.FakeSsoService(NO SSO)
it.eng.spagobi.services.cas.CasSsoService ( CAS 2.0 )
it.eng.spagobi.services.cas.CasSsoServiceNoProxy( CAS 2.0 , without WebService Security )
it.eng.spagobi.services.cas.CasSsoService3 ( CAS 3.0 )
it.eng.spagobi.services.cas.CasSsoService3NoProxy ( CAS 3.0, without WebService Security )
Context /SpagoBI
These context information are embedded in META-INF/context.xml, but you can insert this xml in server.xml if you prefere.
<Context docBase= "SpagoBI" path= "/SpagoBI" privileged= "true" reloadable= "true" >
<ResourceLink global= "jdbc/spagobi" name= "jdbc/spagobi" type= "javax.sql.DataSource" />
<ResourceLink global= "jdbc/foodmart" name= "jdbc/foodmart" type= "javax.sql.DataSource" />
<ResourceLink global= "spagobi-resource-path" name= "spagobi-resource-path" type= "java.lang.String" />
<ResourceLink global= "spagobi-sso-class" name= "spagobi-sso-class" type= "java.lang.String" />
<ResourceLink global= "spagobi-host-url" name= "spagobi-host-url" type= "java.lang.String" />
</Context>
You have to define /SpagoBI Context, this configuration depends on the Tomcat version ( check on [ http://www.apache.org
])
Context /SpagoBI*Engine
These context information are true for all ENGINE and are embedded in META-INF/context.xml, but you can insert this xml
in server.xml if you prefere.
Thread Manager
SpagoBI uses a Thread manager in off-line activities to:
It's possible to configure the number of thread, in server.xml you have to put:
*Important*: you have to put this resource link in /SpagoBITalendEngine and /SpagoBICommonJEngine
Context: <ResourceLink global= "wm/SpagoWorkManager" name= "wm/SpagoWorkManager" type=
"jcommonj.work.WorkManager" />
Additional libraries
Each SpagoBI WebApplication contains all libraries required to properly run it.
As for resources defined in server.xml you need to include these libraries in /LIB folder.
commonj-twm.jar
concurrent.jar
mysql-connector-java-5.0.8-bin.jar
foo-commonj.jar
some required libraries for JDBC Drivers.
You can find these libraries in source distribution or in the All-In-One package.
biadmin/biadmin
bitest/bitest
bimodel/bimodel
bidev/bidev
biuser/biuser
Choose a user and log in: now you are ready to start!