Go Back   CORTEX Forums > Best Practices > Subject Matter Expertise > Data Integration Forum > Data Integration News Feeds
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Kettle data in a browser

This is a discussion on Kettle data in a browser within the Data Integration News Feeds forums, part of the Data Integration Forum category; Dear Kettle fans, As you can tell from the Kettle JDBC driver project and also from the Talend job execution job entry (if you’re still wondering, that was NOT a ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 27th April 2011, 08:44 AM   #1
News Bot
 
Join Date: Nov 2007
Posts: 15,067
Latest News Headlines is on a distinguished road
Post Kettle data in a browser

Dear Kettle fans,

As you can tell from the Kettle JDBC driver project and also from the Talend job execution job entry (if you’re still wondering, that was NOT a joke) we announced a few weeks ago, we’re constantly looking for new and better ways to integrate Kettle into the wide world.

Today I’m blogging to spread the word about a new exciting possibility: expose Kettle data over a web service.

Here’s the situation: you have a 3rd party vendor that wants to read data from you.* However, you don’t want to spend a lot of time coding web services and what not to deliver the data in a language neutral format.* Anybody can read data from a simple web service.* You can use any programming language and it’s easy to test in a browser.

The way that it works arguably couldn’t be easier…* Let’s take a look.

We start with a simple transformation that reads some customer data.* We take the “Read customer data” example from the samples:
samples/transformations/CSV Input - Reading customer data.ktr

Next, we’re going to replace the dummy step with a “Text File Output” step (or “XML Output” if you prefer that):



Save the transformation in the same samples folder under the “Servlet Data Example.ktr” filename.* In my case the full filename is: (from the transformation settings dialog)
/home/matt/svn/kettle/trunk/samples/transformations/Servlet Data Example.ktr

Now you can use an instance of Carte that runs on your local host on port 8282 (execute carte.sh 127.0.0.1 8282) to get the data in your browser.* The URL is easy to construct.

For file (XML) based transformations:
http://username:password@hostname:port/kettle/executeTrans/?trans=PathToFile

For transformations stored in a repository:
http://username:password@hostname:port/kettle/executeTrans/?rep=RepositoryName&user=RepositoryUser&pass=RepositoryPassword&trans=PathToTransformationInRepository

Please note that you need to replace forward slashes with %2F in your browser.* That leads to this URL in our example:

http://cluster:cluster@127.0.0.1:828...ions%2FServlet Data Example.ktr

The result is can be tested with your browser:



For the script kiddies among you it is possible to get a hold of the servlet print writer in JavaScript too:
var out = _step_.getTrans().getServletPrintWriter();
out.println(”Hello, world!\n

”);

Well, there you have it. I hope you like this idea.* You can try it out yourself if you download a new build of Pentaho Data Integration from our Jenkins CI build server.

Now excuse me while I put the same button in the “JSON Output” step…

Until next time,

Matt



More from Matt Casters on Data Integration (Pentaho) Blog...
Latest News Headlines is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data-Driven Documents for visualization in the browser admin Analytic News Feeds 0 10th March 2011 05:12 PM
Kettle vs Oracle REF CURSOR Latest News Headlines Data Integration News Feeds 0 17th November 2010 10:20 AM
Kettle log text capturing Latest News Headlines Data Integration News Feeds 0 3rd March 2010 04:42 AM
Easter Eggs for MySQL and Kettle Latest News Headlines DWH Tip Feeds 0 28th January 2010 05:25 AM
Kettle 4 Logging architecture Latest News Headlines Data Integration News Feeds 0 25th November 2009 10:39 AM


All times are GMT +11. The time now is 05:56 PM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO