java - 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);
}
解决方案
推荐阅读
- java - SpringIntegration Poller 复制文件
- django - LOGIN_REDIRECT_URL 在 django2.1 中不起作用
- python - 如何从 Django 项目外部的脚本运行 Django shell 命令
- ruby-on-rails - post 方法在 Ruby on Rails 中如何工作
- c# - 我可以在 Entity Framework 6 中制作全局查询过滤器吗?通过 OnModelCreating?
- python - 通过蓝牙 python 命令发送到另一个 Raspberry Pi
- java - 如何从 Java 中的 /places/v1/autosuggest 获取 JSON 响应?
- jquery - 通过 jQuery AJAX 在 ASP.Net Core 中返回视图 - 在生产中不起作用
- c++ - C ++检查国际象棋游戏中是否有玩家在路上
- reactjs - 如何在反应中导航到新页面?