<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4547836498257352074</id><updated>2011-10-10T06:55:58.227+02:00</updated><category term='Pentaho CDA'/><category term='Development'/><category term='Pentaho Dashboards'/><category term='Pentaho'/><category term='Pentaho PDI'/><title type='text'>Rama's Free Thoughts</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-2069150977439850671</id><published>2010-11-21T16:43:00.023+01:00</published><updated>2010-11-22T08:55:43.469+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho'/><title type='text'>Adjust detail rows height in WAQR templates dynamically</title><content type='html'>Today I'm back&amp;nbsp;writing something about WAQR. Yesterday one of my customers wrote me about a problem they were having while executing WAQR reports that has a long text in their columns. If you had columns with a very long text in it and you're exporting the WAQR report in PDF &amp;nbsp;the columns text gets truncated. Stupid problem but apparently not so trivial to be solved within WAQR templates. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;About WAQR&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;WAQR (Web AdHoc Query Reporting) is an interesting module in the Pentaho suite.&amp;nbsp;It sits on top of the report engine and the metadata layer and&amp;nbsp;lets the users easily&amp;nbsp;build tabular reports to be used for their daily activities or to just to export some complex data in an easy way from the Pentaho system.&amp;nbsp;The report definition is based on a wizard that takes the users along these easy steps:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;select a template, from the set of&amp;nbsp;available templates,&amp;nbsp;and a business model.&amp;nbsp;&lt;/li&gt;&lt;li&gt;decide were to put which fields in the report layout&lt;/li&gt;&lt;li&gt;adjust some visualization attributes or/and can apply filter conditions and define sort fields and orders&lt;/li&gt;&lt;li&gt;manage some page layout attributes&lt;/li&gt;&lt;li&gt;.... and here we go! We get the report.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;WAQR templates are basically the old JFreereport report designer's template files so they are simple xml files we can view and modify. THEY ARE NOT compatible with the newer report designer template files&lt;span class="Apple-style-span" style="font-family: Times,'Times New Roman',serif;"&gt;.&amp;nbsp; &lt;/span&gt;The wizard uses text manipulation routines to create a report-definition out of the template. We all know that sooner or later WAQR will be replaced by something more interactive and more attractive&amp;nbsp; that will use the latest report engine's version. But for the moment we have this and with this we have to battle.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to expand the height of the detail rows dynamically when export type is PDF&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Try to build a new report with WAQR putting in the report definition a field with a very log text in it. If you try to export the report using the PDF format you will get the text truncated. To fix this it's only a matter of minutes and you need to&amp;nbsp;modify the report template&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;adding a new configuration attribute for the report engine and&amp;nbsp;&lt;/li&gt;&lt;li&gt;add a new attribute to the details band to set the row height dynamic.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Below I'm going to summarize all these steps modifying the Basic template given with the Pentaho demo solution.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Go to &lt;i&gt;&amp;lt;biserver_home&amp;gt;/pentaho-solutions/system/waqr/templates/Basic&lt;/i&gt; and open &lt;i&gt;jfreereport-template.xml&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Locate the configuration xml element near the end of the file. Add the following line as a child of the configuration element&lt;br /&gt;&lt;pre style="background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; &amp;lt;property name="org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.AssumeOverflowY"&amp;gt;true&amp;lt;/property&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Add the attribute &lt;i&gt;dynamic = "true"&lt;/i&gt; to the items element &lt;/li&gt;&lt;li&gt;Save the template and if the BI Server is running refresh the cache using the&lt;i&gt; Tools -&amp;gt; Refresh -&amp;gt; Repository Cache&lt;/i&gt; menu entry&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-2069150977439850671?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/2069150977439850671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/11/handling-dynamic-detail-rows-height-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/2069150977439850671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/2069150977439850671'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/11/handling-dynamic-detail-rows-height-in.html' title='Adjust detail rows height in WAQR templates dynamically'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-3790085950755595457</id><published>2010-08-26T01:05:00.002+02:00</published><updated>2010-08-26T01:14:30.532+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho PDI'/><title type='text'>Processing group of files executing a job once per file</title><content type='html'>How many of us ever had the need to process a set of files through Kettle executing jobs or transactions on a per file base. Let me make an example to illustrate a particular use case.&lt;br /&gt;&lt;br /&gt;Suppose we've two groups of files that we call &lt;i&gt;filegroup1 &lt;/i&gt;and &lt;i&gt;filegroup2 &lt;/i&gt;and&amp;nbsp;suppose we have 2 groups of transformations that we call &lt;i&gt;transf_group1 &lt;/i&gt;and &lt;i&gt;transf_group2&lt;/i&gt;.&amp;nbsp;The requirement is: we want to execute the transformations in&amp;nbsp;&lt;i&gt;transf_group1 &lt;/i&gt;once for each file in&amp;nbsp;&amp;nbsp;&lt;i&gt;filegroup1 &lt;/i&gt;and as soon as the processing of this group finishes as a whole we want to start the execution of&amp;nbsp;&amp;nbsp;the transformations in&amp;nbsp;&lt;i&gt;transf_group2&amp;nbsp;&lt;/i&gt;once for each file in&amp;nbsp;&amp;nbsp;&lt;i&gt;filegroup2. &lt;/i&gt;Let me analyse how we can do that.&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;b&gt;A little about some&amp;nbsp;main&amp;nbsp;Kettle topics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Kettle processes informations that flows through a path made by &lt;i&gt;steps&lt;/i&gt;. The user takes the needed &lt;i&gt;steps &lt;/i&gt;from a palette, drags them into the client area and builds a workflow. That flow is made up by different types of &lt;i&gt;steps:&lt;/i&gt;&amp;nbsp;we've input/output steps, transformation steps, script steps and so on. Any &lt;i&gt;step &lt;/i&gt;has an input and an one or more outputs. It gets the information flow in input from the immediate preceding step, processes it and outputs, as a result, a new set of informations that will flow into the immediate next step. The output flow produced by the step can have a layout of fields, in terms of number and data types, that may differ from the flow in input. A set of steps chained together to built a specific task is called a &lt;i&gt;transformation&lt;/i&gt;. So &lt;b&gt;transformations = elementary tasks&lt;/b&gt;, sort of little reusable components that makes actions. A process is built coordinating a set of orchestrated tasks that can be executed in sequence or in parallel. This role of orchestrator in Kettle is filled by the &lt;i&gt;job&lt;/i&gt;. The&amp;nbsp;&lt;i&gt;job&lt;/i&gt; orchestrates the execution of a set of &lt;i&gt;transformations &lt;/i&gt;to build our complete ETL process. A job is made by a set of steps too but their intended scope is to help in orcherstrating the executions of the tasks (transformations) in our process. As you can see, we have a &lt;i&gt;job steps palette&lt;/i&gt; but it contains only steps to check conditions or prepare the execution environment. The real work is made by steps contained in the transformations.&lt;br /&gt;&lt;br /&gt;In an our ETL processes made with kettle we always have a main job, also called root job, that we start to orchestrate the execution of nested jobs or transactions. We can nest as many levels of josb and transformations we want below that main job.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How Kettle starts nested Jobs or Transactions&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The first way of starting jobs or transformations in Kettle is the stupid way. Chain them together using the &lt;i&gt;Start transaction&lt;/i&gt; or &lt;i&gt;Start job&lt;/i&gt; steps and, when the nested transaction or job steps will be reached in the owner job flow they will be started in sequence or in parallel, it depends on how they are connected. But sometimes we would like to execute a transformation or a jobs once for each line in the input flow. To do that is really simple. Go to the &lt;i&gt;step configuration &lt;/i&gt;dialog&amp;nbsp;, select the &lt;i&gt;Advanced&lt;/i&gt; tab and check&amp;nbsp;&lt;i&gt;Execute for every single row&lt;/i&gt;. We see an example of that below in the &lt;i&gt;Start transaction&lt;/i&gt; configuration dialog. You'll find the same setting in the &lt;i&gt;Start job&lt;/i&gt; configuration dialog.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_8gbGL_EIvtE/THWFxW6vmKI/AAAAAAAAAjY/xCVQziNPY8E/s1600/transf_config1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="184" src="http://4.bp.blogspot.com/_8gbGL_EIvtE/THWFxW6vmKI/AAAAAAAAAjY/xCVQziNPY8E/s320/transf_config1.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;The job step &lt;i&gt;Add filenames to result&lt;/i&gt; and why it isn't good for us&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;So far so good. Well, go back to our requirements now. Because we said that&amp;nbsp;we have 2 groups of transformations,&amp;nbsp;&lt;i&gt;transf_group1&amp;nbsp;&lt;/i&gt;and&amp;nbsp;&lt;i&gt;transf_group2&lt;/i&gt;, it is clear that we will have two jobs one that chains all the transformations of&amp;nbsp;&lt;i&gt;transf_group1&amp;nbsp;&lt;/i&gt;and the second all the transformations for&amp;nbsp;&lt;i&gt;transf_group2. &lt;/i&gt;We call them respectively &lt;i&gt;jobs1 &lt;/i&gt;and &lt;i&gt;jobs2&lt;/i&gt;. So we will have:&lt;br /&gt;&lt;br /&gt;a) A root job chains together 2 jobs &lt;i&gt;job1&lt;/i&gt; and &lt;i&gt;job2.&lt;/i&gt;&lt;br /&gt;b) Each job chains all the transformations of the respective group.&lt;br /&gt;c) Because the two job encloses the group of transformations we are sure that the second group of transformations will be executed after the first group, as a whole, will be executed.&lt;br /&gt;&lt;br /&gt;Looking at what explained above regarding the way to start a transformation in a job, to start the two jobs once per file we need step that reads the list of files from a specified directory, fills the result with the set of complete filenames so that it can be used to start our job once for file in the result. Because we talked about two different filegroups we need two of steps like this chained before the respective job. We look into the job steps palette and we found a step that could be fine for us the &lt;i&gt;Add filenames to result&lt;/i&gt;. The picture below depict a possible flow for our root job.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_8gbGL_EIvtE/THWNM3XFS6I/AAAAAAAAAjg/08TtVGQd4Zs/s1600/transf2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="85" src="http://4.bp.blogspot.com/_8gbGL_EIvtE/THWNM3XFS6I/AAAAAAAAAjg/08TtVGQd4Zs/s400/transf2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;We're starting to smile but unfortunately this solutions is not applicable because it doesn't work. To understand the why we need to understand the difference between &lt;i&gt;row result&lt;/i&gt;&amp;nbsp;and &lt;i&gt;file result&lt;/i&gt;&amp;nbsp;for Kettle.&amp;nbsp;Typically a&amp;nbsp;file result is a set of filenames that can be used only by steps that are able to manage attachments. The Mail step is the one step that can manage such a result. Row results instead are made by real data typically as output of a transaction. If you &amp;nbsp;look at the Kettle internals you can notice that a job step manages these two datasets as two completely separated collections. The important thing to note here is that whenever you check &lt;i&gt;Execute for every single row &lt;/i&gt;in our job/transformation configuration your're saying that you'll start your job/transformation for each row of your row result. So way our solution isn't good for us? Because our&amp;nbsp;&lt;i&gt;Add filenames to result&lt;/i&gt; steps fill a file result so our jobs will never starts.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So what to do??&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The solution is make a transformation whose only goal is to get the file list and use that list to populate a result list as shown in the picture below.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_8gbGL_EIvtE/THWb6N5MyzI/AAAAAAAAAjo/-68mMUH9LKg/s1600/transf3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="90" src="http://4.bp.blogspot.com/_8gbGL_EIvtE/THWb6N5MyzI/AAAAAAAAAjo/-68mMUH9LKg/s320/transf3.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;You need to call that transformation through a Transformation step in our root job chaining it before job1 and job2 to get respectively &lt;i&gt;filegroup1&lt;/i&gt; and &lt;i&gt;filegroup2&lt;/i&gt;. Here it is the complete layout of our definitive root job&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_8gbGL_EIvtE/THWdULtSGlI/AAAAAAAAAjw/jG1xY_NsakA/s1600/transf4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="45" src="http://2.bp.blogspot.com/_8gbGL_EIvtE/THWdULtSGlI/AAAAAAAAAjw/jG1xY_NsakA/s400/transf4.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;You can see the two transformations that gets the file lists before the two jobs. Using this approach the result file list that comes from the transformation fills the&amp;nbsp;&lt;i&gt;row result&lt;/i&gt; and the job can be executed once per file that is present in our directory. Remember check the magic flag&amp;nbsp;&lt;i&gt;Execute for every single row &lt;/i&gt;in the&lt;i&gt; Start job step &lt;/i&gt;configuration as detailed above to correctly activate the jobs once per file as detailed in the paragraph above.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to execute the provided sample&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To execute my &lt;a href="http://download.serasoft.it/public/filegroup_sample.zip"&gt;sample&lt;/a&gt; unzip the file in whatever directory. Edit the &lt;i&gt;get file list&amp;nbsp;transformations&lt;/i&gt;&amp;nbsp;and change the &lt;i&gt;Get file names&lt;/i&gt; step configuration according to a directory and files pattern that exists on your pc. Now, if you start the root job, you can go through the log and&amp;nbsp;clearly see&amp;nbsp;the messages that indicates the job is behaving as expected.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://download.serasoft.it/public/filegroup_sample.zip"&gt;Download from here the sample&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-3790085950755595457?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/3790085950755595457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/08/processing-group-of-files-with-kettle.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/3790085950755595457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/3790085950755595457'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/08/processing-group-of-files-with-kettle.html' title='Processing group of files executing a job once per file'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8gbGL_EIvtE/THWFxW6vmKI/AAAAAAAAAjY/xCVQziNPY8E/s72-c/transf_config1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-6862643711404378407</id><published>2010-08-25T17:52:00.002+02:00</published><updated>2010-08-25T17:54:46.948+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho PDI'/><title type='text'>Dealing with Kettle DBCache</title><content type='html'>I came from 4 weeks of summer holidays... First time in my life but it was beautiful to spend a lot of time with my family. I need to take some time for them more often.&lt;br /&gt;&lt;br /&gt;Anyway, today I was doing my usual work with &lt;a href="http://wiki.pentaho.com/display/EAI/Latest+Pentaho+Data+Integration+(aka+Kettle)+Documentation"&gt;Kettle&lt;/a&gt; but something strange happened that makes me crazy. I added a new field to my table and then I came to Kettle to update the fields layout in my &lt;a href="http://wiki.pentaho.com/display/EAI/Database+lookup"&gt;Database lookup step&lt;/a&gt;. When I tried to find out my new field from the fields list I remained surprised... No new field appeared in the fields list for my table. I cried because I thought that it magically disappeared by my table but after a rapid check with my database client I saw my field was there in my table and I was happy.&amp;nbsp;So what happened?&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cache database metadata with DBCache&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;DBCache &lt;/i&gt;is a&amp;nbsp;cache where&amp;nbsp;recurring query results (about&amp;nbsp;database&amp;nbsp;metadata informations for example) are saved the first time you access them. That informations are persisted in a file called &lt;i&gt;db.cache&lt;/i&gt; located in the &lt;i&gt;.kettle&lt;/i&gt;&amp;nbsp;directory below your home directory. Informations are saved in row format so you have a look inside the file or&amp;nbsp;edit its content.&lt;br /&gt;&lt;br /&gt;Every time, for example, you go through Kettle database explorer looking for a table layout, the first time you access table metadata that results are cached through &lt;i&gt;DBCache &lt;/i&gt;so that second time you you go through the cache saving an access to the&amp;nbsp;db. But if you forget that and you update your table DDL in any way &amp;nbsp;(like me after a veeeery long period of holidays) you could be surprised seeing that your updates seems not to be caught&amp;nbsp;by Kettle.&lt;br /&gt;&lt;br /&gt;How can we clear the cache and have our table metadata updated next time I need to access them? You can go through the &lt;i&gt;Tool &lt;/i&gt;menu and choose &lt;i&gt;Database &amp;gt; Clear&lt;/i&gt; cache and your fresh set of table metadata will be get from the database.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-6862643711404378407?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/6862643711404378407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/08/dealing-with-kettle-dbcache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6862643711404378407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6862643711404378407'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/08/dealing-with-kettle-dbcache.html' title='Dealing with Kettle DBCache'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-3393364160197154911</id><published>2010-08-14T00:25:00.005+02:00</published><updated>2010-08-25T17:53:50.793+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho'/><title type='text'>Blogging from my summer holidays</title><content type='html'>Today I was reading through my twitter client the latest news and my attention was catched by all the tweets around the latest &lt;a href="http://forums.pentaho.com/showthread.php?77828-Hey-Community-how-s-it-going"&gt;Doug post&lt;/a&gt; on the Pentaho forum. So I immediately connected through my phone browser to read that post and think about it.&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Doug's question was asking how the Pentaho community is going. Following what my Pentaho friends said in their answers to this thread I also agree that comparing downloads isn't a good metric to judge how a community is going. The spirit of a community is made by all the people that every day gives a precious help in coding, helps people understanding the product or coming out from problems (that they think they are hard but they aren't) and talks about the product.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;I personally come from another experience with another important opensource community (not a BI product). From the outside, I remember, everything seemed wonderful. The product stayed for a very long time on top as the best project in one of the biggest open source forges. But from the inside everything was totally different and the approach was really cold.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Here may experience is totally different, I'm breathing a completely different air. I found real people that cooperates everyday helping each other to solve their everyday problems with the product or other related technologies. They support people through irc, the forums and the wiki. I'm a software architect so I decided to help mainly with code contributions, but also in the forums and in writing articles about some pentaho topics in my blog .&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;I studied and I'm continuously studying the code and I'm working with wonderful guys: &lt;a href="http://pedroalves-bi.blogspot.com/"&gt;Pedro&lt;/a&gt;, &lt;a href="http://pentahomusings.blogspot.com/"&gt;Tom&lt;/a&gt;, P&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;aul and many other.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;In our Pentaho community, the irc channel is the something I really enjoy but unfortunately I can participate only a few times because very often the various proxies broke my ability to connect. It's a sort of noisy room where anyone expose problems and quickly gets solutions. You always find someone available to support you. But it is also a place to talk with friends about everything. A sort of meeting place. That is wonderful.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;I said friends not colleagues and this is a very important distinction. These are the things that makes me thinking that IT IS really a community that works and not the number of downloads or any other stupid indicator.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Tahoma, Arial, Calibri, Geneva, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-3393364160197154911?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/3393364160197154911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/08/blogging-from-my-summer-holidays.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/3393364160197154911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/3393364160197154911'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/08/blogging-from-my-summer-holidays.html' title='Blogging from my summer holidays'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-6225389692469016458</id><published>2010-07-21T17:56:00.006+02:00</published><updated>2010-07-21T18:01:33.001+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho PDI'/><category scheme='http://www.blogger.com/atom/ns#' term='Development'/><title type='text'>Setup Kettle debugging in 2 minutes</title><content type='html'>Sometimes it could be very interesting to be able to debug something to understand better how it works from an internal standpoint. My experience says that this is the case with the majority the opensource projects: sooner or later this is will happen.&lt;br /&gt;&lt;br /&gt;Today that happened with Kettle trying to better understand if my assumptions were correct.&lt;br /&gt;&lt;br /&gt;So how can we easily debug Kettle? The answer is very easy  is: use remote debugging. I'll explain everything in a minute. The development tool I'm using is &lt;a href="http://www.jetbrains.com/index.html"&gt;IntelliJ IDEA&lt;/a&gt; but it is fairly simple to set up everything with &lt;a href="http://www.eclipse.org/"&gt;Eclipse  &lt;/a&gt;and &lt;a href="http://netbeans.org/"&gt;Netbeans&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Setup Kettle to enable remote debugging&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1) If you're on &lt;i&gt;Windows&lt;/i&gt;, open &lt;i&gt;Spoon.bat&lt;/i&gt; and add the following line&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;The same on &lt;i&gt;Linux &lt;/i&gt;will be to open &lt;i&gt;Spoon.sh&lt;/i&gt; and add the following line&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;I've used the port 8000 as the socket port number at which the debugger attaches but feel free to use the one you prefer.&lt;br /&gt;&lt;br /&gt;2) Go to the last line of &lt;i&gt;Spoon .bat&lt;/i&gt; or &lt;i&gt;Spoon.sh&lt;/i&gt; and update that last line as follow&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Linux (Spoon.sh)&lt;/i&gt;:&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; $JAVA_BIN $JAVA_OPTS $OPT $STARTUP -lib $LIBPATH "${1+$@}"  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;i&gt;Windows (Spoon.bat)&lt;/i&gt;:&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; start javaw %JAVA_OPTS% %OPT% -jar launcher\launcher.jar -lib %LIBSPATH% %_cmdline%  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Configure IntelliJ IDE for remote debugging&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1) Configure a project for Kettle source tree&lt;br /&gt;2) Choose &lt;i&gt;Build &amp;gt; Edit&lt;/i&gt; configurations from the menu&lt;br /&gt;3) The &lt;i&gt;Run/Debug Configurations &lt;/i&gt;dialog opens. Choose &lt;i&gt;Add New Configuration&lt;/i&gt; (the + sign in the upper left corner) and select &lt;i&gt;Remote &lt;/i&gt;from the &lt;i&gt;Add New Configuration&lt;/i&gt; list&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_8gbGL_EIvtE/TEcV24B00HI/AAAAAAAAAiw/I-a0IFALnMU/s1600/debug_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="406" src="http://1.bp.blogspot.com/_8gbGL_EIvtE/TEcV24B00HI/AAAAAAAAAiw/I-a0IFALnMU/s640/debug_1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;3) The &lt;i&gt;Remote Configuration&lt;/i&gt; dialog opens&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_8gbGL_EIvtE/TEcWla7tQuI/AAAAAAAAAi4/YcsDtBI0H9s/s1600/debug_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="406" src="http://4.bp.blogspot.com/_8gbGL_EIvtE/TEcWla7tQuI/AAAAAAAAAi4/YcsDtBI0H9s/s640/debug_2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Configure &lt;i&gt;Transport&lt;/i&gt; and &lt;i&gt;Debugger mode&lt;/i&gt; choices as displayed in the image above. The set the &lt;i&gt;Host address&lt;/i&gt; (localhost in this case or wherever you need) and the &lt;i&gt;port &lt;/i&gt;(8000 in my case) and press Ok&lt;br /&gt;&lt;br /&gt;&lt;b&gt;And now let's dance...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;So now start Kettle. As soon as Kettle started load you job or transformation and, before running it, launch the debugger from your IDE. As soon as the debugger started you're ready to launch your job/transformation and begin your investigation. The advantage of this approach is the ability to debug also remotely running kettle instances and that is useful sometimes in helping to investigate problems.&lt;br /&gt;&lt;br /&gt;Have fun playing with your Kettle and see you the next article.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-6225389692469016458?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/6225389692469016458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/setup-kettle-debugging-in-2-minutes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6225389692469016458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6225389692469016458'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/setup-kettle-debugging-in-2-minutes.html' title='Setup Kettle debugging in 2 minutes'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_8gbGL_EIvtE/TEcV24B00HI/AAAAAAAAAiw/I-a0IFALnMU/s72-c/debug_1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-7852370161480334869</id><published>2010-07-19T17:16:00.007+02:00</published><updated>2010-07-21T17:01:02.277+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Development'/><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho Dashboards'/><title type='text'>CDF internationalization early access release</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;Today I finally completed the first implementation of the CDF Internationalization support. It is my first big effort to help in CDF and I'm proud I had the opportunity to work on a so&amp;nbsp;important&amp;nbsp;missing feature.&lt;br /&gt;This is a first release, a sort of early access release, and it is available after building the framework sources from the repository trunk. I hope anyone can share ideas or suggestions on this feature helping making it better.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How does it works&lt;/b&gt;&lt;br /&gt;CDF internationalization uses a jQuery i18n plugin to&amp;nbsp;handle internationalized messages. The plugin support has been wrapped in the CDF framework so that the user never had to bother about jQuery specifics but will use the support&amp;nbsp;CDF gives&amp;nbsp;for that. Everything rounds about resource message files as usual in the java platform.&lt;br /&gt;&lt;br /&gt;To create resources files we need to create&amp;nbsp;&amp;nbsp;a file for each locale our dashboard is going to support. These files are named &lt;i&gt;&amp;lt;name&amp;gt;.properties&lt;/i&gt;, or &lt;i&gt;&amp;lt;name&amp;gt;_&amp;lt;language&amp;gt;.properties&lt;/i&gt; or&lt;i&gt;&amp;nbsp;&amp;lt;name&amp;gt;_&amp;lt;language&amp;gt;_&amp;lt;country&amp;gt;.properties&lt;/i&gt;. For instance a resource bundle for UK will be &lt;i&gt;MessagesBundle_en_GB.properties&lt;/i&gt;. In case the message file will not be present the framework support will display the default message string and you'll get a warning in the bi server message console (nothing to be worried about but it would be better to have the required missing resource file).&lt;br /&gt;The&amp;nbsp;&lt;i&gt;&amp;lt;language&amp;gt;&lt;/i&gt;&amp;nbsp;argument is a valid ISO Language Code. These codes are the lower-case,&amp;nbsp;two-letter codes as defined by ISO-639. You can find a full list of these codes at a&amp;nbsp;number of sites, such as: &lt;a href="http://www.loc.gov/standards/iso639-2/englangn.html"&gt;http://www.loc.gov/standards/iso639-2/englangn.html&lt;/a&gt;.&lt;br /&gt;The&amp;nbsp;&lt;i&gt;&amp;lt;country&amp;gt;&lt;/i&gt;&amp;nbsp;argument is a valid ISO Country Code. These codes are the upper-case,&amp;nbsp;two-letter codes as defined by ISO-3166. You can find a full list of these codes at a&amp;nbsp;number of sites, such as: &lt;a href="http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html"&gt;http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How resource bundles are managed in CDF&lt;/b&gt;&lt;br /&gt;We have two level of messages files in CDF&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;Global message files&lt;/b&gt;: located in &lt;i&gt;&amp;lt;biserver_home&amp;gt;/pentaho_solutions/system/pentaho_cdf/resources/languages&lt;/i&gt; and useful&amp;nbsp;&amp;nbsp;when used in dashboard global templates.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Dashboard specific message files&lt;/b&gt;: located in &lt;i&gt;&amp;lt;dashboard_home&amp;gt;&lt;/i&gt; they can be distributed together with single dashboard in a sort of "package".&amp;nbsp;&amp;nbsp;To enable Dashboard specific message files support we've to add a &amp;lt;messages&amp;gt;&amp;nbsp;element to the xcdf file configuration whose value is the base name of the dashboard specific message file.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b&gt;The&amp;nbsp;CDF.i18n tag: internationalization support in HTML dashboard templates&lt;/b&gt;&lt;br /&gt;To use the internationalization support in dashboards HTML templates we implemented a tag to use to get the message string from the resource bundle and use it where required in the HTML template file. This is useful for descriptions, annotations, generic labels and similar.&lt;br /&gt;&lt;br /&gt;We can use the &lt;i&gt;CDF.i18n&lt;/i&gt; tag using the following syntax:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;CDF.i18n(&amp;lt;message_key&amp;gt;)&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;where &lt;i&gt;&amp;lt;message_key&amp;gt;&lt;/i&gt; is the message key located in the message resource bundle files.&lt;br /&gt;&lt;br /&gt;I&lt;b&gt;nternationalization support in CDF components&lt;/b&gt;&lt;br /&gt;Because of the early preview stage of this first release, for the moment, only the jFreechart component supports internationalization. In this case the support applies to the chart's title attribute.&lt;br /&gt;To support an internationalized &lt;i&gt;title&amp;nbsp;&lt;/i&gt;in a JFreechart component we added a new &lt;i&gt;titleKey&lt;/i&gt; metadata&amp;nbsp;attribute whose value is the message key for the chart title we can found in the resource bundle.&amp;nbsp;A complete internationalization support for all the CDF components (where needed) will come&amp;nbsp;shortly&amp;nbsp;so be patient.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;And here we go...&lt;/b&gt;&lt;br /&gt;For anyone who want to have a first look on this, in the bi-developer solution you have in the repository trunk has a fully working example you can have a look and experiment with. Below two screenshots of the sample dashboard I made internationalized in the Italian language. I hope you enjoy playing with this first release and stay tuned here for the next updates from the field.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_8gbGL_EIvtE/TERptJJPxCI/AAAAAAAAAig/k2hgAqe4iiA/s1600/cdf_intern_1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/_8gbGL_EIvtE/TERptJJPxCI/AAAAAAAAAig/k2hgAqe4iiA/s640/cdf_intern_1.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_8gbGL_EIvtE/TERpvFkkUhI/AAAAAAAAAio/MXwZzWxIpWo/s1600/cdf_intern_2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_8gbGL_EIvtE/TERpvFkkUhI/AAAAAAAAAio/MXwZzWxIpWo/s640/cdf_intern_2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-7852370161480334869?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/7852370161480334869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/cdf-internationalization-early-access.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/7852370161480334869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/7852370161480334869'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/cdf-internationalization-early-access.html' title='CDF internationalization early access release'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_8gbGL_EIvtE/TERptJJPxCI/AAAAAAAAAig/k2hgAqe4iiA/s72-c/cdf_intern_1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-1583259081510413350</id><published>2010-07-12T12:26:00.004+02:00</published><updated>2010-07-12T12:39:11.578+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho CDA'/><title type='text'>Joining and appending output datasets with CompoundDataAccess</title><content type='html'>An interesting topic about CDA is the ability apply join and union constructs to our incoming dataset using a&amp;nbsp; &lt;i&gt;CompoundDataAccess&lt;/i&gt; element. This definition is a sort of extension of the &lt;i&gt;DataAccess &lt;/i&gt;element and through a &lt;i&gt;type &lt;/i&gt;attribute gives us the ability to&lt;i&gt; join&lt;/i&gt; or &lt;i&gt;append &lt;/i&gt;two given &lt;i&gt;DataAccess &lt;/i&gt;datasets outputs forming a new one.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How does &lt;i&gt;CompoundDataAccess &lt;/i&gt;works internally&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;It is really interesting to have a look at the sources and see how the things really works: &lt;br /&gt;&lt;ul&gt;&lt;li&gt;when you want to join the two &lt;i&gt;DataAccess &lt;/i&gt;outputs CDA builds a little Kettle transformations and uses the Merge Join step two do the required join operation&lt;/li&gt;&lt;li&gt;if you want to append the two &lt;i&gt;DataAccess &lt;/i&gt;outputs CDA very easily appends by itself the two datasets following the order you specified in configuration file.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Remember that in either cases you can apply this operations considering only two datasets at the time for each &lt;i&gt;CompoundDataAccess &lt;/i&gt;element definition.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;CompoundDataAccess basics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To define a new &lt;i&gt;CompoundDataAccess &lt;/i&gt;element you have to mandatory specify&lt;br /&gt;&lt;ul&gt;&lt;li&gt;an&lt;i&gt; id &lt;/i&gt;attribute, to externally identify this &lt;i&gt;DataAccess &lt;/i&gt;elemement&lt;/li&gt;&lt;li&gt;a &lt;i&gt;type&lt;/i&gt; attribute that accepts two values union or join following the type of composition you're looking for.&lt;/li&gt;&lt;/ul&gt;Because &lt;i&gt;CompoundDataAccess &lt;/i&gt;is only an extension of the &lt;i&gt;DataAccess &lt;/i&gt;element, we can apply the &lt;i&gt;Parameter&lt;/i&gt;, &lt;i&gt;Columns&lt;/i&gt;, &lt;i&gt;CalculatedColumns &lt;/i&gt;and &lt;i&gt;Output &lt;/i&gt;elements following the same rules specified for &lt;i&gt;DataAccess &lt;/i&gt;in my previous post &lt;a href="http://ramathoughts.blogspot.com/2010/07/cda-configuration-files-basics-part-2.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Moreover, because the &lt;i&gt;CompundDataAccess &lt;/i&gt;element works on resulting &lt;i&gt;DataAccess &lt;/i&gt;datasets we have to preliminarily define the two needed &lt;i&gt;DataAccess&lt;/i&gt;. It is not possible (but would be a nice to have and I can think about implementing it) use &lt;i&gt;DataAccess &lt;/i&gt;elements defined in external CDA files.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Joining datasets output&lt;/b&gt;&lt;br /&gt;To join two datasets we have to define a &lt;i&gt;CompoundDataAccess &lt;/i&gt;element with the type attribute valued to the &lt;i&gt;join &lt;/i&gt;value. The join type lets you execute a&lt;b&gt; FULL OUTER JOIN&lt;/b&gt; upon the two input datasets. Required elements are:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;Left element definition&lt;/i&gt;, to specify a dataset for the left part of the join,&lt;/li&gt;&lt;li&gt;&lt;i&gt;Right element definition&lt;/i&gt;,&amp;nbsp; to specify a dataset for the right part of the join.&lt;/li&gt;&lt;/ul&gt;Anyone of the two elements accepts the following attributes:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;i&gt;id&lt;/i&gt;, is valued to the id of the &lt;i&gt;DataAccess &lt;/i&gt;element definition you are going to consider as the left/right dataset&lt;/li&gt;&lt;li&gt;&lt;i&gt;key&lt;/i&gt;, is a comma separated list of elements to be considered as the join key. Remember that the columns keys are specified &lt;i&gt;&lt;b&gt;giving their position&lt;/b&gt; &lt;b&gt;in the DataAccess query and not the name&lt;/b&gt;&lt;/i&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Below I give an example to fully understand this concept. Suppose we defined the following two &lt;i&gt;DataAccess&lt;/i&gt; definitions in our CDA file&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;   &amp;lt;DataAccess id="1" connection="1" type="sql" access="private" cache="true" cacheDuration="300"&amp;gt;  &lt;br /&gt;                &amp;lt;Name&amp;gt;Sql Query on SampleData - Jdbc&amp;lt;/Name&amp;gt;  &lt;br /&gt;         &amp;lt;Query&amp;gt;  &lt;br /&gt;                     select o.YEAR_ID, o.STATUS as status, sum(o.TOTALPRICE) as totalprice from orderfact o  &lt;br /&gt;                     group by o.YEAR_ID, o.STATUS  &lt;br /&gt;                &amp;lt;/Query&amp;gt;  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;   &amp;lt;/DataAccess&amp;gt;  &lt;br /&gt;   &amp;lt;DataAccess id="2" connection="1" type="sql" access="public" cache="true" cacheDuration="5"&amp;gt;  &lt;br /&gt;                &amp;lt;Name&amp;gt;Sql Query on SampleData&amp;lt;/Name&amp;gt;  &lt;br /&gt;        &amp;lt;Query&amp;gt;  &lt;br /&gt;                     select o.YEAR_ID, o.status, sum(o.TOTALPRICE * 3) as tripleprice from orderfact o  &lt;br /&gt;                     where o.STATUS = ${status} and o.ORDERDATE &amp;amp;gt; ${orderDate}  &lt;br /&gt;                     group by o.YEAR_ID, o.STATUS  &lt;br /&gt;                     order by o.YEAR_ID DESC, o.STATUS  &lt;br /&gt;                &amp;lt;/Query&amp;gt;  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;   &amp;lt;/DataAccess&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;and suppose in the same cda file we define this CompoundDataAccess element.&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;      &amp;lt;CompoundDataAccess id="3" type="join"&amp;gt;  &lt;br /&gt;           &amp;lt;Left id="1" keys="0,1"/&amp;gt;  &lt;br /&gt;           &amp;lt;Right id="2" keys="0,1"/&amp;gt;  &lt;br /&gt;           &amp;lt;Columns&amp;gt;  &lt;br /&gt;                &amp;lt;CalculatedColumn&amp;gt;  &lt;br /&gt;                     &amp;lt;Name&amp;gt;PriceDiff&amp;lt;/Name&amp;gt;  &lt;br /&gt;                     &amp;lt;Formula&amp;gt;=[TRIPLEPRICE]-[TOTALPRICE]&amp;lt;/Formula&amp;gt;  &lt;br /&gt;                &amp;lt;/CalculatedColumn&amp;gt;  &lt;br /&gt;           &amp;lt;/Columns&amp;gt;  &lt;br /&gt;               &amp;lt;Parameters&amp;gt;  &lt;br /&gt;       &amp;lt;Parameter name="status" type="String" default="Shipped"/&amp;gt;  &lt;br /&gt;       &amp;lt;Parameter name="orderDate" type="Date" pattern="yyyy-MM-dd" default="2003-03-01"/&amp;gt;  &lt;br /&gt;     &amp;lt;/Parameters&amp;gt;  &lt;br /&gt;           &amp;lt;Output indexes="0,1,2,5,6"/&amp;gt;  &lt;br /&gt;      &amp;lt;/CompoundDataAccess&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;As you can see the &lt;i&gt;CompoundDataAccess &lt;/i&gt;element has the two keys, &lt;i&gt;Left &lt;/i&gt;and &lt;i&gt;Right&lt;/i&gt;, two indicate the two sides of the join. The left one uses the &lt;i&gt;DataAccess &lt;/i&gt;id 1 (the first one above) and the second the &lt;i&gt;DataAcccess&lt;/i&gt; id 2. Then you see the comma separated list that defines the positions of the keys columns in the related DataAccess query. In this case you can see, looking at the related DataAcces queries, that either the elements uses &lt;i&gt;YEAR_ID&lt;/i&gt; and the &lt;i&gt;STATUS &lt;/i&gt;columns&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Appending datasets ouputs&lt;/b&gt;&lt;br /&gt;To append two datasets we have to define a &lt;i&gt;CompoundDataAccess &lt;/i&gt;element  with the type attribute valued to the &lt;i&gt;union&lt;/i&gt; value.The union  type lets you execute append two &lt;i&gt;DataAcces &lt;/i&gt;output datasets giving their order using two configuration elements:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;Top&lt;/i&gt;, to specify the first dataset,&lt;/li&gt;&lt;li&gt;&lt;i&gt;Bottom&lt;/i&gt;,&amp;nbsp; to specify the second dataset.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Anyone of the two elements accepts the following attributes:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;i&gt;id&lt;/i&gt;, is valued to the id of the &lt;i&gt;DataAccess &lt;/i&gt;element  definition you are going to consider as the Top/Bottom dataset&lt;/li&gt;&lt;/ol&gt;Below a sample of configuration using a compound union. The &lt;i&gt;DataAccess &lt;/i&gt;elements considered for this sample are the same defined in the previous sample for the join type.&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;   &amp;lt;CompoundDataAccess id="3" type="union"&amp;gt;  &lt;br /&gt;     &amp;lt;Top id="2"/&amp;gt;  &lt;br /&gt;     &amp;lt;Bottom id="1"/&amp;gt;  &lt;br /&gt;     &amp;lt;Parameters&amp;gt;  &lt;br /&gt;       &amp;lt;Parameter name="year" type="Numeric" default="2004"/&amp;gt;  &lt;br /&gt;     &amp;lt;/Parameters&amp;gt;  &lt;br /&gt;   &amp;lt;/CompoundDataAccess&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-1583259081510413350?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/1583259081510413350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/joining-and-appending-output-dataset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/1583259081510413350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/1583259081510413350'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/joining-and-appending-output-dataset.html' title='Joining and appending output datasets with CompoundDataAccess'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-9055297694649657341</id><published>2010-07-09T23:29:00.001+02:00</published><updated>2010-07-12T12:32:25.246+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho CDA'/><title type='text'>CDA configuration files basics (part 2)</title><content type='html'>Last time we started talking about &lt;a href="http://ramathoughts.blogspot.com/2010/04/cda-configuration-files-basics.html"&gt;the basics of CDA configuration&lt;/a&gt;. Today we'll continue our series of articles on CDA better at DataAccess element configuration.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;A little ricap&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;CDA is a BI Platform plugin that that allows to fetch data in various  formats. It works defining a configuration file where we will define connections to our available datasources and a number of data access objects. The data access objects defines the strategy used to access the data using a specified connection. In our previous post we talkes briefly about how to configure Connections a we give a brief overview about the &lt;i&gt;DataAccess&lt;/i&gt; element. Today we will complete our introduction to the basics of&amp;nbsp; CDA &lt;i&gt;DataAccess &lt;/i&gt;configuration.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Adding parameters to our DataAccess element&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;i&gt;Parameters &lt;/i&gt;element, nested into the &lt;i&gt;DataAccess &lt;/i&gt;element, let you define a set of&amp;nbsp; parameters required to get the data from you connection. Every parameter is associated to a &lt;i&gt;Parameter &lt;/i&gt;element which accepts at least the following attributes:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;name&lt;/i&gt;, to specify the Parameter name.&lt;/li&gt;&lt;li&gt;&lt;i&gt;type&lt;/i&gt;, lets you specify the Parameter type. Allowed types are String, Date, Integer, Numeric.&lt;/li&gt;&lt;li&gt;&lt;i&gt;pattern&lt;/i&gt;, lets you specify a display pattern required to let the CDA better understand the parameter's value as inputted by the user. Samples of usage for this attribute are dates dates or numeric parameters.&lt;/li&gt;&lt;li&gt;&lt;i&gt;default&lt;/i&gt;, lets you specify a default value for the parameter so that it will be automatically assigned every time we don't give that value&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Below you've a sample about configuring a &lt;i&gt;Parameters &lt;/i&gt;element&lt;br /&gt;&lt;br /&gt;&lt;pre style="background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;   &amp;lt;DataAccess id="1" connection="1" type="sql" access="public" cache="true" cacheDuration="300"&amp;gt;  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;                &amp;lt;Query&amp;gt;  &lt;br /&gt;                     select o.YEAR_ID, o.STATUS, sum(o.TOTALPRICE) as price from orderfact o  &lt;br /&gt;                     where o.STATUS = ${status} and o.ORDERDATE &amp;amp;gt; ${orderDate}  &lt;br /&gt;                     group by o.YEAR_ID, o.STATUS  &lt;br /&gt;                &amp;lt;/Query&amp;gt;  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;                &amp;lt;Columns&amp;gt;  &lt;br /&gt;                     &amp;lt;Column idx="0"&amp;gt;  &lt;br /&gt;                          &amp;lt;Name&amp;gt;Year&amp;lt;/Name&amp;gt;  &lt;br /&gt;                     &amp;lt;/Column&amp;gt;  &lt;br /&gt;                     &amp;lt;CalculatedColumn&amp;gt;  &lt;br /&gt;                          &amp;lt;Name&amp;gt;PriceInK&amp;lt;/Name&amp;gt;  &lt;br /&gt;                          &amp;lt;Formula&amp;gt;=[PRICE]/1000000&amp;lt;/Formula&amp;gt;  &lt;br /&gt;                     &amp;lt;/CalculatedColumn&amp;gt;  &lt;br /&gt;                &amp;lt;/Columns&amp;gt;  &lt;br /&gt;                .  &lt;br /&gt;                .  &lt;br /&gt;    &amp;lt;!-- Output controls what is outputed and by what order. Defaults to everything --&amp;gt;  &lt;br /&gt;    &amp;lt;Output indexes="1,0,2,3"/&amp;gt;  &lt;br /&gt;    .  &lt;br /&gt;    .  &lt;br /&gt;   &amp;lt;/DataAccess&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;For your reference I've also shown you the query definition. Look at the &lt;i&gt;Columns &lt;/i&gt;element declaration: you can see that we're going to rename the column with ordinal 0 from &lt;i&gt;"YEAR_ID"&lt;/i&gt; to&lt;i&gt; "Year"&lt;/i&gt;. To do that we used a Column element where we set the new name.&lt;br /&gt;Then, using the &lt;i&gt;CalculatedColumn &lt;/i&gt;element, we added a new calculated column name &lt;i&gt;PriceInK&lt;/i&gt;.&lt;br /&gt;Consider that:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;New calculated columns are always added at the end of the columns set&lt;/li&gt;&lt;li&gt;CDA uses Pentaho reporting libraries to apply formulas so that means you need to identify streams columns in your formula using square bracket notation and that you can use all the construct found in that libraries.&lt;/li&gt;&lt;/ul&gt;&lt;ol&gt;&lt;/ol&gt;Last but not least we changed the positional layout of the output columns through with an Output element. In the indexes attributes we set the columns position using column indexes. You have two consider two things here&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;The&lt;b&gt; total columns number&lt;/b&gt; is 4 because 3 came from the query and one was the calculated column lastly added to the stream&lt;/li&gt;&lt;li&gt;The index for the first&lt;b&gt; leftmost column is 0 &lt;/b&gt;and NOT 1&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-9055297694649657341?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/9055297694649657341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/cda-configuration-files-basics-part-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/9055297694649657341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/9055297694649657341'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/07/cda-configuration-files-basics-part-2.html' title='CDA configuration files basics (part 2)'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-6681082343748076064</id><published>2010-04-28T16:24:00.011+02:00</published><updated>2010-09-08T11:58:00.369+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Development'/><title type='text'>Easily build BI Server from behind an NTLM proxy</title><content type='html'>Pentaho projects bases on &lt;a href="http://ant.apache.org/ivy/"&gt;Apache IVY&lt;/a&gt; to manage project's dependencies. This is good because it gives you a consistent and uniform way to manage projects dependencies but gives you some troubles if you need to make a build of one of the many Pentaho projects from behind an NTLM firewall.&lt;br /&gt;&lt;br /&gt;So here it is a brief and concise survival guide about how to do that quickly and efficiently.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Install a local proxy in you development computer&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;First of all download &lt;a href="http://cntlm.sourceforge.net/"&gt;cntlm&lt;/a&gt; a local proxy that let you easily authenticate through your company or customer NTLM authentication proxy. You've versions for Windows and Linux. I learned about it two years ago when I was on Linux and I had to manage some Maven projects. Now I'm on Windows and the good for me is that it has a version also for this platform (I tried using also &lt;a href="http://sourceforge.net/projects/ntlmaps/files/"&gt;ntlmaps&lt;/a&gt; but I wasn't able to have it working properly with IVY)&lt;br /&gt;&lt;br /&gt;Installation is really simple but, on WIndows, has a tweak we will talk about later. Download the .zip from &lt;a href="http://sourceforge.net/projects/cntlm/files"&gt;sourceforge&lt;/a&gt; and unzip it wherever is fine for you. Execute the &lt;i&gt;setup.bat&lt;/i&gt; and it will rapidly install the local proxy as a Windows Service. &lt;br /&gt;&lt;br /&gt;Go to the installation directory (typically &lt;i&gt;C:\Program Files\cntlm&lt;/i&gt;) and edit &lt;i&gt;cntlm.ini&lt;/i&gt;. Replace the informations for&lt;i&gt; username, password, domain&lt;/i&gt; and your &lt;i&gt;proxies hosts and ports&lt;/i&gt; as detailed in the file excerpt given below &lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;code&gt;#&lt;br /&gt;# Cntlm Authentication Proxy Configuration&lt;br /&gt;#&lt;br /&gt;# NOTE: all values are parsed literally, do NOT escape spaces,&lt;br /&gt;# do not quote. Use 0600 perms if you use plaintext password.&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;Username        &amp;lt;your_username&amp;gt;&lt;br /&gt;Domain          &amp;lt;your_domain&amp;gt;&lt;br /&gt;Password        &amp;lt;your_password&amp;gt;   # Use hashes instead (-H)&lt;br /&gt;#Workstation    netbios_hostname        # Should be auto-guessed&lt;br /&gt;&lt;br /&gt;Proxy           &amp;lt;1st_proxy_host&amp;gt;:&amp;lt;1st_proxy_port&amp;gt;&lt;br /&gt;Proxy           &amp;lt;2nd_proxy_host&amp;gt;:&amp;lt;2nd_proxy_port&amp;gt;&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# This is the port number where Cntlm will listen&lt;br /&gt;#&lt;br /&gt;Listen                3128&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Make the changes and save the file. Now, before starting the local proxy service, here is the tweak. In my case, the &lt;i&gt;setup.bat&lt;/i&gt; script forget to set a service startup parameter that sets the cntlm configuration parameter file location. So to workaround that, open your registry and go to the following key &lt;i&gt;HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\cntlm\Parameters&lt;/i&gt;. Look for the &lt;i&gt;AppArgs&lt;/i&gt; attribute and modify it adding the parameter &lt;i&gt;-i "C:\Program Files\Cntlm\cntlm.ini"&lt;/i&gt; as shown below&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_8gbGL_EIvtE/S9hScDVig8I/AAAAAAAAAic/u-GpVTVTBJU/s1600/cntlm_svc.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="48" src="http://4.bp.blogspot.com/_8gbGL_EIvtE/S9hScDVig8I/AAAAAAAAAic/u-GpVTVTBJU/s320/cntlm_svc.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;After that you're ready to start you service successfully otherwise you'll get an error.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Back to our Pentaho's project build&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;In my case I was making a build of the newest bi-server 3.6 get from the related branch of Pentaho repository (&lt;i&gt;&lt;a href="http://source.pentaho.org/svnroot/bi-platform-v2/branches/3.6"&gt;http://source.pentaho.org/svnroot/bi-platform-v2/branches/3.6&lt;/a&gt;&lt;/i&gt;). To enable IVY to use your locally configured authentication proxy server you've to set the following environment variable before starting compiling the project&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"&gt;&lt;code&gt;ANT_OPTS=-Dhttp.proxyHost=localhost -Dhttp.proxyPort=3128&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;It is up to you to decide where to set that variable either as a Windows environment variable or from within a command line session (if you're starting the build manually).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;And what about for the Linux users....&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you're on Linux you can install cntlm using the package manager of your favorite distro. I used it on Ubuntu and Fedora withou any problem. The configuration file is the same as before but is located in &lt;i&gt;/etc/cntlm.conf&lt;/i&gt;. You've to change the same parameters detailed above for &lt;i&gt;cntlm.ini&lt;/i&gt; (the file is exactly the same). Start the daemon, set the &lt;i&gt;ANT_OPTS&lt;/i&gt; environment variable and have fun with your build.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-6681082343748076064?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/6681082343748076064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/04/dealing-with-pentaho-bi-server-build.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6681082343748076064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6681082343748076064'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/04/dealing-with-pentaho-bi-server-build.html' title='Easily build BI Server from behind an NTLM proxy'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8gbGL_EIvtE/S9hScDVig8I/AAAAAAAAAic/u-GpVTVTBJU/s72-c/cntlm_svc.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-7092136423119039651</id><published>2010-04-21T11:33:00.003+02:00</published><updated>2010-07-09T23:35:26.258+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho CDA'/><title type='text'>CDA configuration files basics (part 1)</title><content type='html'>Last time I give a&lt;a href="http://ramathoughts.blogspot.com/2010/03/first-look-into-pentaho-cda.html"&gt; brief explanation about the basics of CDA&lt;/a&gt; compilation and deployment and I showed you how to start executing a simple query on our datamart using CDA getting&amp;nbsp; back a resultset formatted as you expected. I decided to take you to a fully functional sample going through a set of explanatory steps summarized below:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Explain the structure of CDA files and learn how to built a new one&lt;/li&gt;&lt;li&gt;Show the basic verbs you can use to interact with CDA&lt;/li&gt;&lt;li&gt;Put everything together with a working example&lt;/li&gt;&lt;/ul&gt;Before start playing with CDA remember to get the &lt;a href="http://code.google.com/p/pentaho-cda/"&gt;latest CDA sources&lt;/a&gt; compile it and reinstall the plugin as explained in my first post on this blog.&lt;br /&gt;&lt;br /&gt;CDA files has a very  basic structure. They are very easy to be learned also by a novice user with a basic knowledge of XML. Basically a CDA  file contains definitions for some important elements&lt;br /&gt;&lt;ol&gt;&lt;li&gt;datasources&lt;/li&gt;&lt;li&gt;data access&lt;/li&gt;&lt;li&gt;compound data access &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;b&gt;The DataSource element&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Datasources in CDA have the usual meaning of a named connection to a database server. The name (in our case the connection id) is commonly used when creating a query to the database.&lt;br /&gt;&lt;br /&gt;Each DataSource is made up by a set of connections defined as follow:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;has an id attribute to uniquely identify the connection in this CDA datasource definition. Of course we cannot have two connections with the same id.&lt;/li&gt;&lt;li&gt;has a type attribute whose value depends on the connection type. We've different connection types one for each datasource type: &lt;i&gt;sql, mondrian, Pentaho Metadata (MQL), Olap4J&lt;/i&gt;&lt;/li&gt;&lt;li&gt;a set of other elements that differs depending on the connection type&lt;/li&gt;&lt;/ul&gt;We can have 1 or more connections in the DataSource element according to your needs. &lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;i&gt;Configuring connections to relational sources&amp;nbsp;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If we look at the samples that comes together with the latest CDA distribution you have a sample for each of the possible connection types. Open PUC console and go to the folder&lt;i&gt; bi-developer/cda/cdafile&lt;/i&gt; and you have the list of cda definitions shown below in the files window. As you can see every CDA file is identified by a specific icon.&lt;br /&gt;&lt;br /&gt;First interesting point: to open a file we've a &lt;i&gt;CDA files editor&lt;/i&gt; integrated in Pentaho console. Cool! So to open a CDA file select it, right click on the file name and select Edit&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_8gbGL_EIvtE/S863ublwHPI/AAAAAAAAAh0/iUZsNbXlYco/s1600/cda1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_8gbGL_EIvtE/S863ublwHPI/AAAAAAAAAh0/iUZsNbXlYco/s320/cda1.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;Let's have a look at how to connect to a relational datasource. We've two samples for that. One to connect through jdbc and another to connect through a JNDI datasource. Open the &lt;i&gt;sql-jdbc.cda&lt;/i&gt; for example (the jdbc one). As you can see, in the right area of PUC console the editor opened and shows you the file content. CDA editor is the standard tool to modify&amp;nbsp; CDA files in a quick and easy way. You can modify your file, save it and also test it using the preview functionality (we'll talk about it later). Looking at the file immediately after the &lt;i&gt;CDADescriptor&lt;/i&gt; element you'll find the &lt;i&gt;DataSource &lt;/i&gt;element and, as its child, the connection definitions.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_8gbGL_EIvtE/S865fzWzfCI/AAAAAAAAAh8/xpWWxlpUev0/s1600/cda2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="336" src="http://3.bp.blogspot.com/_8gbGL_EIvtE/S865fzWzfCI/AAAAAAAAAh8/xpWWxlpUev0/s640/cda2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;As you can see you can find a connection with &lt;i&gt;id="1&lt;/i&gt;" and &lt;i&gt;type="sql.jdbc"&lt;/i&gt; and then a set of elements describing properties that are directly related with the selected connection type (in this case the definition of a jdbc connection so we've elements for &lt;i&gt;driver, url, username &lt;/i&gt;and &lt;i&gt;password&lt;/i&gt;). Take your time to go through all the other samples and see the differences in connection types.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The DataAccess element&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The DataAccess contains the definitions for the query that needs to be executed, the parameters the query accepts and some other side elements that we will explore in the next steps.&lt;br /&gt;&lt;br /&gt;A DataAccess element:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; has an&lt;i&gt; id&lt;/i&gt;,&amp;nbsp;&lt;/li&gt;&lt;li&gt;has a &lt;i&gt;descriptive name&lt;/i&gt; (given through a child element),&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;b&gt;&lt;i&gt;links a specific connection id defined in the previous DataSource section&lt;/i&gt;&lt;/b&gt;,&amp;nbsp;&lt;/li&gt;&lt;li&gt;contains a&lt;i&gt; query element&lt;/i&gt;,&lt;/li&gt;&lt;li&gt;contains a set of given &lt;i&gt;parameters &lt;/i&gt;(not mandatory),&lt;/li&gt;&lt;li&gt;contains a set of other not mandatory definitions will go thorugh in the next steps.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;We can have one or more DataAccess elements in our CDA file. &lt;br /&gt;So go back to our example (sample-jdbc.cda) and continue our exploration.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_8gbGL_EIvtE/S8696JanObI/AAAAAAAAAiE/1xKITM-74IE/s1600/cda3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="364" src="http://4.bp.blogspot.com/_8gbGL_EIvtE/S8696JanObI/AAAAAAAAAiE/1xKITM-74IE/s640/cda3.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;As you can see in the picture above we've some things to be noted:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Remember to give an &lt;i&gt;id&lt;/i&gt; and to link the connection defined in the &lt;i&gt;DataSources &lt;/i&gt;section&amp;nbsp; &lt;/li&gt;&lt;li&gt;Because we're writing text as value of an xml file element, remember the that comparison operators&lt;i&gt; &amp;lt; &amp;gt;&lt;/i&gt; has to be written respectively as &lt;i&gt;&amp;amp;lt;&lt;/i&gt; and &lt;i&gt;&amp;amp;gt;&lt;/i&gt; otherwise you'll get an error.&lt;/li&gt;&lt;li&gt;Parameters has given a name. In the query you can indicate a parameters with the usual syntax &lt;i&gt;${&amp;lt;parameter_name&amp;gt;}&lt;/i&gt; where&lt;i&gt; parameter_name&lt;/i&gt; is the exact name of the parameter we're going to apply in the where clause.&lt;/li&gt;&lt;li&gt;Every parameter has a type that, together with the name, needs to be mandatory given. Supperted types are: String, Date, Numeric and Integer. Any parameters can have a default value specified.&lt;/li&gt;&lt;li&gt;If the parameter's type is Date &lt;i&gt;you can specify a pattern&lt;/i&gt; you followed for your date format.&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;Test the query&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To test our DataAccess definition before moving foward with our implementaion click on the &lt;i&gt;Preview button&lt;/i&gt;. When the Preview form appears you can select the DataAccess definition you want to test and see the results below on a nice looking table.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_8gbGL_EIvtE/S87CAQbwguI/AAAAAAAAAiM/F6nYz5VFf90/s1600/cda4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="248" src="http://2.bp.blogspot.com/_8gbGL_EIvtE/S87CAQbwguI/AAAAAAAAAiM/F6nYz5VFf90/s640/cda4.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;Some things to note:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;the previewer sets the &lt;i&gt;default values&lt;/i&gt; for the query (if any) but you can change them accordingly to your needs,&amp;nbsp;&lt;/li&gt;&lt;li&gt;the&lt;i&gt; date format&lt;/i&gt; for the orderDate parameter follows the pattern specified in the CDA file definition.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Now I'll give you the time to play with the samples and experiment a bit. Next time we'll talk about the second part of the DataAccess elements and CompoundDataAccess definitions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-7092136423119039651?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/7092136423119039651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/04/cda-configuration-files-basics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/7092136423119039651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/7092136423119039651'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/04/cda-configuration-files-basics.html' title='CDA configuration files basics (part 1)'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_8gbGL_EIvtE/S863ublwHPI/AAAAAAAAAh0/iUZsNbXlYco/s72-c/cda1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-1901239281351160463</id><published>2010-03-19T16:02:00.005+01:00</published><updated>2010-07-09T23:35:44.218+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho CDA'/><title type='text'>A first look into Pentaho CDA</title><content type='html'>These days I decided to have a look into Pentaho CDA the newest idea from &lt;a href="http://pedroalves-bi.blogspot.com/"&gt;Pedro Alves&lt;/a&gt;. The project is available &lt;a href="http://code.google.com/p/pentaho-cda/"&gt;here&lt;/a&gt; on Google code. He gave announcement about this two months ago in &lt;a href="http://pedroalves-bi.blogspot.com/2010/01/cda-community-data-access.html"&gt;his blog&lt;/a&gt; and immediately it appeared interesting.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is CDA?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;CDA is a BI Platform plugin that that allows to fetch data in various formats. The good things are that it allows you to acces data using all of the possible data sources you can use in BI Server (SQL, MDX, Metadata, Kettle etc.) and can be used by any client (internal or external to BI Server) because you can call it through a simple url and it gives you back a data stream.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Let's go and compile the code&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;So after some very busy days of hard work were I only had the opportunity to keep my local copy of the code updated with the repository and see what's going on, yesterday I had some time available and I was able to compile it and give it try. The framework easily compiles with the ant script you find in the source tree. The only thing you've to consider is to create a file named &lt;i&gt;override.properties&lt;/i&gt; containing a set of definitions related to your working environment &lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;  plugin.local.install.solutions.dir = &amp;lt;substitute_with_your_biserver_home&amp;gt;/pentaho-solutions   &lt;br /&gt;  plugin.local.install.user = joe   &lt;br /&gt;  plugin.local.install.pass = password   &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;After having compiled the code successfully you can install it under your BI Server rel. 3.5.2 with the command&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: none repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; ant install-plugin  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;The basics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Immediately after our successfull compilation and installation we can start biserver and login into the system. Under the bi-developer solution you have a folder named CDA where you can find an extended set of examples to start playing with.&lt;br /&gt;&lt;br /&gt;CDA configuration is based on xml files. Every xml file contains a set of data access definitions. Everyone is identified by an &lt;i&gt;id&lt;/i&gt; and has a specified data access method. I don't copy and paste a sample here because you can have a look in the samples by yourself. They are very simple and the format is immediately understandable so that you can easily edit them by hand. &lt;br /&gt;&lt;br /&gt;Basically you can have your output data stream in multiple formats. At the time of writing this article you can use &lt;i&gt;JSON&lt;/i&gt; (the default), &lt;i&gt;XML&lt;/i&gt;, Excel and &lt;i&gt;CSV&lt;/i&gt;. This gives you the maximum flexibility on what you can do with that data.&lt;br /&gt;&lt;br /&gt;If you want to try to execute a query using a data access method defined in your &lt;i&gt;.cda&lt;/i&gt; file you can use the following this sintax&lt;br /&gt;&lt;br /&gt;&lt;i&gt;http://&amp;lt;biserver_host&amp;gt;:&amp;lt;port&amp;gt;/pentaho/content/cda/doQuery?solution=bi-developers&amp;amp;path=cda/cdafiles&amp;amp;file=sql-jndi.cda&amp;amp;outputType=xml&amp;amp;dataAccessId=1&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;This calls the method &lt;i&gt;doQuery&lt;/i&gt; to execute the query using the &lt;i&gt;dataAccess&lt;/i&gt; with &lt;i&gt;id&lt;/i&gt; &lt;i&gt;1&lt;/i&gt; defined in &lt;i&gt;sql-jndi.cda&lt;/i&gt; and located under the&amp;nbsp; solution &lt;i&gt;bi-developers&lt;/i&gt; in folder &lt;i&gt;cda/cdafiles&lt;/i&gt; giving you the output using &lt;i&gt;XML&lt;/i&gt;. Try to execute it changing the output type and see what happens. Remember that if you don't specify an output type it will be JSON by default.&lt;br /&gt;&lt;br /&gt;Suppose that we wnat an output typ like xml, the answer you'll see in your browser window is something like this&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Shipped20044114929.96Shipped20051513074.46&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;almost insignificant but, if you get the page source you clearly can see the xml stream sent to you by our CDA plugin&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; &amp;lt;CdaExport&amp;gt;  &lt;br /&gt;      &amp;lt;MetaData&amp;gt;  &lt;br /&gt;           &amp;lt;ColumnMetaData index="0" type="String" name="STATUS"/&amp;gt;  &lt;br /&gt;           &amp;lt;ColumnMetaData index="1" type="Numeric" name="Year"/&amp;gt;  &lt;br /&gt;           &amp;lt;ColumnMetaData index="2" type="Numeric" name="price"/&amp;gt;  &lt;br /&gt;           &amp;lt;ColumnMetaData index="3" type="String" name="PriceInK"/&amp;gt;  &lt;br /&gt;      &amp;lt;/MetaData&amp;gt;  &lt;br /&gt;      &amp;lt;ResultSet&amp;gt;  &lt;br /&gt;           &amp;lt;Row&amp;gt;  &lt;br /&gt;                &amp;lt;Col&amp;gt;Shipped&amp;lt;/Col&amp;gt;  &lt;br /&gt;                &amp;lt;Col&amp;gt;2004&amp;lt;/Col&amp;gt;  &lt;br /&gt;                &amp;lt;Col&amp;gt;4114929.96&amp;lt;/Col&amp;gt;  &lt;br /&gt;                &amp;lt;Col isNull="true"/&amp;gt;  &lt;br /&gt;           &amp;lt;/Row&amp;gt;  &lt;br /&gt;           &amp;lt;Row&amp;gt;  &lt;br /&gt;                &amp;lt;Col&amp;gt;Shipped&amp;lt;/Col&amp;gt;  &lt;br /&gt;                &amp;lt;Col&amp;gt;2005&amp;lt;/Col&amp;gt;  &lt;br /&gt;                &amp;lt;Col&amp;gt;1513074.46&amp;lt;/Col&amp;gt;  &lt;br /&gt;                &amp;lt;Col isNull="true"/&amp;gt;  &lt;br /&gt;           &amp;lt;/Row&amp;gt;  &lt;br /&gt;      &amp;lt;/ResultSet&amp;gt;  &lt;br /&gt; &amp;lt;/CdaExport&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Really cool! If you don't want to make your hand dirty in changing jdbc definitions I suggests you to try all the files whose name contains the word &lt;i&gt;jndi&lt;/i&gt; that means they use a datasource and not a direct jdbc connection defined in the file (these are the files that contains the word &lt;i&gt;jdbc&lt;/i&gt;).&lt;br /&gt;&lt;br /&gt;Read the next part of this serie and learn about &lt;a href="http://ramathoughts.blogspot.com/2010/04/cda-configuration-files-basics.html"&gt;CDA configuration files basics&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-1901239281351160463?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/1901239281351160463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/03/first-look-into-pentaho-cda.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/1901239281351160463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/1901239281351160463'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/03/first-look-into-pentaho-cda.html' title='A first look into Pentaho CDA'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-7749294290630941052</id><published>2010-02-25T17:43:00.003+01:00</published><updated>2010-02-25T17:49:56.784+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho Dashboards'/><title type='text'>Customize CDF jfreechart component</title><content type='html'>I was dealing with CDF Dashboards during these days and I had to set &lt;i&gt;line-width&lt;/i&gt; and &lt;i&gt;line-style&lt;/i&gt; attributes in my &lt;i&gt;jFreechartComponent's LineChart&lt;/i&gt; widget.&lt;br /&gt;&lt;br /&gt;Looking at the &lt;i&gt;jFreechartComponent&lt;/i&gt; documentation you clearly see that in the standard implementation some attributes, specifics only to some chart types, aren't implemented. This was also for the two attributes &lt;i&gt;line-width&lt;/i&gt; and &lt;i&gt;line-style&lt;/i&gt; related to the LineChart widget.&amp;nbsp; But this is not a problem because we can add that missing attibutes very easily and I'll show you how. The interesting thing is that I can manage all the attributes that are available for a specific &lt;i&gt;JFreeChart &lt;/i&gt;chart type.&lt;br /&gt;&lt;br /&gt;If you need to add support for missed JFreeChart chart's attributes you can follow the steps summarized below. We suppose to add line-width and line-style attributes and to access them from CDF jFreechartComponent as two properties respectively named &lt;i&gt;lineWidth&lt;/i&gt; and &lt;i&gt;lineStyle&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;1) Go to &lt;i&gt;&amp;lt;biserver-home&amp;gt;/pentaho-solutions/cdf/components&lt;/i&gt; and open &lt;i&gt;jfreechart.xaction &lt;/i&gt;and open it with your favourite editor.&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;2) Add two new elements to the &lt;i&gt;inputs&lt;/i&gt; section of the .xaction file. Below an example of the file with the two new inputs added. Remember here that the value of the request element (see lines 5 and 11 below)&amp;nbsp; has to be the same in name and in case as the name of the property we want to put in our &lt;i&gt;CDF jFreechartComponent&lt;/i&gt; definition. Then be careful to correctly assign a the default value needed in case that the property isn't provided (see lines 7 and 13) by you CDF component call. This is particularly important when our attribute is a number. If you don't assign it properly you'll get a &lt;i&gt;NumberFormatException&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(240, 240, 240) url(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif) repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;1:  &amp;lt;inputs&amp;gt;   &lt;br /&gt;2:    &amp;lt;!-- Omitted for brevity --&amp;gt;       &lt;br /&gt;3:       &amp;lt;LINEWIDTH type="string"&amp;gt;  &lt;br /&gt;4:            &amp;lt;sources&amp;gt;  &lt;br /&gt;5:                 &amp;lt;request&amp;gt;lineWidth&amp;lt;/request&amp;gt;  &lt;br /&gt;6:            &amp;lt;/sources&amp;gt;  &lt;br /&gt;7:            &amp;lt;default-value&amp;gt;1.5&amp;lt;/default-value&amp;gt;  &lt;br /&gt;8:       &amp;lt;/LINEWIDTH&amp;gt;  &lt;br /&gt;9:       &amp;lt;LINESTYLE type="string"&amp;gt;  &lt;br /&gt;10:            &amp;lt;sources&amp;gt;  &lt;br /&gt;11:                 &amp;lt;request&amp;gt;lineStyle&amp;lt;/request&amp;gt;  &lt;br /&gt;12:            &amp;lt;/sources&amp;gt;  &lt;br /&gt;13:            &amp;lt;default-value/&amp;gt;  &lt;br /&gt;14:       &amp;lt;/LINESTYLE&amp;gt;  &lt;br /&gt;15:    &amp;lt;!-- Omitted for brevity --&amp;gt;       &lt;br /&gt;16:  &amp;lt;/inputs&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;3) Add the new inputs previously defined in the &lt;i&gt;inputs&lt;/i&gt; section (see above) to the&amp;nbsp; &lt;i&gt;action-inputs&lt;/i&gt; section of our ChartComponent &lt;i&gt;action-definition&lt;/i&gt; (as shown below at lines 7 and 8). Then, use these new fields to populate two new property elements added to the &lt;i&gt;chart-attributes&lt;/i&gt; section as shown at line 25-26. Be very careful here because the name of the element you give to every new chart attribute has to be equal to the related attribute for the JFreeChart library. For example: if in JFreeChart library the line width&amp;nbsp; attribute is named &lt;i&gt;line-width&lt;/i&gt; that is the name to be considered as child element of the &lt;i&gt;chart-attributes&lt;/i&gt; element. Then the value to be assigne to that new element is the name of the related action input element (for &lt;i&gt;line-width&lt;/i&gt; we will assign as value the &lt;i&gt;LINEWIDTH&lt;/i&gt; element. See line 25 below). &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(240, 240, 240) url(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif) repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;1:       &amp;lt;action-definition&amp;gt;   &lt;br /&gt;2:            &amp;lt;component-name&amp;gt;ChartComponent&amp;lt;/component-name&amp;gt;  &lt;br /&gt;3:            &amp;lt;action-type&amp;gt;Chart&amp;lt;/action-type&amp;gt;  &lt;br /&gt;4:            &amp;lt;action-inputs&amp;gt;   &lt;br /&gt;5:                 &amp;lt;chart-data type="result-set" mapping="newResults"/&amp;gt;   &lt;br /&gt;6:                  &amp;lt;!-- Omitted for brevity --&amp;gt;       &lt;br /&gt;7:                 &amp;lt;LINEWIDTH   type="string"/&amp;gt;  &lt;br /&gt;8:                 &amp;lt;LINESTYLE   type="string"/&amp;gt;  &lt;br /&gt;9:                 &amp;lt;!-- Omitted for brevity --&amp;gt;       &lt;br /&gt;10:            &amp;lt;/action-inputs&amp;gt;  &lt;br /&gt;11:            &amp;lt;action-resources/&amp;gt;  &lt;br /&gt;12:            &amp;lt;action-outputs&amp;gt;   &lt;br /&gt;13:                 &amp;lt;chart-filename type="string"/&amp;gt;   &lt;br /&gt;14:                 &amp;lt;base-url type="string"/&amp;gt;   &lt;br /&gt;15:                 &amp;lt;chart-mapping type="string"/&amp;gt;   &lt;br /&gt;16:                 &amp;lt;image-tag type="string"/&amp;gt;   &lt;br /&gt;17:                 &amp;lt;chart-output type="content"/&amp;gt;   &lt;br /&gt;18:            &amp;lt;/action-outputs&amp;gt;  &lt;br /&gt;19:            &amp;lt;component-definition&amp;gt;   &lt;br /&gt;20:                 &amp;lt;width&amp;gt;{WIDTH}&amp;lt;/width&amp;gt;   &lt;br /&gt;21:                 &amp;lt;height&amp;gt;{HEIGHT}&amp;lt;/height&amp;gt;   &lt;br /&gt;22:                 &amp;lt;by-row&amp;gt;{BYROW}&amp;lt;/by-row&amp;gt;   &lt;br /&gt;23:                 &amp;lt;chart-attributes&amp;gt;   &lt;br /&gt;24:                 &amp;lt;!-- Omitted for brevity --&amp;gt;       &lt;br /&gt;25:                      &amp;lt;line-width&amp;gt;{LINEWIDTH}&amp;lt;/line-width&amp;gt;  &lt;br /&gt;26:                      &amp;lt;line-style&amp;gt;{LINESTYLE}&amp;lt;/line-style&amp;gt;  &lt;br /&gt;27:                 &amp;lt;!-- Omitted for brevity --&amp;gt;       &lt;br /&gt;28:                 &amp;lt;/chart-attributes&amp;gt;   &lt;br /&gt;29:            &amp;lt;/component-definition&amp;gt;   &lt;br /&gt;30:       &amp;lt;/action-definition&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-7749294290630941052?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/7749294290630941052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/02/customize-cdf-jfreechart-component.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/7749294290630941052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/7749294290630941052'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/02/customize-cdf-jfreechart-component.html' title='Customize CDF jfreechart component'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-4697787852297510244</id><published>2010-02-18T12:29:00.005+01:00</published><updated>2010-07-13T11:35:59.518+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho'/><title type='text'>BI Server &amp; MS Active Directory in 10 minutes</title><content type='html'>Recently I had the need to connect Pentaho to MS Active Directory for user authentication/authorization. Immediately I asked myself how to connect Pentaho BI Server to Microsoft Active directory and I answered "Oh don't worry... it will take no more than 10 minutes!". Then the "look for a how-to document..."  discovery process started.&lt;br /&gt;&lt;br /&gt;I found a lot of documentation about this issue (wiki articles, forums thread) but there isn't a well done survival guide on this problem (that's my opinion).&lt;br /&gt;&lt;br /&gt;So I'll try to summarize in few lines the steps followed and problems encountered to try to build a sort of survival guide for anyone with the same issue to solve&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Have a look at spring configuration files&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;BI Server security architecture is based on &lt;a href="http://static.springsource.org/spring-security/site/index.html"&gt;Spring Security&lt;/a&gt; so the first guide to be read is the Spring documentation where they talk about &lt;a href="http://static.springsource.org/spring-security/site/docs/2.0.x/reference/ldap.html"&gt;LDAP configuration&lt;/a&gt;. Better, in case you don't know anything about that, if you came a step backward and have a read at the general architecture of Spring security.&lt;br /&gt;&lt;br /&gt;Spring security beans wires together through spring application context and in Pentaho all the needed spring application context files are located in &lt;i&gt;&amp;lt;biserver_home&amp;gt;/pentaho-solutions/system&lt;/i&gt;. You'll find a lot of them there but the important things to know are:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;pentaho-spring-beans.xml&lt;/i&gt; contains the list of imported spring bean files that will be loaded when BI Server will start.&lt;br /&gt;We've two important file groups there named &lt;i&gt;applicationContext-spring*&lt;/i&gt; and &lt;i&gt;applicationContext-pentaho*&lt;/i&gt;. In each group, you have one file for every available authentication method defined in Pentaho. Usually the beans located in files belonging to&lt;i&gt; applicationContext-spring&lt;/i&gt; group contains definitions for spring related beans needed to configure the specified authentication/authorization method. The beans located in files belonging to &lt;i&gt;applicationContext-pentaho&lt;/i&gt; group contains definitions of Pentaho's beans involved in the authorization/authentication methods for the specific authentication method (LDAP, Hibernate, jdbc).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So how to configure Pentaho to work with MS Active Directory? &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The setup to have Pentaho working with MS Active Directory is really simple if you know exactly what to do and to how. Il try to summarize you everything in the following paragraphs. As detailed above all the files we will mention are located in &lt;i&gt;&amp;lt;biserver_home&amp;gt;/pentaho-solutions/system&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;1. Setup an MS Active Directory user to let BI Server connect to&lt;/i&gt;. You need to define a user in MS Active Directory so that BI Server can connect to and check if the Pentaho's user is going authenticate exists and is valid. The user you're going to define in MS Active Directory doesn't need to have any special right so a normal user is the more appropriate. Remember to check that the &lt;i&gt;"password never expire"&lt;/i&gt; flag is not set for this user.&lt;br /&gt;&lt;br /&gt;2. Setup Spring Security files needed to enable LDAP Server authentication/authorization. This is a good point, I think the major one. First of all read the guidelines provided &lt;a href="http://wiki.pentaho.com/display/ServerDoc2x/LDAP+Troubleshooting"&gt;here&lt;/a&gt;&amp;nbsp; about some rules to be followed when editing Spring configuration files particularly regarding white spaces and special characters. Then follow the points detailed here.&lt;br /&gt;&lt;br /&gt;2.a) Open the &lt;i&gt;applicationContext-security-ldap.properties&lt;/i&gt; and change the properties accordingly to your needs. The useful thing about this file is that it contains all the properties needed to configure spring beans so that we doesn't need to look for them in eac xml file. They're all in one single place. Following you'll find an example:&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; contextSource.providerUrl=ldap\://ldaphost\:389  &lt;br /&gt; contextSource.userDn=cn=ldapuser,OU=my_org_unit,dc=my_dc  &lt;br /&gt; contextSource.password=password  &lt;br /&gt; userSearch.searchBase=OU=my_org_unit,dc=my_dc  &lt;br /&gt; userSearch.searchFilter=(sAMAccountName=\{0\})  &lt;br /&gt; populator.convertToUpperCase=false  &lt;br /&gt; populator.groupRoleAttribute=cn  &lt;br /&gt; populator.groupSearchBase=OU=my_org_unit,dc=my_dc  &lt;br /&gt; populator.groupSearchFilter=(member=\{0\})  &lt;br /&gt; populator.rolePrefix=  &lt;br /&gt; populator.searchSubtree=true  &lt;br /&gt; allAuthoritiesSearch.roleAttribute=cn  &lt;br /&gt; allAuthoritiesSearch.searchBase=OU=my_org_unit,dc=my_dc  &lt;br /&gt; allAuthoritiesSearch.searchFilter=(objectClass=group)  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Important things to note here are&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;contextSource.providerUrl &lt;/i&gt;- LDAP server url&lt;/li&gt;&lt;li&gt;&lt;i&gt;contextSource.userDn &lt;/i&gt;- LDAP username. This is the user we've talked about in 1) above&lt;/li&gt;&lt;li&gt;&lt;i&gt;contextSource.password&lt;/i&gt; - LDAP user password&lt;/li&gt;&lt;li&gt;the &lt;i&gt;populator&lt;/i&gt; properties are needed by Spring &lt;i&gt;DefaultLdapAuthoritiesPopulator&lt;/i&gt;. That object is needed to load the set of authorities the user was granted.&lt;/li&gt;&lt;li&gt;the &lt;i&gt;userSearch&lt;/i&gt; properties configures the attributes needed to fills up the "users" box when assigning permissions to reports etc.&lt;/li&gt;&lt;li&gt;the &lt;i&gt;allAuthorities&lt;/i&gt; properties configures the attributes needed to fills up the "roles" portion of the permissions box when setting them for a report etc.&lt;/li&gt;&lt;/ul&gt;The excerpt I gave above is fully working so you can copy and paste it in your properties file changing only the definitions specific to your installation. At this point you completed almost the 70% of the required configuration to have everything working on your system. Be careful to declare the full DN (domain name) when you work with MS Active Directory because, if not, it's almost sure you'll have an error like this (The first time I tried I had such an error for this reason)&lt;br /&gt;&lt;br /&gt;&amp;lt;pre&amp;nbsp; style="font-family:arial;font-size:12px;border:1px dashed #CCCCCC;width:99%;height:auto;overflow:auto;background:#f0f0f0;padding:0px;color:#000000;text-align:left;line-height:20px;"&amp;gt;&amp;lt;code style="color:#000000;word-wrap:normal;"&amp;gt; Microsoft Active Directory Error:&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; javax.naming.AuthenticationException:&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09030B, comment:&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AcceptSecurityContext error, data 525, v893 ]&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtx.(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.naming.InitialContext.init(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.naming.InitialContext.(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at javax.naming.directory.InitialDirContext.(Unknown Source)&amp;nbsp; &lt;br /&gt;&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;&lt;br /&gt;You can find short but useful informations about this issue &lt;a href="http://www.websina.com/bugzero/faq/ldap-error-code-49.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2.b) Two words about the default role. Anytime a user logs into Pentaho, the system assigns the user a default role of "Authenticated". This is a really important point to have all the things working. If that role isn't assigned you're able to connect but mantle witll never show anything to you. My problem was that in my spring LDAP context file the definitions to have that role assigned by default were missed. So I had to add them manually. So be &lt;b&gt;absolutely&lt;/b&gt; sure to check that in &lt;i&gt;applicationContext-spring-security-ldap.xml&lt;/i&gt; you have the &lt;i&gt;defaultRole&lt;/i&gt; property defined with a value of &lt;i&gt;Authenticated&lt;/i&gt; in the &lt;i&gt;popolator&lt;/i&gt; bean &lt;b&gt;and if missed add it&lt;/b&gt;. Below an excerpt of that bean definition with the &lt;i&gt;defaultRole&lt;/i&gt; property added so that you can copy and paste if missed in your file.&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt; &amp;lt;bean id="populator" class="org.springframework.security.ldap.populator.DefaultLdapAuthoritiesPopulator"&amp;gt;  &lt;br /&gt;  &amp;lt;!-- omitted --&amp;gt;  &lt;br /&gt;  &amp;lt;property name="defaultRole" value="Authenticated" /&amp;gt;  &lt;br /&gt;  &amp;lt;!-- omitted --&amp;gt;  &lt;br /&gt; &amp;lt;/bean&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;3) Rework the imports in &lt;i&gt;pentaho-spring-beans.xml &lt;/i&gt;to enable the load of LDAP security beans at startup. Below (at lines 8-9) we disabled the DAO/Hibernate security and (at lines 10-11) we imported the new definitions enabling LDAP security&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;1:  &amp;lt;beans&amp;gt;  &lt;br /&gt;2:   &amp;lt;import resource="pentahoSystemConfig.xml" /&amp;gt;  &lt;br /&gt;3:   &amp;lt;import resource="adminPlugins.xml" /&amp;gt;  &lt;br /&gt;4:   &amp;lt;import resource="systemListeners.xml" /&amp;gt;  &lt;br /&gt;5:   &amp;lt;import resource="sessionStartupActions.xml" /&amp;gt;  &lt;br /&gt;6:   &amp;lt;import resource="applicationContext-spring-security.xml" /&amp;gt;  &lt;br /&gt;7:   &amp;lt;import resource="applicationContext-common-authorization.xml" /&amp;gt;  &lt;br /&gt;8:   &amp;lt;!-- import resource="applicationContext-spring-security-hibernate.xml" /&amp;gt;  &lt;br /&gt;9:   &amp;lt;import resource="applicationContext-pentaho-security-hibernate.xml" / --&amp;gt;  &lt;br /&gt;10:   &amp;lt;import resource="applicationContext-spring-security-ldap.xml" /&amp;gt;  &lt;br /&gt;11:   &amp;lt;import resource="applicationContext-pentaho-security-ldap.xml" /&amp;gt;  &lt;br /&gt;12:   &amp;lt;import resource="pentahoObjects.spring.xml" /&amp;gt;  &lt;br /&gt;13:  &amp;lt;/beans&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;4) Now its the time to define a set of groups in your MS Active Directory for your pentaho users (if you don't already have such a groups) depending on your authorization needs. For sure you need to have at least one group to contain pentaho admins. In my system I called that group &lt;i&gt;PentahoAdmin&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;5) Declare the new admin group in Pentaho configuration to assign that group the admin grant. To do that rework the acl-voter element in &lt;i&gt;pentaho.xml&lt;/i&gt; as shown below. &lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;      &amp;lt;acl-voter&amp;gt;  &lt;br /&gt;           &amp;lt;!-- What role must someone be in to be an ADMIN of Pentaho --&amp;gt;  &lt;br /&gt;           &amp;lt;admin-role&amp;gt;PentahoAdmin&amp;lt;/admin-role&amp;gt;  &lt;br /&gt;      &amp;lt;/acl-voter&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;6) Rework acl-publisher definitions in &lt;i&gt;pentaho.xml&lt;/i&gt; for all the Pentaho's groups defined in the LDAP server. In my system I defined two roles &lt;i&gt;PentahoAdmin&lt;/i&gt; and &lt;i&gt;PentahoUser&lt;/i&gt; so my configuration looks like this&lt;br /&gt;&lt;br /&gt;&lt;pre style="-moz-background-inline-policy: continuous; background: url(&amp;quot;http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"&gt;&lt;code style="color: black; word-wrap: normal;"&gt;  &amp;lt;acl-publisher&amp;gt;  &lt;br /&gt;           &amp;lt;!--   &lt;br /&gt;                These acls are used when publishing from the file system. Every folder  &lt;br /&gt;                gets these ACLS. Authenticated is a "default" role that everyone  &lt;br /&gt;                gets when they're authenticated (be sure to setup your bean xml properly  &lt;br /&gt;                for this to work).  &lt;br /&gt;           --&amp;gt;  &lt;br /&gt;           &amp;lt;default-acls&amp;gt;  &lt;br /&gt;                &amp;lt;acl-entry role="PentahoAdmin" acl="FULL_CONTROL" /&amp;gt;                    &amp;lt;!-- Admin users get all authorities --&amp;gt;  &lt;br /&gt;                &amp;lt;!-- acl-entry role="cto" acl="FULL_CONTROL" / --&amp;gt;                    &amp;lt;!-- CTO gets everything --&amp;gt;  &lt;br /&gt;                &amp;lt;acl-entry role="PentahoUser" acl="EXECUTE_SUBSCRIBE" /&amp;gt;          &amp;lt;!-- PentahoUser gets execute/subscribe --&amp;gt;  &lt;br /&gt;                &amp;lt;acl-entry role="Authenticated" acl="EXECUTE" /&amp;gt;          &amp;lt;!-- Authenticated users get execute only --&amp;gt;  &lt;br /&gt;           &amp;lt;/default-acls&amp;gt;  &lt;br /&gt;           &amp;lt;!--  &lt;br /&gt;                These acls are overrides to specific file/folders. The above default-acls will  &lt;br /&gt;                be applied and then these overrides. This allows for specific access controls to  &lt;br /&gt;                be loaded when the repository if first populated. Futher changes to acls can be  &lt;br /&gt;                made in the platform GUI tool. Uncomment these and change add or delete to your hearts desire --&amp;gt;                           &lt;br /&gt;           &amp;lt;overrides&amp;gt;  &lt;br /&gt;                &amp;lt;file path="/pentaho-solutions/admin"&amp;gt;  &lt;br /&gt;                     &amp;lt;acl-entry role="PentahoAdmin" acl="FULL_CONTROL" /&amp;gt;  &lt;br /&gt;                &amp;lt;/file&amp;gt;  &lt;br /&gt;           &amp;lt;/overrides&amp;gt;  &lt;br /&gt;      &amp;lt;/acl-publisher&amp;gt;  &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;7) Stop and restart you Pentaho server and everything is ready for a try.&lt;br /&gt;&lt;br /&gt;I hope I haven't missed anything and that everything is clear enough for everyone who reads these few instructions.&amp;nbsp; Let me know if you have any problems so that I can keep updated this very brief guide.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-4697787852297510244?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/4697787852297510244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/02/bi-server-ms-active-directory-in-10.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/4697787852297510244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/4697787852297510244'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/02/bi-server-ms-active-directory-in-10.html' title='BI Server &amp; MS Active Directory in 10 minutes'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-1438393205452390055</id><published>2010-02-02T00:14:00.001+01:00</published><updated>2010-02-02T00:15:55.854+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho'/><title type='text'>Pentaho BI Server language files (1/2)</title><content type='html'>It was a long time of hard work the last month and a half but now I'm able to see a little light at the end of the tunnel and I had the time to be back. This time I have an interesting thing for all the italian friends. I completed:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt; the italian language files for Mantle GWT Client. The files were already submitted to Pentaho JIRA hoping they will be incorporated in the next release of the product.&lt;/li&gt;&lt;li&gt;the italian language file for &lt;a href="http://jpivot.sourceforge.net/"&gt;JPivot&lt;/a&gt; toolbar. This was a minor effort because it is a very little file so it takes really a few minutes to be completed. This language file has been already committed by myself on &lt;a href="http://sourceforge.net/projects/jpivot/develop"&gt;JPivot's cvs trunk&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;I detailed&amp;nbsp; below the steps to be followed to install the new language on existing BI Server installations. The files are compatible with Pentaho 3.x. A special thanks to my colleague and dear friend Andrea Pasotti who helped (and is helping) me in this work. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to activate italian language support for Mantle GWT client&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Download the files &lt;i&gt;messages_it.properties&lt;/i&gt; and&amp;nbsp; &lt;i&gt;MantleLoginMessages_it.properties&lt;/i&gt; from the following &lt;a href="http://jira.pentaho.com/browse/BISERVER-4040"&gt;link to JIRA&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Stop BI Server &lt;/li&gt;&lt;li&gt;Copy the file &lt;i&gt;messages_it.properties&lt;/i&gt; to &lt;i&gt;&amp;lt;biserver_home&amp;gt;/webapps/pentaho/mantle/messages&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Open the file &lt;i&gt;&amp;lt;biserver_home&amp;gt;/webapps/pentaho/mantle/messages/supported_languages.properties&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Add the following line&lt;/li&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 70%;"&gt;&lt;code&gt;it=Italiano&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;li&gt;Save and close the file&lt;/li&gt;&lt;li&gt;Copy the file &lt;i&gt;MantleLoginMessages_it.properties&lt;/i&gt; to &lt;i&gt;&amp;lt;biserver_home&amp;gt;/webapps/pentaho/mantleLogin/messages&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Open the file &lt;i&gt;&amp;lt;biserver_home&amp;gt;/webapps/pentaho/mantleLogin/messages/supported_languages.properties&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Add the following line&lt;/li&gt;&lt;pre style="background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 70%;"&gt;&lt;code&gt;it=Italiano&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;li&gt;Save and close the file&amp;nbsp;&lt;/li&gt;&lt;li&gt;Start BI Server &lt;/li&gt;&lt;/ul&gt;&lt;b&gt;How to activate Italian language support for JPivot toolbar&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Dowload the &lt;i&gt;resources_it.properties&lt;/i&gt; language file from the following &lt;a href="http://download.serasoft.it/public/resources_it.properties"&gt;link&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Go to &lt;i&gt;&amp;lt;biserver_home&amp;gt;/webapps/pentaho/WEB-INF/classes &lt;/i&gt;and create the following directory path&lt;i&gt; com/tonbeller/jpivot/toolbar&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Copy&lt;i&gt; resources_it.properties &lt;/i&gt;to&lt;i&gt; &lt;/i&gt;&lt;i&gt;&amp;lt;biserver_home&amp;gt;/webapps/pentaho/WEB-INF/classes/&lt;/i&gt;&lt;i&gt;com/tonbeller/jpivot/toolbar&lt;/i&gt;&lt;/li&gt;&lt;li&gt;Start BI Server&lt;/li&gt;&lt;/ul&gt;I'm going to finalize to complete translation of the GUI so in the next few weeks will follow the italian language files PAC (Pentaho Administration Console) and Ad-Hoc Query Reporting. So what else.... stay tuned!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-1438393205452390055?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/1438393205452390055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2010/02/pentaho-bi-server-italian-translations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/1438393205452390055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/1438393205452390055'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2010/02/pentaho-bi-server-italian-translations.html' title='Pentaho BI Server language files (1/2)'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-3681363179282428563</id><published>2009-12-10T01:16:00.004+01:00</published><updated>2009-12-15T11:08:17.621+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho'/><title type='text'>Patching JPivot to filter by multiple members belonging to the same dimension</title><content type='html'>A very annoying problem with the release of JPivot shipped with the actual release of &lt;a href="http://www.pentaho.com/"&gt;Pentaho&lt;/a&gt; is that you can only select one member from the same cube dimension at a time. But frequently we would like to select more than one member at a time. So what a good opportunity to build a patched release of JPivot and make that happens!&lt;br /&gt;&lt;br /&gt;The first thing I made was try to test that by writing a sample MDX query on the SteelWheels cube that had, as a filter, a tuple made up by a set of members belonging to the same dimension. It worked. Infact, starting from &lt;a href="http://mondrian.pentaho.org/"&gt;Mondrian&lt;/a&gt; 3.1.2.13008, the OLAP engine supported compound slicers that makes this possible. After this very brief verification I was convinced to continue in my adventure and the next step was to find out where was the latest JPivot sources. As stated by &lt;a href="http://www.willgorman.com/"&gt;Will Gorman&lt;/a&gt; in the post #7 of &lt;a href="http://forums.pentaho.org/showthread.php?t=65972&amp;amp;highlight=jpivot+sources"&gt;this thread&lt;/a&gt; the latest and good sources are in the obvious place... the JPivot CVS Repository of the &lt;a href="http://sourceforge.net/projects/jpivot"&gt;JPivot project on SourceForge&lt;/a&gt;. So I get it and started my work.&lt;br /&gt;&lt;br /&gt;The patch wasn't so difficult to be done and I reached easily my goal. It was a good opportunity to go into the internals of JPivot and learn about it. The new PAT is not round the corner so my opinion is that JPivot will be the production OLAP viewer of choice for Pentaho Community Edition again for a few months. So, I think, this exercise is not a waste of time.&lt;br /&gt;&lt;br /&gt;If you want to try it, you can find the &lt;a href="http://download.serasoft.it/public/jpivot-1.8.0.091203.zip"&gt;patched JPivot jar file here&lt;/a&gt;. The setup takes just one minute. Move your original JPivot library from &lt;i&gt;&amp;lt;biserver_home&amp;gt;/tomcat/webapps/WEB-INF/lib&lt;/i&gt; in a different directory (just to be safe). Unzip the archive you just downloaded and copy the extracted jar file to the location specified before. Restart Pentaho BI Server and then... here we go!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-3681363179282428563?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/3681363179282428563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2009/12/patching-jpivot-to-filter-by-multiple.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/3681363179282428563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/3681363179282428563'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2009/12/patching-jpivot-to-filter-by-multiple.html' title='Patching JPivot to filter by multiple members belonging to the same dimension'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-4607658376433816450</id><published>2009-11-27T14:36:00.000+01:00</published><updated>2009-11-27T14:36:51.330+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho'/><title type='text'>Accessing Mondrian cubes through Pentaho Report Designer</title><content type='html'>Today I had the opportunity to design some complex reports using the cubes published in my customer's Pentaho BI Server as datasources for my report. Using a cube as a datasource to produce reports is good, in my opinion, because it gives you a perfect way to make easy reporting whenever you've, for example, to produce reports that compares data on different periods.&lt;br /&gt;&lt;br /&gt;A good sample for what we're going to discuss here is the Top N Analysis report you can find in the Pentaho's Steel Wheels samples. For abbreviation I'll refer to this report simply as &lt;i&gt;"the sample"&lt;/i&gt;. If you open it and have a look at the defined datasources you can clearly see that it takes the data it needs from &lt;i&gt;steelwheels.mondrian.xml&lt;/i&gt; cube schema. So that is good for us.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Publish the report to Pentaho BI Server &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Before thinking about the publishing of your report to your bi-server running instance, you've to think about the way Pentaho will use to access the schema it needs for your report. The strategy used by the reporting plugin goes through two possible path:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Firstly it tries to access the Analysis Schema file using the path you've specified in the datasource definition of the &lt;a href="http://wiki.pentaho.com/display/Reporting/Pentaho+Reporting+Community+Documentation"&gt;Pentaho Report Designer&lt;/a&gt;. Whenever you're in the Pentaho BI&amp;nbsp; Server execution environment every path is calculated respect to &lt;i&gt;&amp;lt;BISERVER_HOME&amp;gt;/tomcat/bin&lt;/i&gt;. That means that if you set a reference to your Analysis Schema cube as a relative path in your report datasource definition (as is for the sample I mentioned in my opening) Pentaho will look for you schema file calculating the absolute file path respect to &lt;i&gt;&amp;lt;BISERVER_HOME&amp;gt;/tomcat/bin&lt;/i&gt;. So you need to be sure that your file is in the right place before the system will try to access it. I think that this way is not as good because is dependent on your BI Server filesystem layout.&lt;/li&gt;&lt;li&gt;Secondly it tries to access the schema as an XMLA datasource. That is, in my opinion, the more elegant way to make the schema available to the reporting engine.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b&gt;How to add a new XMLA datasource to Pentaho BI Server&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To define a new XMLA datasource in our Pentaho BI Server environment we've to update the &lt;i&gt;datasources.xm&lt;/i&gt;l file in &lt;i&gt;&amp;lt;BISERVER_HOME&amp;gt;/pentaho-solution/system/olap&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;This file contains the definitions of all the XMLA datasources available in the system. We can add a new datasource definition using one of these two ways:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Manually add a new &lt;i&gt;Catalog&lt;/i&gt; element to configure a new &lt;a href="http://mondrian.pentaho.org/"&gt;Mondrian&lt;/a&gt; catalog&lt;/li&gt;&lt;li&gt;While publishing the Analysis Schema from the Schema Workbench flag the &lt;i&gt;Enable&lt;/i&gt; &lt;i&gt;JNDI datasource&lt;/i&gt; and set the &lt;i&gt;JNDI Data Source&lt;/i&gt; field appropriately. You can find the procedure to publish the schema clearly explained in &lt;a href="http://wiki.pentaho.com/display/ServerDoc1x/Publishing+an+Analysis+Schema+Using+Schema+Workbench"&gt;Pentaho's wiki&lt;/a&gt;. &lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-4607658376433816450?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/4607658376433816450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2009/11/accessing-mondrian-cubes-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/4607658376433816450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/4607658376433816450'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2009/11/accessing-mondrian-cubes-through.html' title='Accessing Mondrian cubes through Pentaho Report Designer'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4547836498257352074.post-6594608898805734992</id><published>2009-10-29T12:51:00.000+01:00</published><updated>2009-10-29T12:51:53.447+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pentaho'/><title type='text'>Mondrian cubes debugging: how to display SQL queries</title><content type='html'>These days I've got the interesting need to look at the queries that &lt;a href="http://mondrian.pentaho.org/"&gt;Mondrian&lt;/a&gt; generates while the user is navigating the OLAP cube. This idea came to me when I decided to the check if the indexes applied to my tables gives me the best performances possible. To decide which indexes are eligible to be applied to my tables, my strategy is&lt;br /&gt;&lt;ul&gt;&lt;li&gt;collect some queries and then&amp;nbsp;&lt;/li&gt;&lt;li&gt;get the query plan of each query and check if the indexes are properly applied.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;It's really useful to look at Mondrian log files because they gives us a lot of useful informations about how our system is behaving. We can&lt;br /&gt;&lt;ul&gt;&lt;li&gt;look at sql statements and MDX queries,&lt;/li&gt;&lt;li&gt;have some profiling informations on queries that are executed,&lt;/li&gt;&lt;li&gt;get other useful debugging informations.&lt;/li&gt;&lt;/ul&gt;The following paragraphs illustrates how to enable Mondrian debugging logs, adding some properties to the Mondrian configuration file.&lt;br /&gt;After that, we'll configure two new log4j appenders to have the desired log files properly written on our filesystem.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Enable Mondrian debug log&lt;/b&gt;&lt;br /&gt;Mondrian has a big set of configuration settings that can be modified. In our case, to enable Mondrian debug informations follow the steps detailed below:&lt;br /&gt;&lt;br /&gt;Open the &lt;i&gt;mondrian.properties&lt;/i&gt; file located in &lt;i&gt;&amp;lt;bi-server_home&amp;gt;/pentaho-solution/system/mondrian&lt;/i&gt; and add the following line.&lt;br /&gt;&lt;blockquote style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;mondrian.rolap.generate.formatted.sql=true&lt;br /&gt;&lt;/blockquote&gt;You can find the complete set of configuration settings &lt;a href="http://mondrian.pentaho.org/documentation/configuration.php"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update log4j configuration&lt;/b&gt;&lt;br /&gt;At this point we're going to modify the log4j configuration file adding the required appenders abd categories to have our logging informations displayed properly&lt;br /&gt;&lt;br /&gt;Open the log4j.xml file located in &lt;i&gt;&amp;lt;bi-server_home&amp;gt;/tomcat/webapps/pentaho/WEB-INF/classes&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Based on what you want to log, add the one or each of the following lines to the file. They will create two new RollingFileAppenders. You're free to use &lt;br /&gt;the kind of appender you prefer. In case you need further informations about log4j and its configuration parameters you can have a look at &lt;a href="http://logging.apache.org/log4j"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;b&gt;IMPORTANT:&lt;/b&gt; The location of the produced files is relative to the &lt;i&gt;&amp;lt;bi-server_home&amp;gt;/tomcat/bin directory&lt;/i&gt;.&amp;nbsp; You can put the generated log files wherever you &lt;br /&gt;want in the filesystem but always remember this important consideration.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;lt;!-- Add the following appender only if you're interested in logging SQL statements --&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="SQLLOG" class="org.apache.log4j.RollingFileAppender"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="File" value="sql.log"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="Append" value="false"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="MaxFileSize" value="500KB"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="MaxBackupIndex" value="1"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="ConversionPattern" value="%d %-5p [%c] %m%n"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layout&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!-- Add the following appender only if you're interested in logging MDX statements --&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;appender name="MONDRIAN" class="org.apache.log4j.RollingFileAppender"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="File" value="mondrian.log"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="Append" value="false"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="MaxFileSize" value="500KB"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="MaxBackupIndex" value="1"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;layout class="org.apache.log4j.PatternLayout"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="ConversionPattern" value="%d %-5p [%c] %m%n"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layout&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/appender&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Add the following new categories to the&lt;i&gt; log4j.xml&lt;/i&gt; file according to your logging needs.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!-- and logs only to the SQLLOG --&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;category name="mondrian.sql"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;priority value="DEBUG"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="SQLLOG"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/category&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!-- and logs only to the MONDRIAN --&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;category name="mondrian"&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;priority value="DEBUG"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appender-ref ref="MONDRIAN"/&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/category&amp;gt; &lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;b&gt;Enable the new log settings&lt;/b&gt;&lt;br /&gt;To have the new log settings enabled restart the Pentaho bi-server instance. Remember, as soon as you satisfied your debugging needs, to disable the tracing logs because they have a severe impact on system performances.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4547836498257352074-6594608898805734992?l=ramathoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramathoughts.blogspot.com/feeds/6594608898805734992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ramathoughts.blogspot.com/2009/10/mondrian-cubes-debugging-how-to-display.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6594608898805734992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4547836498257352074/posts/default/6594608898805734992'/><link rel='alternate' type='text/html' href='http://ramathoughts.blogspot.com/2009/10/mondrian-cubes-debugging-how-to-display.html' title='Mondrian cubes debugging: how to display SQL queries'/><author><name>Sergio Ramazzina</name><uri>http://www.blogger.com/profile/17602567469759786999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
