Quantcast
Channel: Pentaho Community Forums
Viewing all 16689 articles
Browse latest View live

any method to export dashborad and reused on another server?

$
0
0
I have made some dashboards on my BI server. Is there any method to export these dashboards , and import these dashboards on another BI server? We have the same datasource.

Date value on parameter

$
0
0
We are using a date parameter on a report with

Value type 'Date'
Data format 'yyyy-MM-dd'
Default value Formula '=today()'

When testing the report from the report designer it works as expected, showing today's date ('2014-12-10') as the default value.

When using in a production environment browser, both on Windows and Unix, we get the following behaviour:

It displays initially as '2014-12-10T00:00:00.000+0100'
After entering or selecting any value on ANOTHER parameter value, the date parameter refreshes as '1970-01-01'

And, curiously enough, if we don't enter anything, even displaying '1970-01-01' its real value is todays date, so the query works as expected.

But users get quite confused! :D

Any idea?

Thks

Connect Carte to Repository.

$
0
0
Good Morning guys,

I was able to set up Carte and to run ad hoc transformations. However I am intended to run scheduled jobs, but they fail and inform "no repository found".

Then I decided to include the repository tag in the XML file that I use to run Carte, and it is as follows:

<slave_config>
<slaveserver>
<name>LINUX Pentaho</name>
<hostname>192.168.25.84</hostname>
<port>8181</port>
<username>cluster</username>
<password>cluster</password>
</slaveserver>


<repository>
<name>Repos</name>
<username>admin</username>
<password>PDIfinanceir0</password>
</repository>
</slave_config>

But, how do I inform the connection string to the database repository? I guessed that I could use a repositories.xml file but I am still lost.

Well, my carte says this
Unable to connect to repository: Repos

How do I complete this config?

Thanks in advance.

How to make a WHERE when a member from the same Hierarchy already is in rows or cols?

$
0
0
Hello!

I have a dimension called Date, with one hierarchy in it (default).

From that I want Months on rows and filter on Year = 2014.

This doesnt work:
Code:

SELECT [Date].[Month].Members ON 0,
Measures.Amount ON 1
FROM [GL]
WHERE [Date].[Year].[2014]

I have tried with FILTER, and tuples also but nothing works. In SSAS I would use a Sub Query but there is no support for that in Mondrian.

Does anyone know how to accomplish this?

/Pierre

VERY URGENT !!! Repository create error - MS SQL SERVER 2008 R2

$
0
0
I used NATIVE JDBC and tested the connectoion and no issues in accessing the DB. But when i create repository, it throws error



The version of the repository is -1.-1.
This Kettle edition requires it to be at least version 5.0 and as such an upgrade is required.


To upgrade, backup your database and export the repository to XML for additional safety.


Then select the 'Edit' button followed by the 'Create or Upgrade' button.


Please consult the Upgrade Guide for eventually special instructions for this version.

How to define a Sum If

$
0
0
I have a table with Category, Date and Value for example. I would like for each Category compare the of the value for 2 months (the 2 months are parameters input):

So
1. I am doing a Group By Category, and
2. I am defining an Open Formula which display 'Value' if MONTH(Date) = pFirstMonth and 0 else.
3. then I define a Sum on this Open Formula and this should give me the Sum of all Value for the FirstMonth for the category in question and I do the same for secondmonth,

ISSUE: but it doesn't work as the Open Formula is considering my output as a String and can't find a way to transform it into a Number or Integer so I can do the sum.

Open Formula defined: =INT(if((MONTH([CreationDate])&YEAR([CreationDate])=MONTH([pFirstMonth])&YEAR([pFirstMonth]));[Value];0))

Sum function: is pointing to my above Open Formula and display the last value of my selection in String format.

The idea is for me to display a result table like this:

Value (First Month) Value (Second Month) Diff.

Category 1 15 12 -3
Category 2 20 30 +10

I hope this is clear,

REST CLIENT to Dovico API

$
0
0
Greetings.

Trying to interface with the Dovico API with PDI. The online documentation gives a curl example that I can run successfully from a command line

curl -H "Authorization: WRAP access_token=\"client=[my-client-token-here]&user_token=[my-user-token-here]\"" -k https://api.dovico.com/employees/?version=5

However, I'm wrestling with getting this 'header' context into kettle.

I tried this first:
  • Step: Generate Rows
  • Create a field: [Authorization:]
  • Assigned the value: [WRAP access_token="client=[my-client-token-here]&user_token=[my-user-token-here]"]
  • Step: REST Client
  • Headers tab
  • Field: Authorization:, Name: Authorization:


I get back:
<Error xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Description>The server failed to authenticate the request.</Description><Status>Unauthorized</Status></Error>

I also tried:
I tried this first:
  • Step: Generate Rows
  • Create a field: [auth]
  • Assigned the value: [Authorization: WRAP access_token="client=[my-client-token-here]&user_token=[my-user-token-here]"]
  • Step: REST Client
  • Headers tab
  • Field: auth, Name: auth


Same result.

(NOTE - in curl I has to escape the quotes, but assume I do not have to with kettle.)

Leads on what I'm doing wrong?

Thank you!

ATTENTION: Bug still in 5.1 CE FILE BROWSER ISSUE


Pentaho Data integrator - specifying schema at JNDI or passing as parameter

$
0
0
've following scenario,


1. A Petaho KTR/KJB code to populate a table - dim_customer

2. I've a database (ABC) with schemas within the database (schema_1, schema_2, schema_3)

3. Each schema has dim_customer as table with exact same structure

4. I also have source_system_1, source_system2, source_system3 from where I get customer information to populate in target schema_1, schema_2, schema_3 respectively


Need is


1. Have one copy of ETL and pass (or configure somewhere in JNDI or other place in pentaho setup) connection information including schema information such that the same ETL can be used for three target schema



Question to you is - how do I make this happen? What are the steps I've to follow in configuration that will allow me to achieve this


If instead of schema, I would have databases, I think it is easy solution by having three JNDI files, each with same connection label but different actual connection details...and passing corresponding JNDI for each of the three executions..


But I'm stuck here because I've multiple schemas within a database


I would greatly appreciate any pointers

thanks, ronak

Date Addition/Subtraction

$
0
0
Good evening,

I am trying to extract two dates from a csv and calculate the difference measured in hours and days. I am not sure of the best approach to doing this, so I attempted a solution that probably ended up being overkill and may have some flaws (performance or accuracy) I overlooked. I am hoping someone can provide a bit of guidance.

First, I extracted the data from a csv with the date fields as text (I have previously had data type problems using other types because the data comes from a suspect source). I should mention that one of the dates is provided as date and time separately, while the other contains both in the same field.

Second, I add the date and time fields to produce a second datetime value using the Calculator step.

Third, I cast both fields as numbers using the Select Values step.

Fourth, I calculate the difference of the two dates as number using the Calculator step and one of the provided functions (A - B).

Fifth, I copy the calculated difference field from step 4 as number using the Calculator step.

Sixth, I set a constant (3600000) in the copied field using the Set Field Value to Constant step.

Seventh, I calculate the "lag" in hours by dividing the value created in step four by the constant from step six using the Calculator step.

Eighth, I copy the field created in step 4 as number using the Calculator step.

Ninth, I set a constant (24) in the field from step 8 using the Set Field Value to Constant step.

Tenth, I calculate the "lag" in days by dividing the value created in step 7 by the constant from step 9 using the Calculator step.

Like I said, this is probably a really silly way of doing this, but it SEEMED to work well (there may be overlooked flaws, as I am new at this). I took a picture of the ETL but was unable to load it to the forum. What can I do to improve this process from an accuracy and performance standpoint? Any tips for dealing with extracted dates?

Cheers.

Carriage Returns and Data Scrubbing

$
0
0
I receive a data set with a date field, this field can have data in several forms:
  • NULLs
  • Normal Dates
  • Dates with Carriage Returns and (sometimes) additional dates


I am interested in using PDI to extract the field and strip the values of carriage returns. In the cases where multiple dates are in the field, I would like to keep the last one and discard the others.

Is this transformation possible? If so, how?

Cheers.

regarding passing parameter from Penel_1 to Panel_2

$
0
0
Hi All,


i am new to dashboards & i have created one dashboard which has two panels (Penel_1 & Panel_2), i am trying to pass parameter from Penel_1 to Panel_2, by clicking slice in pie chart from panel_1...


following is code i have written which looks good but its not working because dashboard is refreshing on click but parameter is not getting passed to panel_2 .




function q(scene){ var vars = scene.vars;
var c = vars.category.value;
Dashboards.setParameter('param_custom_state', c.substring(7, c.length));
Dashboards.fireChange('param_custom_state', c.substring(7, c.length));
}
Requesting you to pls. help me on this...


Regards,
Mateen

Cannot use fields on formulas

$
0
0
I'm sure this must be some stupid mistake from a newbie but I was not able to find any answer on the forums.

I'm trying to print either one or another of two possible fields on a label type using a formula as a value.

My original guess was (param is a Boolean parameter)

=if(${param};[field1];[field2]) ==>> Formula: Syntax error. So I started slowly ...

=if(${param};"ABC";"XYZ") ==>> Formula: Syntax error.

=if(1;[field1];[field2]) ==>> Formula: Not enough data for computation ...

=if(1;"ABC";[field2]) ==>> Formula: ABC

=if(0;"ABC";[field2]) ==>> Formula: Not enough data for computation ...

So it seems I don't know how to use fields neither parameters!

Any help would be appreciated.

PS: I'm editing the formula in View mode as I read somewhere that formulas don't like <null> values for fields so you need to execute the rapport to have values on them.

New Ctools releases 14.12.10

$
0
0
This one is big! I'll do a blog post soon about the amazing improvements on CDE

Community Dashboard Framework - Version 14.12.10

Bug

  • [CDF-271] - Upgrade jquery version on cdf
  • [CDF-289] - When running on windows, the Orient folder structure is located at the wrong folder
  • [CDF-400] - CCC - Cartesian axis layout takes labels into account even when axisLabel_visible = false.
  • [CDF-408] - Run multiple queries in parallel in a CDE dashboard
  • [CDF-410] - Userid field in PersistenceEngine documents getting removed
  • [CDF-423] - [Regression] Pentaho EE 5.0.7 with latest CTools v14.10.15 is breaking PIR
  • [CDF-424] - CCC - axisLabel overrides more specific extension points like orthoAxisLabel
  • [CDF-427] - jQuery plugin "chosen" selected item class is not removed when you select a new item
  • [CDF-428] - Cross domain Ajax requests are not working due to jquery feature
  • [CDF-433] - Upgrade of Chosen library to new version breaks existing css rules definitions
  • [CDF-435] - Error parsing parameter- value string literal
  • [CDE-342] - fixed SimpleAutoComplete Component

Improvement

  • [CDF-285] - clearCache endpoint should also clear /tmp/.cache folder ( the i18n messages.properties cache )
  • [CDF-404] - CCC - Modified discrete cartesian axis band model, with different semantics and the addition of maximum size and spacing options
  • [CDF-438] - CCC - Adapt personal jsFiddles into "jsFiddle demos" located in CCC's github repository.

New Feature

  • [CDF-405] - CCC - Options to control the minimum and maximum precision/units of temporal ticks
  • [CDF-407] - CCC - Cartesian Axis TickFormatter - Need to know the previous tick value for smart temporal formats

Story

  • [CDF-414] - CCC - spinoff code of the "pvc.data" namespace into a new namespace: CDO
  • [CDF-415] - CCC - split def.js source code into multiple files


Community Data Access - Version 14.12.10

Bug

  • [CDA-55] - Errors on multiple parameters on Kettle with SQL Table Input
  • [CDA-102] - Cpf AuditHelper should catch exceptions
  • [CDA-103] - CDA endpoint clearCache should return some confirmation
  • [CDA-109] - Can't edit a CDA file that contains spaces on the path

Improvement

  • [CDA-45] - CDA editor: when editing the parameter boxes, the text gets behind the "?" image
  • [CDA-46] - CDA editor: As a user, I would like to know the meaning of the number that appears after the Data Access selector
  • [CDA-100] - Exporters using Kettle do not respect OutputIndexId
  • [CDF-428] - Cross domain Ajax requests are not working due to jquery feature

Task

  • [CDA-108] - Add XPath sample to CDA Pentaho 5 solution


Community Dashboard Editor - Version 14.12.10

Bug

  • [CDE-295] - 'Map Component Reference' js error when mouse over the map 'Map with Shapes (population per km2, top 100 countries)'
  • [CDE-342] - Simple Auto-Complete Box Component does not function correctly
  • [CDE-347] - While editing a dashboard the "Preview your dashboard" popup shows some charts incorrectly
  • [CDE-384] - When the editor is used in CDE to edit an external file, closed, and then you attempt to edit another external file type the system seems to stick the new path in front of the old.
  • [CDE-387] - Can't use CFR as non-admin user
  • [CDE-388] - OlapWizard is not working correctly after drag&drop update
  • [CDE-394] - Line Chart overflows outside of chart area
  • [CDE-396] - CDE endpoint refresh should return some confirmation
  • [CDE-402] - [Regression] unable to apply a template in a CDE Dashboard using CTools v14.10.15
  • [CDE-404] - Can't edit system resources for plugins with upper case letters
  • [CDE-407] - Duplicate space element with 0 width doesnt work
  • [CDE-413] - "Column Types" editor has a poor layout (tableComponent)

Component

  • [CDE-317] - clickAction the shapes of the component [NewMapComponent]

Improvement

  • [CDE-314] - nominatim vs mapquest API
  • [CDE-367] - As a dashboard developer I would like to simply copy and paste a color into background Color field in a row/column, ala #3d558c. The color picker is difficult to use in this manner.
  • [CDE-392] - When using Bootstrap renderer, adding a table should make the table adopt the bootstrap style by default
  • [CDE-399] - Allow the accordion menu on the component layout to collapse
  • [CDE-408] - Have scrollers on the tables of CDE
  • [CDF-271] - Upgrade JQuery on CDE

Story

  • [CDE-270] - As a dashboard developer I want to be able to move layout elements in and out of others
  • [CDE-405] - As a dashboard developer, I want component accordion groups to be toggled when I click on their header

Task

  • [CDE-365] - Review cde jquery dependencies
  • [CDE-395] - When a new dashboard is created, the renderer type should be bootstrap by default

Community Chart Collection - Version 14.12.10

  • [CDF-405] - Options to control the minimum and maximum precision/units of temporal ticks
  • [CDF-407] - Cartesian Axis TickFormatter - Need to know the previous tick value for smart temporal formats
  • [CDF-414] - spinoff code of the "pvc.data" namespace into a new namespace: CDO
  • [CDF-415] - split def.js source code into multiple files
  • [CDF-424] - axisLabel overrides more specific extension points like orthoAxisLabel
  • [CDF-400] - Cartesian axis layout takes labels into account even when axisLabel_visible = false.

Community Graphics Generator - Version 14.12.10

Improvement

  • [CDF-414] - spinoff code of the "pvc.data" namespace into a new namespace: CDO
  • [CDF-387] - review cgg jquery dependency

Community Distributed Cache - Version 14.12.10

Improvement

  • Maintenance release - keep compatibility with latest ctools version
  • [REDMINE-3274] - Cache cleaning on Member layer





More...

Issues with variables

$
0
0
Hello:
I've having an issue passing along connection variables to a child job. First I'll give you some details on my setup:
OS = Windows Server 2012
Kettle build = 5.0.1(stable)
Repository type = database(MySQL)
Source/Target database = MSSQL 2012
Running the current Kettle job from = inside of Spoon

As I mentioned I'm having problems passing the connection string parts down. I've got a DB connection table with the requisite parts: host, database, port, and credentials. The main job's 1st step is to query that table(Table Input) and then Copy Rows to Result. The next step is the child job which is set to Execute for every input. The 1st step inside of that child job is to Set Variables. It sets the following: HostName, DatabaseName, PortNumber, UserName, and UserPassword. So the transform Gets rows from result and Sets Variables. The next step in the job then gets those variables through a Get Variables step and creates a ${HOSTNAME}, ${DATABASENAME}, and so on. Finally, the job should load the test table. The connection inside of the Table Input and Table Output of the final transformation should use the variables to create their connections.

Here is a breakdown of the steps:

Master Job(main job)
Get DB Connections > Load Dim Test(set to execute for every input)

Load Dim Test(child job)
Set Variable > Get Variable > Load Dim Test

The error dump indicates an error while connecting to the database. It never makes it past the Master Job. Any ideas? It appears as though Kettle is attempting to validate the connections prior to execution starting. Maybe I need to initialize the values of the connection string parts inside of the kettle.properties file. Any help you can provide is much appreciated!

I’ve included the log text below:
2014/12/11 09:15:08 - Spoon - Starting job...
2014/12/11 09:15:09 - Master Load Mather Load All - Start of job execution
2014/12/11 09:15:09 - Master Load Mather Load All - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : A serious error occurred during job execution:
2014/12/11 09:15:09 - Master Load Mather Load All - Error occured while trying to connect to the database
2014/12/11 09:15:09 - Master Load Mather Load All -
2014/12/11 09:15:09 - Master Load Mather Load All - Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2014/12/11 09:15:09 - Master Load Mather Load All - The syntax of the connection URL 'jdbc:jtds:sqlserver:///' is invalid.
2014/12/11 09:15:09 - Master Load Mather Load All - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2014/12/11 09:15:09 - Master Load Mather Load All - Error occured while trying to connect to the database
2014/12/11 09:15:09 - Master Load Mather Load All -
2014/12/11 09:15:09 - Master Load Mather Load All - Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2014/12/11 09:15:09 - Master Load Mather Load All - The syntax of the connection URL 'jdbc:jtds:sqlserver:///' is invalid.
2014/12/11 09:15:09 - Master Load Mather Load All -
2014/12/11 09:15:09 - Master Load Mather Load All -
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.core.database.Database.normalConnect(Database.java:415)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.core.database.Database.connect(Database.java:353)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.core.database.Database.connect(Database.java:306)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.core.database.Database.connect(Database.java:294)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.job.Job.beginProcessing(Job.java:966)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.job.Job.execute(Job.java:474)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.job.Job.run(Job.java:407)
2014/12/11 09:15:09 - Master Load Mather Load All - Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2014/12/11 09:15:09 - Master Load Mather Load All - Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2014/12/11 09:15:09 - Master Load Mather Load All - The syntax of the connection URL 'jdbc:jtds:sqlserver:///' is invalid.
2014/12/11 09:15:09 - Master Load Mather Load All -
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:540)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.core.database.Database.normalConnect(Database.java:399)
2014/12/11 09:15:09 - Master Load Mather Load All - ... 6 more
2014/12/11 09:15:09 - Master Load Mather Load All - Caused by: java.sql.SQLException: The syntax of the connection URL 'jdbc:jtds:sqlserver:///' is invalid.
2014/12/11 09:15:09 - Master Load Mather Load All - at net.sourceforge.jtds.jdbc.Driver.setupConnectProperties(Driver.java:242)
2014/12/11 09:15:09 - Master Load Mather Load All - at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
2014/12/11 09:15:09 - Master Load Mather Load All - at java.sql.DriverManager.getConnection(DriverManager.java:571)
2014/12/11 09:15:09 - Master Load Mather Load All - at java.sql.DriverManager.getConnection(DriverManager.java:233)
2014/12/11 09:15:09 - Master Load Mather Load All - at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:528)
2014/12/11 09:15:09 - Master Load Mather Load All - ... 7 more
2014/12/11 09:15:09 - Spoon - Job has ended.
2014/12/11 09:16:20 - General - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : Unable to get rows of data from logging table ListenerReporting-ListenerReporting
2014/12/11 09:16:20 - General - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : Unable to get rows of data from logging table ListenerReporting-log_channel
2014/12/11 09:16:20 - General - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2014/12/11 09:16:20 - General - Error occured while trying to connect to the database
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General - Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2014/12/11 09:16:20 - General - The syntax of the connection URL 'jdbc:jtds:sqlserver://${HOSTNAME}:${PORTNUMBER}/${DATABASENAME}' is invalid.
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.normalConnect(Database.java:415)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connect(Database.java:353)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connect(Database.java:306)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connect(Database.java:294)
2014/12/11 09:16:20 - General - at org.pentaho.di.ui.spoon.trans.TransHistoryDelegate.getHistoryData(TransHistoryDelegate.java:472)
2014/12/11 09:16:20 - General - at org.pentaho.di.ui.spoon.trans.TransHistoryDelegate.access$500(TransHistoryDelegate.java:78)
2014/12/11 09:16:20 - General - at org.pentaho.di.ui.spoon.trans.TransHistoryDelegate$3.run(TransHistoryDelegate.java:426)
2014/12/11 09:16:20 - General - at java.lang.Thread.run(Thread.java:745)
2014/12/11 09:16:20 - General - Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2014/12/11 09:16:20 - General - Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2014/12/11 09:16:20 - General - The syntax of the connection URL 'jdbc:jtds:sqlserver://${HOSTNAME}:${PORTNUMBER}/${DATABASENAME}' is invalid.
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:540)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.normalConnect(Database.java:399)
2014/12/11 09:16:20 - General - ... 7 more
2014/12/11 09:16:20 - General - Caused by: java.sql.SQLException: The syntax of the connection URL 'jdbc:jtds:sqlserver://${HOSTNAME}:${PORTNUMBER}/${DATABASENAME}' is invalid.
2014/12/11 09:16:20 - General - at net.sourceforge.jtds.jdbc.Driver.setupConnectProperties(Driver.java:242)
2014/12/11 09:16:20 - General - at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
2014/12/11 09:16:20 - General - at java.sql.DriverManager.getConnection(DriverManager.java:571)
2014/12/11 09:16:20 - General - at java.sql.DriverManager.getConnection(DriverManager.java:215)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:524)
2014/12/11 09:16:20 - General - ... 8 more
2014/12/11 09:16:20 - General - ERROR (version 5.0.1-stable, build 1 from 2013-11-15_16-08-58 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2014/12/11 09:16:20 - General - Error occured while trying to connect to the database
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General - Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2014/12/11 09:16:20 - General - The syntax of the connection URL 'jdbc:jtds:sqlserver://${HOSTNAME}:${PORTNUMBER}/${DATABASENAME}' is invalid.
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.normalConnect(Database.java:415)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connect(Database.java:353)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connect(Database.java:306)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connect(Database.java:294)
2014/12/11 09:16:20 - General - at org.pentaho.di.ui.spoon.trans.TransHistoryDelegate.getHistoryData(TransHistoryDelegate.java:472)
2014/12/11 09:16:20 - General - at org.pentaho.di.ui.spoon.trans.TransHistoryDelegate.access$500(TransHistoryDelegate.java:78)
2014/12/11 09:16:20 - General - at org.pentaho.di.ui.spoon.trans.TransHistoryDelegate$3.run(TransHistoryDelegate.java:426)
2014/12/11 09:16:20 - General - at java.lang.Thread.run(Thread.java:745)
2014/12/11 09:16:20 - General - Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2014/12/11 09:16:20 - General - Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver)
2014/12/11 09:16:20 - General - The syntax of the connection URL 'jdbc:jtds:sqlserver://${HOSTNAME}:${PORTNUMBER}/${DATABASENAME}' is invalid.
2014/12/11 09:16:20 - General -
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:540)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.normalConnect(Database.java:399)
2014/12/11 09:16:20 - General - ... 7 more
2014/12/11 09:16:20 - General - Caused by: java.sql.SQLException: The syntax of the connection URL 'jdbc:jtds:sqlserver://${HOSTNAME}:${PORTNUMBER}/${DATABASENAME}' is invalid.
2014/12/11 09:16:20 - General - at net.sourceforge.jtds.jdbc.Driver.setupConnectProperties(Driver.java:242)
2014/12/11 09:16:20 - General - at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
2014/12/11 09:16:20 - General - at java.sql.DriverManager.getConnection(DriverManager.java:571)
2014/12/11 09:16:20 - General - at java.sql.DriverManager.getConnection(DriverManager.java:215)
2014/12/11 09:16:20 - General - at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:524)
2014/12/11 09:16:20 - General - ... 8 more
2014/12/11 09:19:33 - Spoon - Spoon

dynimically get all parameters with javascript

$
0
0
I have a situation where I need to read all parameters that a transformation has inside a javascript step. I want a way to loop through them all getting their names / values (we can assume all are strings) to build a single string containing that information. The difficult part is that I do not know ahead of time what the parameter names are, or how many there are. How can this be done?

How to change Datasource property of CDE component dynamically?

$
0
0
Hi!


I need to change dynamically the Datasource property of Table component (or any other CDE component) depends on parameters.

Is it possible to do this in PreExecution section of component?
Something like this:

Code:

function f()
{
    if (MyParameter.value ==1) {
      this.Datasource = DataSource1;
    } else {
      this.Datasource = DataSource2;
    }
}

Thank you.

BTable filtering by a measure

$
0
0
Hi all,

Maybe is an stupid question but I can't find how to do so simple action.

I'm trying to get only lines with a quantity of 10, so I set this in BTable.Measures >> Arg:[Measures].[Quantity] Value: 10

but it doesn't works.

Can Btable be filtered by a measure?? if it is possible, how can I set a filter to get a result with quantity greater than 10?

thanks in advance!

Troubles with a custom js selector

$
0
0
I'm having some troubles with custom parameters. So the goal is to use a custom js slider as a selector for a date range.
The slider has a couple of handles and each one is associated with a value so that in the end there is a couple of date_from/to, month_from/to or week_from/to.
These values are then associated to custom dashboard parameters and passed to a query used to generate a simple chart.


The way I'm trying to achieve this is the following: I prepared a JS snippet that creates the slider object. Inside the js I set the parameters (in this example I use date_from and date_to) and firechange everytime the user interacts with the slider.
Code:

<script>
(...)
// .val() returns an array with the current values on the slider
var values = $("#slider").val();
Dashboards.setParameter("date_from", values[0]);
Dashboards.setParameter("date_to", values[1]);
$("#slider").on({
    set: function(){
        values = $("#slider").val();
        Dashboards.fireChange("date_from", values[0]);
        Dashboards.fireChange("date_to", values[1]);
    }
});
</script>

The custom parameters are defined as:
date_from:
Code:

function() {return date_from;}
date_to:
Code:

function() {return date_to;}
I'm using native charts such as line and pie ones where i simply put date_from/date_to in Parameters and Listeners.


The query is mdx over mondrianJndi and each parameter has is defined as:
Code:

name: date_from
value: date_from
type: String

That's it but it ain't working. I've tried to put some alerts here and there with alert(Dashboards.getParameterValue("date_from")); to ensure that the values were actually stored into the params but even if i can access, read and display the values correctly on several interaction levels the query is never processed. So i guess the problem might be related to the CCC Chart component's listener or the way I've defined the previous custom params/js.


Any idea on what I'm missing?


regards

Clear Mondrian Cache with XMLA?

$
0
0
I am running Mondrian 3.5 (haven´t found a .war file or a way to make one on the later releases) on Tomcat - the binary release.
Is there a way to clear the cache with XMLA commands?
I have a web page that queries Mondrian through XMLA and it would be great to have the ability to clear the cache aswell from the page.

If not, is there another way to send a "Clear Cache" command to Mondrian without changing the Mondrian code itself?

EDIT: I am using Mondrian as is, not Pentaho BI Suite.
Viewing all 16689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>