Executando Kettle

De ISG Wiki
Revisão de 18h10min de 16 de junho de 2016 por Hersonpcm (Discussão | contribs) (Criou página com 'Implantar o script abaixo, como '''C:\windows\system32\RunETL.bat''' <syntaxhighlight lang="powershell"> @echo off title Running Pentaho ETL... REM cd C:\pentaho\6.0\data-inte...')

(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para: navegação, pesquisa

Implantar o script abaixo, como C:\windows\system32\RunETL.bat

@echo off
title Running Pentaho ETL...
REM cd C:\pentaho\6.0\data-integration\

if %1 == "job" goto runJob
if %1 == "JOB" goto runJob
if %1 == "Job" goto runJob
goto runKettle

:runKettle
rem Pan - Rodar Kettles
echo Executando Kettle: %2
"C:\pentaho\6.0\data-integration\Pan.bat" /file:%2
goto end

:runJob
rem Kitchen - Rodar Jobs
echo Executando Job: %2
"C:\pentaho\6.0\data-integration\Kitchen.bat" /file:%2 /level:Basic
goto end

:end
echo Fim.
  • Para executar um script:
  • Kettle
RunETL.bat kettle "C:\minha_pasta\arquivo-kettle.ktr"
  • Job
RunETL.bat job "C:\minha_pasta\arquivo-job.kjb"