首页 > 解决方案 > Java API - Pentaho - PDI - 转换路径...无效,不会成功运行

问题描述

我正在使用 java api 进行 de 转换。

当我运行本地(eclipse/windows)时,转换效果很好!但我将在 linux 中运行,转换不起作用并返回问题:

"转换路径文件:/opt/platform/erpx-fnd-importacao-develop-SNAPSHOT/erpx-fnd-importacao-develop-SNAPSHOT-assembled-jar-with-dependencies.jar!/fnd_pessoa.ktr无效,将未成功运行”。

我的软件在 docker 和 linux Ubuntu 上运行。

我的代码:

try {
    KettleEnvironment.init();
    Trans transformation = new Trans(new 
    TransMeta(ClassLoader.getSystemResource("fnd_pessoa").getFile()));
    transformation.execute(null);
    transformation.waitUntilFinished();
    if (transformacao.getErrors() > 0) {
      LOGGER.error("Ocorreram erros durante a importação");
   }
} catch (KettleException e) {
  throw new KettleExceptions("Problemas ao inicializar PDI - Kettle ", e);
}

标签: javapentahotransformationpdi

解决方案


推荐阅读