Skip to content

Instantly share code, notes, and snippets.

@rmorenobello
Last active June 28, 2022 16:26
Show Gist options
  • Save rmorenobello/62a181925f5d80c8d6d789be7704b804 to your computer and use it in GitHub Desktop.
Save rmorenobello/62a181925f5d80c8d6d789be7704b804 to your computer and use it in GitHub Desktop.
KETTLE Pentaho Data Integration
Download:
https://sourceforge.net/projects/pentaho/
--------------------------------------------------------------------
NOTA: no funciona; sencillamente copiar el .jar en /lib y adelante.
--------------------------------------------------------------------
Como importar un jar externo para usarlo en Pentaho Data Integration (KETTLE):
https://anotherreeshu.wordpress.com/2015/02/07/using-external-jars-import-in-pentaho-data-integration/
https://www.arulraj.net/2014/09/how-to-access-external-java-libraries-with-in-pentaho.html
- Create libext folder with in data-integration.
- Backup your launcher.properties file with in data-integration/launcher folder.
- Then save below as launcher.properties in that folder (o better, add :../libext to libraries and classpath)
main=org.pentaho.di.ui.spoon.Spoon
libraries=../test:../lib:../libswt:../libext
classpath=../:../ui:../ui/images:../lib:../libext
system-property.pentaho.installed.licenses.file=${PENTAHO_INSTALLED_LICENSE_PATH}
- Now copy your external / third party jars into libext folder
- Now re/start spoon.bat
- Import the jar it as usual:
E.g.: import code.rishu.kettle.test.*
################################################
## Cada kettle.properties ajustat al seu entorn
################################################
# BPA_PROJECT_PATH=D\:/Proyectos/
# para desarrollo en local, montarse un espejo de la estructura en la unidad C:
BPA_PROJECT_PATH=C\:/Proyectos/
#Valors universals
V_NO_APLICA_STR=N/A
V_NO_DEFINIT_STR=N/D
V_NO_APLICA_INT=-1
V_NO_DEFINIT_INT=0
V_NO_DEFINIT_CHAR=U
V_NO_DEFINIT_3CHAR=UNK
V_FUTUR=2199-12-31
V_PASSAT=1900-01-01
# NOTA: ¿Hay otra solucion más cómoda y segura?:
# CONNEXIONS PRE
#DB_MSSQL_KETTLE_HOST=
#DB_MSSQL_KETTLE_DBNAME=
#DB_MSSQL_KETTLE_INSTANCE=
# CONNEXIONS PRO
DB_MSSQL_KETTLE_HOST=
DB_MSSQL_KETTLE_DBNAME=
DB_MSSQL_KETTLE_INSTANCE=
###############################
# Para almacenar logs en BBDD #
###############################
# días guardados en los logs
BPA_LOG_RECORD_TIMEOUT_DAYS=120
BPA_LOG_SCHEMA=dbo
#KETTLE_JOB_LOG_DB = ODS_LOG_ETL
#KETTLE_JOB_LOG_SCHEMA=
#KETTLE_JOB_LOG_TABLE = JOB_LOG
#KETTLE_CHANNEL_LOG_DB = ODS_LOG_ETL
#KETTLE_CHANNEL_LOG_SCHEMA=
#KETTLE_CHANNEL_LOG_TABLE = CHANNEL_LOG
#KETTLE_TRANS_LOG_DB = ODS_LOG_ETL
#KETTLE_TRANS_LOG_SCHEMA=
#KETTLE_TRANS_LOG_TABLE = TRANSFORMATION_LOG
##############
# LOG output #
##############
#KETTLE_REDIRECT_STDERR=Y
#KETTLE_REDIRECT_STDOUT=Y
#KETTLE_DISABLE_CONSOLE_LOGGING=N
KETTLE_MAX_LOGGING_REGISTRY_SIZE=10000
# KETTLE_LOG_MARK_MAPPINGS: Set this variable to Y to precede log lines with themapping step name and the mapping itself.
KETTLE_LOG_MARK_MAPPINGS=Y
## Parametros de la configuracion de KETTLE
## =========================================
#KETTLE_FILE_OUTPUT_MAX_STREAM_COUNT (Max num arxius oberts. Default: 1024)
#KETTLE_FILE_OUTPUT_MAX_STREAM_COUNT=1024
# KETTLE_FILE_OUTPUT_MAX_STREAM_LIFE (in seconds). Default=0 (no flush until closing file)
KETTLE_FILE_OUTPUT_MAX_STREAM_LIFE=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment