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.(Unknown Source)

at org.eclipse.swt.widgets.Display.(Unknown Source)

at org.eclipse.swt.widgets.Display.(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

eda0e14cee3455936f421b177f03b8f5.png

再运行./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:mnty 1.WORK12.kettledata-integrationsystemkaraf/deploy does not exist, please create it.

Root path does not exist: /u02/kettle/data-integration/C:mnty 1.WORK12.kettledata-integrationsystemkaraf/deploy

Y: 1.WORK12.kettledata-integrationsystemkaraf/deploy does not exist, please create it.

Root path does not exist: /u02/kettle/data-integration/Y: 1.WORK12.kettledata-integrationsystemkaraf/deploy

出现这个页面,需要等一会就打开了

9e6e3c5ea5ed9c449716a45fdeaf21f8.png

3734f249226181cfe5c5ab1f1dd2a01f.png

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐