在 amazon ec2 linux 上启动spoon.sh 时遇到问题 [英] 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 版本.安装 Oracle/Sun java.
Pentaho do not supports the openjdk java version. Install the the Oracle/Sun java.
但是无论如何...您是否尝试在 Ec2 实例上运行 Kettle 环境?没有X屏?如果您只想运行水壶作业或转换,则必须使用 kitchen.sh 或 pan.sh,而不是勺子.sh.Spoon.sh 仅用于创建具有 GUI 界面的 trans 或作业.
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.
这篇关于在 amazon ec2 linux 上启动spoon.sh 时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!