Pentaho:在cmd行中运行pan.bat文件时出错 [英] Pentaho : Error while running pan.bat file in cmd line

查看:217
本文介绍了Pentaho:在cmd行中运行pan.bat文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



AM试图在cmd行中运行我的 .ktr 文件,我有我的此路径中的数据集成设置:



 C:\ Users \dhamodharan.a\Desktop\pdi-ce -4.4.0-stable\data-integration 





和此路径中的.ktr文件:

 C:\ Users \dhamodharan.a \Desktop\test.krt 





虽然我尝试在cmd行运行,但我得到的错误就像



 C:\ Users \dhamodharan.a \ Desktop \pdi-ce-4.4.0-stable \data-integration> pan.bat / fil 
e:C:\ Users \dhamodharan.a\Desktop\test.ktr / level:Basic
警告:使用路径中的java
DEBUG:_PENTAHO_JAVA_HOME =
DEBUG:_PENTAHO_JAVA = java.exe
'java.exe'无法识别为内部或外部命令,可操作程序或批处理文件。



请帮我解决这个问题。



(注意:这个 .ktr 文件在勺子里运行良好)



提前谢谢

Dhamodharan

解决方案



要确保Business Analytics始终使用正确的Sun Java Runtime Environment,尤其是在包含多个JRE的软件环境中,您必须创建一个 PENTAHO_JAVA_HOME 您的pentaho用户帐户的系统变量,并将其指向受支持的JRE或JDK。如果您未设置此变量,Business Analytics将尝试使用 JAVA_HOME 变量指向的JRE。我们不建议您的BA服务器安装依赖于 JAVA_HOME 变量,因为这是整个系统的全局默认JRE,并且更改它可能会对其他基于Java的JRE产生负面影响系统中的应用程序。因此,Pentaho建议您按照以下步骤设置 PENTAHO_JAVA_HOME

  1. 在Windows中,右键单击计算机,然后从上下文菜单中选择Properties,然后单击Advanced System Settings。系统属性窗口将出现。
  2. 在系统属性窗口中,单击高级选项卡,然后单击环境变量。
  3. 在系统变量部分中,单击新建。
  4. 弹出对话框将询问变量名称和值。在名称字段中键入 PENTAHO_JAVA_HOME
  5. 在值字段中,输入JRE的目录。 JRE目录的一个示例是 C:\Program Files \ Java \ _jre6 。单击确定。
  6. 在父窗口中,单击应用更改。
  7. 必须重新启动计算机才能使更改生效。
  8. 验证变量是否为设置正确:

     echo%PENTAHO_JAVA_HOME%




Hi Everyone,

AM trying to run my .ktr file in cmd line ,i have my data-integration setup in this path :

C:\Users\dhamodharan.a\Desktop\pdi-ce-4.4.0-stable\data-integration



and my .ktr file in this path :

C:\Users\dhamodharan.a\Desktop\test.krt



while am try to run that in cmd line am getting the error like

C:\Users\dhamodharan.a\Desktop\pdi-ce-4.4.0-stable\data-integration>pan.bat /fil
   e:C:\Users\dhamodharan.a\Desktop\test.ktr /level:Basic
   WARNING: Using java from path
   DEBUG: _PENTAHO_JAVA_HOME=
   DEBUG: _PENTAHO_JAVA=java.exe
   '"java.exe"' is not recognized as an internal or external command,operable program or batch file.


please help me to resolve this issue.

(note: this .ktr file running fine in spoon)

Thanks in advance
Dhamodharan

解决方案


To ensure that Business Analytics will always use the correct Sun Java Runtime Environment, especially in software environments that contain multiple JREs, you must create a PENTAHO_JAVA_HOME system variable for your pentaho user account and point it to a supported JRE or JDK. If you do not set this variable, Business Analytics will attempt to use the JRE that the JAVA_HOME variable points to. We do not recommend that your BA Server installation rely on the JAVA_HOME variable, as this is the global default JRE for the entire system, and changing it could adversely affect other Java-based applications in the system. Therefore, Pentaho recommends that you set PENTAHO_JAVA_HOME as described in these steps.

  1. In Windows, right-click on Computer, then select Properties from context menu, then click Advanced System Settings. The System Properties window will come up.
  2. In the System Properties window, click the Advanced tab, then click Environment Variables.
  3. In the System Variable section, click New.
  4. A popup dialog will ask for a variable name and value. Type PENTAHO_JAVA_HOME into the name field.
  5. In the value field, enter the directory for the JRE. An example of a JRE directory is C:\Program Files\Java\jre6. Click OK.
  6. In the parent window, click Apply Changes.
  7. You must restart your computer for the change to take effect.
  8. Verify that the variable is properly set:

    echo %PENTAHO_JAVA_HOME%



这篇关于Pentaho:在cmd行中运行pan.bat文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆