问题
This question is almost similar to pentaho: error (stderr) =256m""=="" was unexpected at this time. while calling kitchen command (dos command using shell script job entry) from job
But It differs in clarity as I am providing exact details and also that question is 3 years old which also brings in version issues. Also, that question isn't answered yet and there are no other solutions available on internet except few pages which only have unanswered question. Hence posting this again with more detail.
I am using pentaho 7.0.0 and in my kjb file, there is a shell script executor which calls another ktr (I know running a ktr can be accomplished by using Transformation executor but my requirements are a bit different, please co-operate). Here is my command in the batch file I am calling:
C:\pentahodi\6.1.0\data-integration\Pan.bat /file:"H:/newKtr.ktr" "/param:filePath=%filePath%" /level:Basic > H:/pentahoLog.log
But, when I run this batch file from cmd, its runs smoothly and ktr is invoked and filePath parametere is passed to it.But when I use %filePath% (used to pass from parameter of kjb itself), I get this error:
ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : (stderr) =256m""=="" was unexpected at this time.
In one of the online resources, I got to know that this problem occurs in 64 bit Windows systems. Is this the case? I am running a 64 bit windows 7.
This has really blocked me on all my efforts. I am new to pentaho and have no idea how this can be resolved. Any hint would really be appreciated.
Please help. Thanks.
回答1:
As a solution open the spoon.bat file and remove the "-XX:MaxPermSize=256m" from PENTAHO_DI_JAVA_OPTIONS.
Then call bat file from shell executor or process a file step
来源:https://stackoverflow.com/questions/49903156/stderr-256m-was-unexpected-at-this-time-in-pentaho-shell-script