Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: change default repositories XML file location

  1. #1
    Join Date
    Aug 2008

    Default change default repositories XML file location

    How do we change default repositories XML file location from C:\Documents and Settings\user\.kettle\repositories to a user defined location to create the RepositoriesMeta object.

    So that we do not have to install Kettle in J2EE app server.

    I believe RepositoriesMeta object is the one who is going to access this location with the LogWriter parameter. There is no other constructor for this object.

    Thx - sriniPT123

  2. #2
    Join Date
    Nov 1999


    You can set the KETTLE_HOME variable to make it point to $KETTLE_HOME/.kettle/repositories.xml
    A lesser known fact is that you can also put repositories.xml in the current (./) directory. Sadly, I don't know where that is for your J2EE app.

  3. #3
    Join Date
    Aug 2008


    RepositoriesMeta repsinfo = new RepositoriesMeta(logWriter);
    repinfo = repsinfo.findRepository("test_repository");
    Repository rep = new Repository(logWriter, repinfo, userinfo);
    RepositoryDirectory directory = rep.getDirectoryTree();
    directory = rep.getDirectoryTree().findDirectory("C:/test_app/config/");
    Now I am getting null directory object even though I have xml file...I stripped the code from Pan java source.
    Where can I set this user defined directory in the above code.??? not setting KETTLE_HOME environment variable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.