PDA

View Full Version : Running Spoon in a remote host



shassan2
04-19-2009, 03:18 PM
Thread translated from
http://www.developpez.net/forums/d727130/logiciels/solutions-dentreprise/business-intelligence/etl/kettle-pentaho/lancement-spoon-machine-distante/

--------------------------------------------
Hi,
i have installed PDI in a host A which belong to the same VPN network than my host B.
I can connect with ssh to A and i tried to launch spoon but i faced the following issue :

root@A:~/KETTLE/pdi# ./spoon.sh
ERROR 17-04 18:46:22,403 - Pentaho Data Integration - Fatal error : java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3347 or swt-pi-gtk in swt.library.path, java.library.path or the jar file
ERROR 17-04 18:46:22,406 - Pentaho Data Integration - java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3347 or swt-pi-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.gtk.OS.<clinit>(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:388)

Exception in thread "main" java.lang.NullPointerException
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:434)

I have googled and found that one can use

export DISPLAY=<ip-of-your-X11-session>:0.0

but i don't know how to use it in Spoon.


Any idea, any help will be appreciate :-)

Thanks a lot

Mahis

fabianS
04-20-2009, 01:00 AM
Hi!

You're actually missing a server side installation of GTK as the exceptions states:

Fatal error : java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3347 or swt-pi-gtk in swt.library.path, java.library.path or the jar file

If you're just trying to execute a job/transformation try pan.sh instead of spoon.sh.

If you're trying to develop a job/transformation on that remote machine you'll have to get GTK installed on that remote machine.

MattCasters
04-20-2009, 09:43 AM
Running on a remote host works with the "export DISPLAY=<ip>:0" command. However, you have to make sure that you have permissions to access the X11 session on the remote host.
Usually running "xhost +" or similar solves the issue.

SamSubterra
06-02-2009, 10:12 AM
I too am getting the error:
Fatal error : java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3347 or swt-pi-gtk in swt.library.path, java.library.path or the jar file
when running on a remote system. The remote system does not have an X Server, but I would like the graphical output (via set DISPLAY=<IP Address>:0.0 to assist in debugging.

Can I just install the GTK+ libraries or will I be needing something else once that is installed? Do I need to install the full XFree86 X server or will I even be able to without a graphics controller?

MattCasters
06-02-2009, 10:22 AM
You can live without the graphical controller, but you do need the X11 and gtk+ libs.

SamSubterra
06-02-2009, 10:30 AM
So I grab the latest X11 and GTK libs and install them. Is there any other configuration that I will need to do to get spoon to find them?

MattCasters
06-02-2009, 11:03 AM
None I can think of. It would highly depend on the operating system, etc, etc. You are completely on your own here.