Pentaho Here, I am trying to write down my finding in Pentaho (Spoon). So that, I can quickly look back if I need to. This is more like a personal note and as of now, I am not sure if this could be of any help to others. 07 Feb 2014 ERROR HANDLING How to enable it? You can right click on the steps and you can see an option called Error Handling. Note: Not all the steps have this option. Error handling is disabled for Table input step, stream look-up step etc.. How to define the field names? You can give the names you are interested in for the predefined fields of error handling. So, these fields will be added to the fields flowing in your current stream Currently, for the Pentaho 5.0, we are having a bug for ERROR_COUNT field, which is getting type as Long instead of Integer for some of the rows. So, as a temporary fix, we have used javascript to handle this public boolean processRow(StepMetaInterface smi, StepDataIn...
Rather than hardcoding paths in your Python script we should make use of the path operation from module OS os.path.expanduser( path ) expands the path to the user’s home directory os.path.join( path1 ,*path2*,…) joins path elements with the appropriate separator os.sep gives the OS dependent path separator ( / for Linux/Unix, \ for Windows) os.getcwd() gives the current working directory os.path.abspath(path) gives the OS dependent absolute path of a given path Example: >>>import os >>>path = os.path.join(os.path.expanduser('~'), 'documents', 'python', 'file.txt') >>>print (path) Result /home/user/documents/python/file.txt ## when on Ubuntu C:\Users\user\documents\python\file.txt ## when running on Windows Source link: https://askubuntu.com/users/3940/takkat
Comments
Post a Comment