How to deal with Kettle bugs?
21.4.2012 von Jens Bleuel.
I’m always amazed about our great community: finding bugs and even fixing them!
That’s the way it goes:
Thanks to Paul for making my day by this post.
When you want to learn more about bug reports, have a look at: Bug Reports and Feature Requests FAQ
Geschrieben in Kettle (PDI) | Keine Kommentare »
Data Profiling and Data Quality (Human Inference) Integration with Kettle
17.4.2012 von Jens Bleuel.
Data Profiling with DataCleaner (Human Inference) and Kettle
It was already possible to profile your data in an easy way with Kettle: Open the Database Explorer, chose a table and right click in the context menu on Data Profile. The result was basic information about the data like Min, Max, Count all for strings and additional information for numeric data but these were only basic metrics about your data. We have a much more better solution now:
Human Inference (DataCleaner) and Pentaho (Kettle) worked together to integrate their tools and the result is a nice and seamless integration of DataCleaner into Kettle. A sample for introduction and FAQ can be found at Kettle Data Profiling with DataCleaner
You can right click on any step within your transformation and profile your data. It is also possible to clean or harmonize your data and check the result directly within your transformation.
Here are some screen shots:
- Number Analyzer
- String Analyzer
- Pattern Analyzer (e.g. you see how many single words with first capital letters etc. exist in your data):
And there are much more Analyzers you can choose from: Matching & Deduplication, Boolean, Character Set Distribution, Data Gap, Date/Time, Reference Data Matcher, Value & Weekday DistributionAnalyzers
For a complete reference look at http://datacleaner.eobjects.org and for a quick introduction and sample check out: http://wiki.pentaho.com/display/EAI/Kettle+Data+Profiling+with+DataCleaner
Data Quality with EasyDQ (Human Inference) and Kettle
Additional to the Data Profiling capabilities, a couple of steps for Data Quality have been introduced into Kettle as plug-ins. This covers
- Name Validation, Standardization and Cleansing
- Address Validation, Standardization and Cleansing
- E-Mail and Telephone Validation, Standardization and Cleansing
- Duplicate Detection and Merge Duplicates
Here is a validation example:
More details, download instructions, a sample video and examples can be found over here:
- Data Profiling and Data Quality for Kettle are available immediately and can be downloaded as a plug-in for the existing Pentaho Data Integration / Kettle releases 4.2.x and later.
- http://www.easydq.com/pentaho
- http://datacleaner.eobjects.org/newsitem/data-profiling-and-data-quality-for-pentaho
- http://wiki.pentaho.com/display/EAI/Human+Inference
- Register for the Webinar: Better Data for Better Analytics, led by Human Inference and Pentaho on Thursday, May 10th 2012 Pentaho.com/human-inference-webinar
Geschrieben in Kettle (PDI) | Keine Kommentare »
Pentaho Kettle for Big Data
30.1.2012 von Jens Bleuel.
All of Pentaho’s big data capabilities will be available as open source in the new Pentaho Kettle 4.3 release: Big data capabilities include the ability to input, output, manipulate and report on data using the following Hadoop and NoSQL stores: Cassandra, Hadoop HDFS, Hadoop MapReduce, Hadapt, HBase, Hive, HPCC Systems and MongoDB.
With regard to Hadoop, Pentaho Kettle makes available job orchestration steps for Hadoop, Amazon Elastic MapReduce, Pentaho MapReduce, HDFS File Operations, and Pig scripts. All major Hadoop distributions are supported including: Amazon Elastic MapReduce, Apache Hadoop, Cloudera’s Distribution including Apache Hadoop (CDH), Cloudera Enterprise, EMC Greenplum HD, HortonWorks Data Platform powered by Apache Hadoop, and MapR’s M3 Free and M5 Edition. Pentaho Kettle can execute ETL transforms outside the Hadoop cluster or within the nodes of the cluster, taking advantage of Hadoop’s distributed processing and reliability.
Download, how-to docs, videos and more at http://community.pentaho.com/BigData, see also Matt’s blog at http://www.ibridge.be/?p=207
Geschrieben in Kettle (PDI) | Keine Kommentare »
Things to avoid with PDI (Part 1 to 5)
13.1.2012 von Jens Bleuel.
Just watch…
Geschrieben in Kettle (PDI) | 2 Kommentare »
ExeBatLauncher: Calling .bat Files by .exe Executables (e.g. Having a Spoon.exe)
14.12.2011 von Jens Bleuel.
The ExeBatLauncher is a simple way of calling .bat files as .exe files in creating an .exe command that calls the same .bat command.
For example you want to call the Spoon.bat file by Spoon.exe, simply rename the ExeBatLauncher.exe (that is found in the distrib folder) to Spoon.exe and copy it to the same directory and you are done.
If you want it now, just download it and use it, it’s free
If you want to have a polished Spoon.exe with the right icon to test with, just download it from the PDI-6949 attachment.
The reason why I created this was a Pentaho Data Integration JIRA case: PDI-6949 - “While in PDI-2925 the feature of kettle.exe was removed, you cannot add a .bat file to the quick launch of Windows 7. The workaround is to add a cmd.exe to the quick launch and add /c <path to .bat> to modify it. This is due to microsoft security in Win 7.”
I also thought a lot of launching Kettle just by clicking on a .ktr or .kjb file and accomplished this by a wrapper .bat (calling the target bat with the /file: option). There are also nasty ways of launching .bat files by creating self extracting exe archives (nice trick), but this is just too dirty to be professional. But I tried also this and it worked even with the Spoon icon, but some limitations like having to extract the.bat file from the self extracting archive into the distribution folder are not a good solution. Further investigation into existing solutions of calling Java from .exe brought some nice projects but that is not the solution we want at this time.
I wanted to have a pretty simple .exe that just calls the .bat with the same name and here is the code for this:
As you see it supports:
- calling the .exe/.bat from every folder
- passing all arguments from the caller
- returning the return code to the caller
If you want to compile it, follow the instructions in the _README.txt file in the attachment: ExeBatLauncher.zip
I look forward to your experiences!
Geschrieben in General | Keine Kommentare »
First German Pentaho Customer Meeting in Munich
7.12.2011 von Jens Bleuel.
Today was our first German Customer Meeting that Bruno initiated and it took place at one of our customer locations @Wirecard AG (many thanks!).
A nice (and squeezed…) agenda and around 20 attendees discussed the presented customer solutions, their experiences and what Pentaho can do better, but also: what really works well and this is a lot and proven in medium and large deployments. Here are some examples in addition to “normal” BI:
- Processing 500 thousand transactions per day (credit card and alternative payment methods)
- Merchant deposit monitoring including fraud detection of merchants (!)
- Application and data row level role based security in a multi-tenant solution using special role management via a Mondrian plug-in
- Highly performant solutions with load balancing servers and high availability (99.95%), one of them with a failover with two complete separate locations
- Pentaho integrates very well in existing IT infrastructures
- Event triggered ETL by an ESB (Enterprise Service Bus) / SOA architecture: JBoss ESB triggers PDI Jobs for application integration (JMS, File, HTTP, SMTP, FTP etc.). At this time via the Kettle API but it is planned to use Kettle Web-Services
- PDI is used as a data source for reporting, just a nice EAI use case
- Pentaho is integrated into JBoss EAP (the customer version of JBoss AS, everything in this platform is secured by default)
- 3 of the attendees are using Infobright
- Report bursting was accomplished by 3 different methods: 1) using xActions, 2) using ant scripts, 3) using Kettle
Major discussed improvements:
- More integrated and consistent security throughout all products (it’s possible but special requirements are tricky to implement)
- Report bursting with scheduling should be more standardized and user friendly
- Since Pentaho can be extended and embedded very well via extension APIs, the upgrade to next versions should be more seamless by special dedicated documentation for OEM and stable API extension points [this will be addressed in the road map by the SDK]
- Upgrade process: upgrade tools would be a huge benefit for supporting it, also when some releases were not installed (e.g. jump from 3.x to 4.1 instead of 4.0)
As part of the Pentaho Product Management team, I presented the product road map and gave some quick insights in the Kettle Star Modeler.
I look forward to the next event of this type for knowledge sharing between Pentaho customers and users. We found already one volunteer (Guy) to take it from here ![]()
BTW: This event was only in German language (at this time!) and thanks again to Wirecard, Rob & Bruno for organizing this and to the attendees for their presentations and active participation!
Here are some impressions….
Geschrieben in General | Keine Kommentare »
The new XML Input Stream (StAX) step in PDI 4.2
24.6.2011 von Jens Bleuel.
This step provides the ability to read data from any type of XML file using the StAX parser. The existing Get Data from XML step is easier to use but uses DOM parsers that need in memory processing and even the purging of parts of the file is not sufficient when these parts are very big.
The XML Input Stream (StAX) step uses a completely different approach to solve use cases with very big and complex data stuctures and the need for very fast data loads: Since Kettle has so many own steps to process data in different ways, the processing logic has been moved more into the transformation and the step itself provides the raw XML data stream together with additional and helpful processing information.
Since the processing logic of some XML files can sometimes be very tricky, a good knowledge of the existing Kettle steps is recommended to use this step. Please see the different samples at the Kettle Wiki for illustrations of the usage.
Note: In almost all use cases, a Set/Reset functionality was needed. At this time it can be accomplished by the Modified Java Script Value step or the User Defined Java Class step where the latter one is recommended and much more faster. An own Kettle step with Set/Reset functionality is one the road map to solve these and other similar use cases, see PDI-6389 for more details.
Choose this step, whenever you have limitations with other steps or when you are in need of parsing XML with the following conditions:
- Very fast and independend of the memory regardless of the file size (GBs and more are possible due to the streaming approach)
- Very flexible reading different parts of the XML file in different ways (and avoid parsing the file many times)
Here is an example of parsing the following XML file with 2 main sample data blocks (Analyzer Lists & Products):
A preview on the step may look like this (depending on the selected fields):
You see you really get almost the original streaming information with Elements and Attributes from the XML file together with helpful other fields like the element level.
Since the processing logic of some XML files can sometimes be very tricky, a good knowledge of the existing Kettle steps is recommended to use this step. Please see the different samples of this step for illustrations of the usage.
The transformation looks like this:
The end result for the Analyzer List block:
The end result for the Products block (splitted for example into two separate data streams for the end system):
And there are a lot more options in the step to help to solve your needs:
More details about this step can be found in the XML Input Stream (StAX) documentation.
And for more details on the features for the upcoming PDI 4.2, please have a look at Matt’s blog.
Geschrieben in Kettle (PDI) | Keine Kommentare »
Pentaho BI 4 Delivers Power to the User
22.6.2011 von Jens Bleuel.
New interactive reporting and enhanced visualizations enable fast and affordable user-driven BI
More details can be found over here: http://www.pentaho.com/power-to-the-user
Watch the video !
Geschrieben in General | Keine Kommentare »
Security Considerations and Encryption with Kettle
7.6.2011 von Jens Bleuel.
Kettle is used more and more in enterprises where the standard obfuscation of credentials is not sufficient enough. There are requirements to use strong encryption methods and even to store internal data encrypted (covered in PDI-6168 and PDI-6170). The above use cases inspired me to create some simple transformations to test and play around with encryption.
The transformations and some test data are attached to the Kettle Exchange page Security Considerations and Encryption with Kettle.
Let’s start with creating a key by the cryptographyCreateSecretKey transformation:
The generateKey step uses the User Defined Java Class step and implements sample code for AES, the Advanced Encryption Standard is a symmetric-key encryption standard, see also http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html. The key serialization to file is a little trick to obfuscate the key. Other methods can be included instead of the clear text file output.
Now that we have the key file, we can encrypt our secret data:
With the transformation cryptographyEncrypt:
We keep it simple and assume the key is available in each row (accomplished by the Join Key).
The encrypted result looks like this:
Let’s decrypt it with the transformation cryptographyDecrypt:
The result is correct but only when the key file is the same and the encrypted data was not modified. You can test it yourself and see what error messages come up or the resulting files look like when the key file or data was modified.
Instead of storing the decrypted data to a file there are a lof of other options, e.g.:
- use the decrypted data as credentials in subsequent steps or transformations
- put the decrypted data into variables visible in a limited scope (e.g. parent job) and use them as credentials for databases, repository etc. (see PDI-6168)
- and many more options
We may consider:
- Symmetric-key algorithm vs. asymmetric key algorithms (public-key cryptography)
- Diffie-Hellman key exchange is a specific method of exchanging keys.
- Ensure integrity e.g. by hash-codes
- Key file handling could be optimized in different ways.
- Please keep in mind that unencrypted data is in RAM (see PDI-6170 for a circumvention to prevent heap dumps)
- Beneath the binary or indexed storage type, an encrypted storage type may be possible in Kettle core.
In the end: Don’t lose your key!
Update since Kettle 4.2: There are two steps in the experimental section: Secret key generator, Symmetric Cryptography that cover this use case.
Geschrieben in Kettle (PDI) | Keine Kommentare »
iPhone Tracking: How to read the consolidated.db with Kettle
26.4.2011 von Jens Bleuel.
I will not discuss about the buzz about the iPhone tracking - all that needs to be discussed is already out. That iPhone is storing locations in the consolidated.db was known a long time ago, but now we got a prove of concept by Pete Warden and Alasdair Allan and this inspired me to dig into this a bit more.
After an amazing short time of less than one hour I made it possible to read in my own iPhone consolidated.db with Kettle. [It takes more time to write about this… and the other real hard thing was to locate this file in my file system.] When we can read this file with Kettle we are open and can look up any additional data, filter by any criteria, store this in another database, use the Pentaho BI Suite to create maps and anything else that can a human being imagine. Just have a look at the Pentaho Sandbox or more general to the Pentaho site.
Here are my findings and steps to reproduce:
1) Locate the consolidated.db in your filesystem.
This is a little bit tricky, since the filename is mapped to an ID. I found it very easy by just searching for the string “CellLocation” in the iTunes backup folder, described over here for Windows:
findstr /M CellLocation C:\Users\[Username]\AppData\Roaming\Apple Computer\MobileSync\Backup\[latest backup folder]\*.*
I copied the file 4096c9ec676f2847dc283405900e284a7c815836 (this was my sample filename, yours will be most likely different) to consolidated.db to another folder.
A more robust and flexible solution is to read in and analyze the Manifest.mbdb / Manifest.mbdx as described over here in a Python script. It shouldn’t be too hard to port this to Java or JavaScript for a flexible Kettle solution.
2) Read in the consolidated.db with Kettle
Create a transformation with a SQLite connection type. The database name is the location of the filename as shown below as a sample:
Let’s create a simple transformation (attached): Read in the Cell data, convert the Mac Absolute Time to a Java time and just group on a daily basis for simplification:
Let’s do a preview and browse the data a bit. Well I’m located in Mainz, known to be exactly at Latitude 50. So every other data is of interest and here comes a sample:
Where I have been there? My forensic research on my own calendar found that I have been at the Pentaho EMEA Partner Summit & Community Event in Lisbon…. or was it only my iPhone?
Geschrieben in Kettle (PDI) | Keine Kommentare »













