Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Problem Run a job from Repository

$
0
0
Hi,

i am using data integration 4.2.0.

I have a problem with running a job from Repository.
I have a script php that lunches the job using this command:
PHP Code:

$WshShell = new COM("WScript.Shell");
$oExec =  $WshShell->Run('C:\pdi42\data-integration\Kitchen.bat /rep:"RepoPAS400" /job:"Main_Job"  /dir:"C:\pdi42\ETL\AS400\"  /user:---- /pass:----  /level:Detailed >> D:\loglEtl\log.txt'0false); 

i also tried:
PHP Code:

$oExec =  
$WshShell->Run('C:\pdi42\data-integration\Kitchen.bat /rep:"RepoPAS400" /user:"admin" /dir:"/Jobs" /job:"Main_Job"  /level:Detailed >> D:\loglEtl\log.txt'0false); 

and other variations

The thing is this the last command works when lunched from a cmd. But lunching it from php always gives a repository not found error.
When I lunch the php script, in the log file there is this message:

Code:

WARNING: Using java from path
DEBUG: _PENTAHO_JAVA_HOME=
DEBUG: _PENTAHO_JAVA=java.exe
INFO  28-11 12:45:07,540 - Kitchen - Il log è al livello: Log dettagliato
INFO  28-11 12:45:07,540 - Kitchen - Sono stati forniti repository e username
INFO  28-11 12:45:07,540 - Kitchen - Avvio dell'esecuzione.
ERRORE: nessun repository specificato, impossibile caricare il job.
ERRORE: Kitchen non può continuare poiché il job non può essere caricato.

(translated it says that the repository is not specified)


Some more info but i think this doesn't change anything
The file "Main_Job.kjb" is in the folder: C:\pdi42\ETL\AS400\Jobs and the repository is set to C:\pdi42\ETL\AS400I found the file "repository.xml" in my user folder so i copied it in the pdi folder but nothing changed. I opened the file inside i see there is the repository definition.


Help me!!!!

Thanks all

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>