面对麻烦发动spoon.sh在Amazon EC2上的Linux [英] facing trouble launching spoon.sh on amazon ec2 linux
问题描述
我不干新的Linux和Amazon EC2。
I am quit new to linux and Amazon EC2.
我设置JAVA_HOME通过以下两个连接
i configure JAVA_HOME by following below two link
所以在我的.bash_profile当前路径是
so current path in my bash_profile are
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51.x86_64
export PATH=$PATH:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.51.x86_64/bin
现在我试图推出./spoon.sh它给我的错误
now i am trying to launch ./spoon.sh it is giving me error of
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-pi-gtk-3740 in java.library.path
no swt-pi-gtk in java.library.path
/root/.swt/lib/linux/x86_64/libswt-pi-gtk-3740.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi-gtk.so
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:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134)
因此可有人建议,有什么不好?
so can somebody suggest that what is wrong?
推荐答案
Pentaho的不支持OpenJDK的Java版本。 安装的甲骨文/ Sun的Java。
Pentaho do not supports the openjdk java version. Install the the Oracle/Sun java.
但无论如何......你们是不是运行在EC2实例水壶环境?不带X的屏幕? 如果你想简单地运行水壶的工作或你必须使用 kitchen.sh或pan.sh 的转换,而不是spoon.sh。 Spoon.sh是只为打造跨或作业使用GUI界面。
But anyway... Are you trying to run the kettle environment on a Ec2 instance? without X screen? If you want simply to run kettle jobs or transformations you have to use kitchen.sh or pan.sh , not spoon.sh. Spoon.sh is only to create the trans or jobs with a GUI interface.
这篇关于面对麻烦发动spoon.sh在Amazon EC2上的Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!