kettle在linux环境中打开图形界面
kettle数据转换的时候需要图形界面
当运行./spoon.sh时,如果没有图形界面,会出现下面的结果
./spoon.sh
[root@localhost data-integration]# ./spoon.sh
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
at org.eclipse.swt.widgets.Display.create(Unknown Source)
at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:619)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
如果所在的linux环境中没有安装图形界面
可以在本机安装xshell
配置一个全局变量 ip是自己的本地ip
DISPLAY=192.168.180.48:0.0
export DISPLAY
输入命令就可以了
xhost +
先打开本地的 Xmanager - Broadcast
再运行./spoon.sh的时候,就可以通过本地的xshell打开图形界面了
./spoon.sh
[root@localhost data-integration]# ./spoon.sh
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
09:42:59,481 INFO [KarafInstance]
*******************************************************************************
*** Karaf Instance Number: 2 at /u02/kettle/data-integration/./system/karaf ***
*** /caches/spoon/data-1 ***
*** Karaf Port:8803 ***
*** OSGI Service Port:9052 ***
*******************************************************************************
09:42:59,482 INFO [KarafBoot] Checking to see if org.pentaho.clean.karaf.cache is enabled
°ËÔÂ 26, 2019 9:43:02 ÉÏÎç org.apache.karaf.main.Main$KarafLockCallback lockAquired
ÐÅÏ¢: Lock acquired. Setting startlevel to 100
C:\mnt\y\01.WORK\12.kettle\data-integration\system\karaf/deploy does not exist, please create it.
Root path does not exist: /u02/kettle/data-integration/C:\mnt\y\01.WORK\12.kettle\data-integration\system\karaf/deploy
Y:\01.WORK\12.kettle\data-integration\system\karaf/deploy does not exist, please create it.
Root path does not exist: /u02/kettle/data-integration/Y:\01.WORK\12.kettle\data-integration\system\karaf/deploy
出现这个页面,需要等一会就打开了