Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: Relative Paths for Transformations in a Job

  1. #1
    Join Date
    Sep 2007
    Posts
    13

    Default Relative Paths for Transformations in a Job

    I want to run my transformations within my job using xml files. When I do so using an absolute path for the file, it works just fine. I want to be able to offer a relative path for the file though, because it is most likely not the case that these jobs will be run my machine.

    I tried doing "${Internal.Job.Filename.Directory}/generic.ktr" for the Transformation filename, as the "generic.ktr" was in the same folder as the Job running the transformation.

    When I run it, however, it gives me this error "Could not read from "file:///generic.ktr" because it is a not a file." Is the variable ${Internal.Job.Filename.Directory} not properly resolving, or am I wrong in thinking it should point to the directory in which the job exists?

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    If you're using v2.5 and multiple layers of jobs (job calling job calling transformation e.g.) it's a known problem.
    Fixed in v3.0

    By the way "${Internal.Job.Filename.Directory}" normally gets resolved to an absolute path, not a relative one. But I know what you mean

    Regards,
    Sven

  3. #3
    Join Date
    Sep 2007
    Posts
    13

    Default

    No nested jobs, just a single job calling a pair of transformations, one after another.

  4. #4
    Join Date
    May 2006
    Posts
    4,882

    Default

    mmmm... save the job, exit spoon, reload and retry... what does that give?

    Regards,
    Sven

  5. #5
    Join Date
    Sep 2007
    Posts
    13

    Default

    I'm actually running the job as a file using kitchen instead rather than from spoon. Could this be causing the same issue as nesting jobs with transformations?

  6. #6
    Join Date
    May 2006
    Posts
    4,882

    Default

    Was also a known problem #5704... Solved in 3.0, I'll see how big it is to backport it to 2.5.2

    Regards,
    Sven

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.