今天把kettle7.1放到redhat7上运行,发现在连接资源库的时候会报一个错误,就是标题的错误。本来是想在windows上用kettle工具创建了一些job和trans打算迁移到linux上去执行,或者到任意机器上执行,突然想到这些kettle文件的还会存在迁移的问题,因为在job和trans文件里的数据库连接信息都是固定的,换了环境,这些数据库连接信息如何统一管理?是在kettle配置文件增加数据库连接变量,然后job和trans文件里都引用变量?是这样吗,
欢迎指教~~
言归正传,下面说一下标题的错误,灵感来于下面的文章,感谢~
http://blog.csdn.net/gongli109/article/details/8174755
错误信息:
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - no swt-mozilla-gtk-4335 in java.library.path
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - no swt-mozilla-gtk in java.library.path
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk-4335.so: libxpcom.so: 无法打开共享对象文件: 没有那个文件或目>录
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so: libxpcom.so: 无法打开共享对象文件: 没有那个文件或目录
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 -
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
2017/06/20 13:48:52 - org.pentaho.di.ui.util.EnvironmentUtils@75308740 - ... 13 more
2017/06/20 13:48:54 - Spoon - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : An unexpected error occurred in Spoon:
2017/06/20 13:48:54 - Spoon - No more handles [MOZILLA_FIVE_HOME=''] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
2017/06/20 13:48:54 - Spoon - no swt-mozilla-gtk-4335 in java.library.path
2017/06/20 13:48:54 - Spoon - no swt-mozilla-gtk in java.library.path
2017/06/20 13:48:54 - Spoon - /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk-4335.so: libxpcom.so: 无法打开共享对象文件: 没有那个文件或目录
2017/06/20 13:48:54 - Spoon - /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so: libxpcom.so: 无法打开共享对象文件: 没有那个文件或目录
2017/06/20 13:48:54 - Spoon - )
2017/06/20 13:48:54 - Spoon - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME=''] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
2017/06/20 13:48:54 - Spoon - no swt-mozilla-gtk-4335 in java.library.path
2017/06/20 13:48:54 - Spoon - no swt-mozilla-gtk in java.library.path
2017/06/20 13:48:54 - Spoon - /root/.swt/lib/linux/x86_64/libswt-mozilla-gtk-4335.so: libxpcom.so: 无法打开共享对象文件: 没有那个文件或目录
poon - No more handles [MOZILLA_FIVE_HOME=''] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
解决办法:
根据系统的版本,下载xulrunner
下载地址:
http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/2012/03/2012-03-02-03-32-11-mozilla-1.9.2/xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.bz2?cm_mc_uid=08168416471414670141294&cm_mc_sid_50200000=1497942238
或者
http://ftp.mozilla.org/pub/xulrunner/releases/latest/sdk/
得到一个这样的文件:xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar解压一下
//注册一下xulrunner
./xulrunner –register-global
重启一下kettle程序,再试connect,可以了。
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/Butingnal/article/details/73498703