Pentaho

 View Only
  • 1.  Getting 142 return code in linux while executing kitchen.sh

    Posted 18 days ago

    Hello Everyone,

    I am trying to execute kettle job(.kjb) using kitchn script  in linux machine and the job is executing/ completing all steps as expected but the final return status code alone gets returned as non-zero value(142) which is making calling script fail.

    Anyone has faced this issue and any leads or feedback on this issue would be much appreciated.

    Kettle version : 8.1.0.0-365



    ------------------------------
    Pradeep Munirathinam
    Others
    SYF
    ------------------------------


  • 2.  RE: Getting 142 return code in linux while executing kitchen.sh

    Posted 13 days ago

    Hi Pradeep,

    How are you running your script in Linux ? There are some ways, like while running the kitchen script in linux, you can create a shell script in which you can put your kitchecn.sh with a job file name and create a log file to debug things.

    Example -- sh myscript.sh > folderlocation/kettle.log
    Here in sh myscript.sh, you can put your kjb path with kitchec.sh and other operations if required. 



    ------------------------------
    Nitin Pipalia
    Systems Engineer
    Cubegle Technologies
    ------------------------------



  • 3.  RE: Getting 142 return code in linux while executing kitchen.sh

    Posted 12 days ago

    Hi Nitin,

    We are calling kitchen.sh part of master linux script only and we are already redirecting those logs to file. Part of that log file we could see a message that "Kitchen - Finished!" but finally when it's trying to return code back to calling script that's when it gives non-zero return code.



    ------------------------------
    Pradeep Munirathinam
    Others
    SYF
    ------------------------------



  • 4.  RE: Getting 142 return code in linux while executing kitchen.sh

    Posted 4 days ago

    Hi Pradeep,

    do you call shell script into called job? Kitchen/Pan returns exit code which is set in job result.



    ------------------------------
    Petr Prochazka
    Systems Engineer
    P.V.A. systems s.r.o.
    ------------------------------