Pentaho在启动R脚本后退出

时间:2014-08-27 16:08:05

标签: r pentaho

我一直在使用Pentaho和一个基本的R脚本创建一个简单的转换。它引入一个由2列a,b和3个条目组成的CSV全部整数。数据预览与数据相同。

R脚本是该过程的核心,如下所示:

c <- a+b
OUTPUT <-list("c"=c)

流程如下:

CSV_FILE_INPUT ->- Exceute_R_Script ->- Select_Values

可以找到该教程:

http://dekarlab.de/wp/?p=5

- &GT;完全按照教程

编辑:发现SpoonDebug - 粘贴下面的会话详情:

    F:\Pentaho 5.1\data-integration>"C:\Program Files (x86)\Java\jdk1.7.0_25\bin\java" "-Xmx512m" "-XX:MaxPermSize=256m" "-Djava.library.path=libswt\win32" "-DKETTLE_HOME=" "-DKETTLE_REPOSITORY=" "-DKETTLE_USER=" "-DKETTLE_PASSWORD=" "-DKETTLE_PLUGIN_PACKAGES=" "-DKETTLE_LOG_SIZE_LIMIT=" "-DKETTLE_JNDI_ROOT=" -jar launcher\pentaho-application-launcher-5.1.0.0-752.jar -lib ..\libswt\win32  /level:Debug 
2014/08/28 10:47:26 - Spoon - Logging is at level : Debugging
2014/08/28 10:47:56 - Spoon - Transformation opened.
2014/08/28 10:47:56 - Spoon - Launching transformation [r_test]...
2014/08/28 10:47:56 - Spoon - Started the transformation execution.
2014/08/28 10:47:57 - r_test - Dispatching started for transformation [r_test]
2014/08/28 10:48:03 - CSV file input.0 - Header row skipped in file 'E:\Downloads\fake_csv.csv'
2014/08/28 10:48:03 - Execute R Script.0 - Loading JRI library from: F:\Pentaho 5.1\data-integration\libswt\win32
2014/08/28 10:48:03 - Execute R Script.0 - R is installed in R_HOME: C:\Program Files\R\R-3.1.1\bin\i386
2014/08/28 10:48:03 - CSV file input.0 - Finished processing (I=4, O=0, R=0, W=3, U=0, E=0)
2014/08/28 10:48:03 - Execute R Script.0 - JRI library is found!
2014/08/28 10:48:03 - Execute R Script.0 - rShowMessage

2 个答案:

答案 0 :(得分:0)

要跟踪错误,可以在没有GUI的情况下启动转换,但使用命令行工具pan.bat。 例如:

 pan.bat /rep:"Production Repository"
            /trans:"update Customer Dimension"
            /dir:/Dimensions/
            /user:matt
            /pass:somepassword123
            /level:Basic

答案 1 :(得分:0)

匿名用户试图留下以下内容:


此问题的解决方案是指定R_HOME环境变量,如:

R_HOME=C:\Program Files\R\R-3.1.2

R_HOME=C:\Program Files\R\R-3.1.2*bin\x64*