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

how can I pass a state information set in one row to the next processed row?

$
0
0
What I actually want to do is map an SDMX-document (XML, tree-structure) onto a table / list of rows and then feed it to a database.

I read the SDMX-document using the "XML Input Stream" step which leads to list of rows representing the atoms of the document which I now have to rearrange. So let's assume a simplified tree structure like this:

Clipboard02.gif

With X and V being the type of the value or the name of the dimension (like city for X and population for V - ignoring necessary time dimension).

And the list of rows looks something like this - coming from the XML input Stream and using a few steps in between (Table 1):

KEY | VALUE
------------
X | A
V | 1
V | 2
V | 3
X | B
V | 1.3
V | 2.3
V | 3.3


The final row structure I would like to achieve looks like this (Table 2):

X | V
-------
A | 1
A | 2
A | 3
B | 1.3
B | 2.3
B | 3.3


As Kettle is walking through all the rows from start to finish (Table 1) my idea is to store the last value of X and and use it as a value in the finally produced row (Table 2).

But so far none of the ideas worked out.

For example I tried a switch/case on X/V for KEY - so as soon as KEY = X a variable is set to its VALUE and when KEY = V then the variable is used for column X.

Clipboard05.gif

How can I accomplish this feat in Kettle?

Thanks in advance

Raffael
Attached Images

Unable to Open transformations on Linux

$
0
0
Hi All,

I got a problem while working in linux version(CentOS release 5.8).The mappings are not opening in the kettle.Previously these mappings are working fine.And suddenly the database connections also disappear for the opened mappings.so dont know the reason.Later i deleted complete Kettle software and moved the fresh software again.But the result same the mappings are not opening.Can any one know what is the exact reason.


Thanks,
Jagadish kumar varma.

Set domain name to pentaho system

$
0
0
Hi All.
We are just starting with pentaho BI system integration in our company.
We have decided to put Pentaho User Consule as an IFrame in our backoffice.
As such, I need the Pentaho IFrame will be streach according to his content(the Pentaho User Consule).
I already found a solution for this but I have to sstretch et the domain name of the Pentaho User Consule in a JavaScript.
My question is: is there a specific javascript file or any segment of javascript code that loads in any page of the user consule so I can plane my javascript in?
the line is very simple: document.domain="mydomain.com".

any help will be appriciated.

Thank,
Avi

When will a working 5.x be available?

$
0
0
Dear community,

My team is planning to adapt the pentaho BI suite,
and willing to contribute Traditional Chinese related resources back to the community,
(e.g. https://github.com/pentaho/pentaho-platform/pull/475).

However the the most current 5.x trunk in GitHub (and binaries in Jenkins) seems no any BI functions (ad hoc qurey, reporting, etc.) at all.
Is it possible for me to demo a functioning and localized pentaho instance for my boss prior to this 31, May?
Or the only thing I can do is to adapt version 4.8 and localizing it?

Thank you.

--
Pei-Tang Huang
Engineer
Enterprise Business Group,
Chunghwa Telecom Co., Ltd.

Facing problem on running the transformation in diff server!!

$
0
0
Hi can anyone plz temme solution for this problem ???


Consider a prod environment (Server1) where there wont be access to our local development db (Server 2). On such case, repository movement wont help..
Are there any ways to handle this scenario instead of moving repo to server ???? plz help me...

Instaview?

$
0
0
Hello everybody,

Some documentation about this please?. I had Data Integration comunitty 4.3.

Also, I read a little documentation about this. And a had some questions

It's necesary have the 4.4 Enterprise Edition? Is there any in Comunitty? Is Big data Preview a pluguin for Data Integration? Are Big Data Prevew and Instaview the same?

Thanks,

Emilio

Kitchen server?

$
0
0
Hi, I call kitchen from my application to have it run some jobs, and it works fine.
However, for short jobs what takes the longest time is not running the job, but loading all the environment in memory.
Is there a way to have it running as a server, so that this overhead can be eliminated?
I understand that Carte does something similar, but it is not intended to be used directly from 3rd party applications?

Mavenization of Pentaho project?

$
0
0
I found it is hard for me to catch the pentaho project structure and managing building and debugging in my eclipse.

The current build scripts has so many targets and doing too much things.
Besides me, the IDEs knows little about those hard stuffs too.

Maven's "Convention over Configuration" philosophy makes people and machine easier to know the build.
And the m2eclipse project (now parts of eclipse distribution) bridges Maven pom.xml and Eclipse IDE well.

I don't know what's failed the Mavenization progress years ago as archived in http://forums.pentaho.com/forumdisplay.php?244-Maven.
But if this process is still valuable, I can provide assistance in maveniziation :D

Cell Formatter issue

$
0
0
Hello,
I'm using a JavaScript into a cell formatter as part of a Calculated Member. The Java script converts seconds into a D/H/M/S format. The script works fine on a dev server (running BI Server 4.5) BUT does not works under the pre prod environment (running BI 4.1 server). The format is not applied. I know the Javascript piece is fine (working on the dev server). Just wonder why it doesn't work on our pre work server. The Cell formatter feature was there in 4.1 so it should work with that version. But I wonder if there was any difference in the declaration of the cell formatter.

See the calculated meber definition here below.

<CalculatedMember name="Delai de mission" formula="[Measures].[M - Delai mission]" dimension="Measures" visible="true">
<Annotations>
<Annotation name="AnalyzerBusinessGroup">
<![CDATA[Expression de Besoin]]>
</Annotation>
</Annotations>
<CellFormatter>
<Script language="JavaScript">
<![CDATA[sec_numb = parseInt(value, 10);

var days = Math.floor(sec_numb / 86400);
var hours = Math.floor((sec_numb - (days * 86400))/ 3600);
var minutes = Math.floor((sec_numb - (days * 86400) - (hours * 3600)) / 60);
var seconds = sec_numb - (days * 86400) - (hours * 3600) - (minutes * 60);

if (hours < 10) {hours = "0"+hours;}
if (minutes < 10) {minutes = "0"+minutes;}
if (seconds < 10) {seconds = "0"+seconds;}
var time = days+'j '+hours+'h '+minutes+'m '+seconds+'s';
return time;]]>
</Script>
</CellFormatter>
</CalculatedMember>

Ctools Icon Set

$
0
0
Our UX team, tired of putting up to the speed where we develop new ctools, decided that it would be a good idea to build an official icon set that you can get from our website.

Obviously, we allow it to be available to anyone, so feel free to (ab)use it!




More...

hello

$
0
0
just joined here to share my thoughts and ideas and also hope to enjoy my stay on this community

user defined java expression Error

$
0
0
Hi all,

error in user defined java Expression step,
new to pentaho data integration, we have two dates as date1 and date2 in DataGrid Step and we need (date1.compareTo(date2) > 0) in user defined java expression step.
date1 | date2
9/3/1944 0:00:00 |
| 9/16/1949 0:00:00

error is null , how to catch null?
Attached Images

Table Output step - Connection problem

$
0
0
Hi,

I'm remotely running a transformation using pan.sh, but when the transformation start to execute the table output step (to a MySql table) I'm getting a connection error. I've tested the connection successfully, the transformation was running normally until 2 days ago and no changes were made to it in 5 days.

Log:

Code:

NFO  13-05 13:16:04,978 - Merge Join - Finished processing (I=0, O=0, R=14112, W=9626, U=0, E=0)
INFO  13-05 13:16:04,988 - If field value is null - Finished processing (I=0, O=0, R=9626, W=9626, U=0, E=0)
ERROR 13-05 13:16:05,639 - Table output - Unexpected error committing the database connection.
ERROR 13-05 13:16:05,640 - Table output - org.pentaho.di.core.exception.KettleDatabaseException:
Error comitting connection


Unable to get database metadata from this database connection
No operations allowed after connection closed.




        at org.pentaho.di.core.database.Database.commit(Database.java:707)
        at org.pentaho.di.core.database.Database.commit(Database.java:676)
        at org.pentaho.di.core.database.Database.emptyAndCommit(Database.java:1492)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose(TableOutput.java:658)
        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:79)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
Unable to get database metadata from this database connection
No operations allowed after connection closed.


        at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:3105)
        at org.pentaho.di.core.database.Database.commit(Database.java:693)
        ... 5 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
        at sun.reflect.GeneratedConstructorAccessor8.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.Util.getInstance(Util.java:386)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
        at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1304)
        at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1296)
        at com.mysql.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:3236)
        at com.mysql.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:3231)
        at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:3101)
        ... 6 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure


The last packet successfully received from the server was 126,422 milliseconds ago.  The last packet sent successfully to the server was 28 milliseconds ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3871)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2484)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2664)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2815)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2458)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2375)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2359)
        at org.pentaho.di.core.database.Database.insertRow(Database.java:1360)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:284)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:128)
        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
        ... 1 more
Caused by: java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3852)
        ... 12 more


ERROR 13-05 13:16:05,641 - Table output - org.pentaho.di.core.exception.KettleDatabaseException:
Error comitting connection


Unable to get database metadata from this database connection
No operations allowed after connection closed.




        at org.pentaho.di.core.database.Database.commit(Database.java:707)
        at org.pentaho.di.core.database.Database.commit(Database.java:676)
        at org.pentaho.di.core.database.Database.emptyAndCommit(Database.java:1492)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose(TableOutput.java:658)
        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:79)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
Unable to get database metadata from this database connection
No operations allowed after connection closed.


        at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:3105)
        at org.pentaho.di.core.database.Database.commit(Database.java:693)
        ... 5 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
        at sun.reflect.GeneratedConstructorAccessor8.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.Util.getInstance(Util.java:386)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
        at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1304)
        at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1296)
        at com.mysql.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:3236)
        at com.mysql.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:3231)
        at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:3101)
        ... 6 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure


The last packet successfully received from the server was 126,422 milliseconds ago.  The last packet sent successfully to the server was 28 milliseconds ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3871)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2484)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2664)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2815)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2458)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2375)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2359)
        at org.pentaho.di.core.database.Database.insertRow(Database.java:1360)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:284)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:128)
        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
        ... 1 more
Caused by: java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3852)
        ... 12 more


ERROR 13-05 13:16:05,642 - Table output - Unexpected error rolling back the database connection.
ERROR 13-05 13:16:05,642 - Table output - org.pentaho.di.core.exception.KettleDatabaseException:
Unable to get database metadata from this database connection
No operations allowed after connection closed.


        at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:3105)
        at org.pentaho.di.core.database.Database.rollback(Database.java:724)
        at org.pentaho.di.core.database.Database.rollback(Database.java:713)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.dispose(TableOutput.java:708)
        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:79)
        at java.lang.Thread.run(Thread.java:722)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
        at sun.reflect.GeneratedConstructorAccessor8.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.Util.getInstance(Util.java:386)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
        at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1304)
        at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1296)
        at com.mysql.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:3236)
        at com.mysql.jdbc.ConnectionImpl.getMetaData(ConnectionImpl.java:3231)
        at org.pentaho.di.core.database.Database.getDatabaseMetaData(Database.java:3101)
        ... 5 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure


The last packet successfully received from the server was 126,422 milliseconds ago.  The last packet sent successfully to the server was 28 milliseconds ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3871)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2484)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2664)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2815)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2458)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2375)
        at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2359)
        at org.pentaho.di.core.database.Database.insertRow(Database.java:1360)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:284)
        at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:128)
        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
        ... 1 more
Caused by: java.net.SocketException: Broken pipe
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3852)
        ... 12 more


INFO  13-05 13:16:05,643 - Table output - Finished processing (I=0, O=9626, R=9626, W=9626, U=0, E=1)
INFO  13-05 13:16:05,643 - Pan - Finished!
INFO  13-05 13:16:05,644 - Pan - Start=2013/05/13 13:13:55.960, Stop=2013/05/13 13:16:05.643
INFO  13-05 13:16:05,644 - Pan - Processing ended after 2 minutes and 9 seconds (129 seconds total).
log4j:WARN No appenders could be found for logger (org.pentaho.di).
log4j:WARN Please initialize the log4j system properly.

Another error line:

Code:

WARNING: Couldn't insert row into table: ROW DATA (hidden)


Error inserting/updating row
Communications link failure


The last packet successfully received from the server was 126,422 milliseconds ago.  The last packet sent successfully to the server was 28 milliseconds ago.


INFO  13-05 13:16:04,679 - Table output - WARNING: Couldn't insert row into table: ROW DATA (hidden)


offending row : Row Schema


Error setting value #1 [firstname String] on prepared statement (String)
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after statement closed.
No operations allowed after statement closed.

I think that the second error occurs because the connection was closed already.

Can someone help me with this?

Thanks!

Dynamic ETL - Database tables as source

$
0
0
Hi all.

I'm in the process of setting up a new data warehouse environment and while we have the basic architecture established, one thing we're wanting to do is to somehow dynamically move the data around without having to construct a separate transformation for every table (about 400 or so) and be able to move all the data in parallel. The problem is, we're not sure if something like that is even possible, and if it is, where to begin.

Here's the process we have:

1. Export data from table to .csv
2. Move .csv to destination
3. Load .csv into staging tables

I know we can do all the steps above by (a) creating a transformation for every table or (b) using some SQL to set variables and create everything dynamically, but we need to have the processes run in parallel and we're not sure if parallelization and dynamic ETL generation are things that can coexist.

Thoughts?

Not able to refresh the repository cache in PUC

$
0
0
Hello Everyone,
Yes by the title you can know that i am a newbie. Well coming top the point i am facing a problem refreshing my repository cache from PUC. I have verified pentaho logs and tomcat logs but didnt get any errors and warnings. I am struck here right now. I have been searching in the forums since 3 days but got nothing. Please help me with this.
Thanks,
Santosh Bhagavatula:mad:

Where to publish a star schema

$
0
0
I have created a star schema ... I am not able to see it in the User Console....where does this need to be published in order to view and use it in the User Console?

What's best way to get nightly containing http://jira.pentaho.com/browse/PDI-6169

parsing ISO date formats with variable timezones and precision

$
0
0
Hi
The ISO date format ISO 8601 can have variable length precision and different time zones - indicated with +4 and so on at the end.
It's the standard for xml
But there doesn't appear to be any direct treatment of it that I can find. I can see how to parse it if I'm in UTC (ends with a Z) and I know how much precision to expect but I'd have thought that there would be a standard format to support it from the xml in whatever variation it comes in - after all it is only a couple of lines of code to include the parser from joda time.

Have I missed something or do none of you guys every need it? Maybe it's standard it javascript or something?

Tim

Transformation Without Source File

$
0
0
I need to accept a record from Apache Camel and transform that record before returning the transformed record back to the calling Apache Camel process. I haven't been able to figure out how to define a transformation without a source file, or even if that can be done. For example, Apache Camel will iterate through records from a database or file and send each record to a Kettle process for transformation. After the record is transformed the it will be returned to the Apache Camel process. The source record and transformed record could be any combination of CSV, Excel, XML or flat file. Is there any way to do a transformation without having a source file on the file system?

Evaluating JavaScript - Files Retrieved

$
0
0
I have an Evaluate JavaScript step where I want to take the count of the Files Retrieved from the previous step and push that value into variable or stream value.

I know that within the Evaluate JavaScript step and declare a var to receive the value such as var var filecount = files_retrieved; (at least I do not get an error).

How can take the variable (filecount) and put into a form that I can use? Ultimately, I want to report on the number of files that were downloaded from a SFTP step.

Thank you for your assistance.

Ray
Viewing all 16689 articles
Browse latest View live