US and Worldwide: +1 (866) 660-7555
Results 1 to 5 of 5

Thread: Somehow i feel bad with spoon! So suit up.

  1. #1
    Join Date
    Aug 2008
    Posts
    7

    Default Somehow i feel bad with spoon! So suit up.

    Hey kettles,

    I have lead a migration project of a CMS application about 2 months ago and kettle helped us a lot. However that command line arguments and the way of configuring kettle via command line (refering to spoon) was not fulfilling our demands.

    Instead of that, i have developed some wrapper main application that can be configured via xml file and handles multiple .ktr files, there are more things need to be work on but for me it is much better way and more flexible.

    I will blog it soon but lets say it is at alpha release and currently configuration xml looks like,

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>

    <sourcedbhostname>host db ip</sourcedbhostname>
    <sourcedbport>port number</sourcedbport>
    <sourcedbname>db name</sourcedbname>
    <sourcedbusername>user</sourcedbusername>
    <sourcedbpassword>password</sourcedbpassword>


    <destinationdbhostname></destinationdbhostname>
    <destinationdbport></destinationdbport>
    <destinationdbname></destinationdbname>
    <destinationdbusername></destinationdbusername>
    <destinationdbpassword></destinationdbpassword>

    <exportpath>/home/ferhat/fatwire/export/xml</exportpath>
    <importpath></importpath>
    <commitsize>100</commitsize>

    <transformations>
    <transformation>foo.ktr</transformation>
    <transformation>foo1.ktr</transformation>
    <transformation>foo2.ktr</transformation>
    </transformations>
    </configuration>

    Do you feel comfortable with configuration approach of spoon?
    Do you think my application can be usefull?

    Would be glad to hear your comments,

    KR,
    Ferhat.

  2. #2
    Join Date
    Nov 1999
    Posts
    9,541

    Default

    Hi Ferhat,

    I'm not quite sure what problem this is supposed to solve.
    What exactly is your problem? These variables can already be set in kettle.properties. So perhaps it's something else?

    Feel free to share the experience. As Dr Indiana Jones once said: "Nothing shocks me, I'm a scientist" ;-)

    Matt
    Matt Casters, Chief Data Integration
    Pentaho, Open Source Business Intelligence
    http://www.pentaho.org -- mcasters@pentaho.org

    Author of the book Pentaho Kettle Solutions by Wiley. Also available as e-Book and on the Kindle reading applications (iPhone, iPad, Android, Kindle devices, ...)

    Join us on IRC server Freenode.net, channel ##pentaho

  3. #3
    Join Date
    Aug 2008
    Posts
    7

    Default

    Hey Matt,

    Sorry for miss type, was talking about pan not spoon,

    well;

    For my case, i had to deliver an application to infrastructure team based on another country for using migrate operations. The requirements were;

    Properties should be easily configurable.
    All transformations should run atleast once in an order together.
    If we look at that line;

    pan.sh -file="/PRD/Customer Dimension.ktr" -level=Minimal

    doing it with command line arguments of course was an option,
    but that required lots of shell codes, which is hard to read,
    configure and less flexible.

    What i'm trying to do is or i have done some of it, passing
    arguments to pan via a xml file, that can also run multiple ktrs
    in an order.

    Perhaps i have reinvent the wheel, i'm not sure, what you think?

    KR,
    Ferhat.

  4. #4
    Join Date
    Nov 1999
    Posts
    9,541

    Default

    Hi Ferhat,

    Up to a certain extent you do have a point.
    If all you want to do is populate a single dimension, then it becomes a little bit tedious to set all the required parameters if you don't want to use kettle.properties with standard values per system.

    However please keep in mind, that this is a highly un-usual situation.
    Usually people populate a complete warehouse in one go.

    Don't forget it is possible to read whatever format of file you have (including yours) in a job and set the variables accordingly.

    All that being said, I'm not against creating an execution configuration option for transformations and jobs. The XML format is already defined, all we need is a parameter to support it for pan/kitchen.

    Why don't you file a JIRA feature request and I'll keep an eye on it for PDI4 :-)

    Take care,

    Matt
    Matt Casters, Chief Data Integration
    Pentaho, Open Source Business Intelligence
    http://www.pentaho.org -- mcasters@pentaho.org

    Author of the book Pentaho Kettle Solutions by Wiley. Also available as e-Book and on the Kindle reading applications (iPhone, iPad, Android, Kindle devices, ...)

    Join us on IRC server Freenode.net, channel ##pentaho

  5. #5
    Join Date
    Aug 2008
    Posts
    7

    Default

    Hi Matt,

    PDI-2846
    is up and waiting for your attention,

    KR,
    Ferhat.
    Last edited by ferhatsb; 11-12-2009 at 07:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •