Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Cannot run exported job with kitchen.sh

  1. #1
    Join Date
    Dec 2009
    Posts
    4

    Default Cannot run exported job with kitchen.sh

    NOTE: Now I'm trying with Kitchen.bat and it's still failing.

    I've exported a very simple job from Spoon on my PC using File > Export > Linked Resources to XML. Then I ran it from command line and it fails to load the transformation. The job consists of only one transformation which generates one random number and saves it to a file, it runs fine in Spoon. I'm using Spoon/kettle 4.1 Stable, jdk 1.6_24 on Windows XP.

    Here is the session:

    ----------- snip -----------
    C:\Pentaho\PentahoDataInegration-4.1\data-integration>Kitchen.bat /file:"zip:fil
    e:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!simple_job.kjb"
    WARNING: Using java from path
    DEBUG: _PENTAHO_JAVA_HOME=
    DEBUG: _PENTAHO_JAVA=java.exe
    INFO 24-02 14:42:30,614 - Using "C:\DOCUME~1\cfox\Local Settings\Temp\vfs_cache
    " as temporary files store.
    INFO 24-02 14:42:31,020 - Kitchen - Kitchen
    INFO 24-02 14:42:31,114 - Simple Job - Start of job execution
    INFO 24-02 14:42:31,114 - Simple Job - Starting entry [Transformation]
    INFO 24-02 14:42:31,130 - Transformation - Loading transformation from XML file
    [zip:file:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!//simple_transformat
    ion.ktr]
    ERROR 24-02 14:42:31,145 - Simple Job - org.pentaho.di.core.exception.KettleExce
    ption:
    Unexpected error during transformation metadata load

    Unable to read file [zip:file:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!/
    simple_transformation.ktr]
    Could not read from "zip:file:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!/
    simple_transformation.ktr" because it is a not a file.

    org.pentaho.di.job.entries.trans.JobEntryTrans.getTransMeta(JobEntryTrans.java:1
    137)
    org.pentaho.di.job.entries.trans.JobEntryTrans.execute(JobEntryTrans.java:594)
    org.pentaho.di.job.Job.execute(Job.java:471)
    org.pentaho.di.job.Job.execute(Job.java:600)
    org.pentaho.di.job.Job.execute(Job.java:344)
    org.pentaho.di.job.Job.run(Job.java:282)

    ERROR 24-02 14:42:31,177 - Simple Job - A serious error occurred during job exec
    ution:
    Unexpected error occurred while launching entry [Transformation.0]

    Unexpected error during transformation metadata load

    Unable to read file [zip:file:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!/
    simple_transformation.ktr]
    Could not read from "zip:file:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!/
    simple_transformation.ktr" because it is a not a file.



    ERROR 24-02 14:42:31,208 - Simple Job - org.pentaho.di.core.exception.KettleExce
    ption:
    Unexpected error occurred while launching entry [Transformation.0]

    Unexpected error during transformation metadata load

    Unable to read file [zip:file:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!/
    simple_transformation.ktr]
    Could not read from "zip:file:///C:/Pentaho/VOTemplates/vo_data/simple_job.zip!/
    simple_transformation.ktr" because it is a not a file.


    org.pentaho.di.job.Job.execute(Job.java:605)
    org.pentaho.di.job.Job.execute(Job.java:344)
    org.pentaho.di.job.Job.run(Job.java:282)

    INFO 24-02 14:42:31,239 - Kitchen - Kitchen
    ERROR 24-02 14:42:31,239 - Kitchen - Kitchen
    INFO 24-02 14:42:31,239 - Kitchen - Kitchen
    INFO 24-02 14:42:31,239 - Kitchen - Kitchen
    ----------- snip -----------

    Any suggestions what I'm doing wrong?


    Update: I found that by extracting the zip and running the job I got meaningful errors, fixed them and it works fine now. Apparently the "unable to read file" error only means it couldn't run the transformation for *any* reason.
    Attached Files Attached Files
    Last edited by cfox; 02-25-2011 at 11:06 AM. Reason: Solved

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.