US and Worldwide: +1 (866) 660-7555
+ Reply to Thread
Results 1 to 8 of 8

Thread: Pentaho tools on Fedora 8 x86_64 (Java problems)

  1. #1

    Unhappy Pentaho tools on Fedora 8 x86_64 (Java problems) [SOLVED!]

    I just acquired a brand new computer at work, and I've been having difficulty getting all the Pentaho tools working on Fedora 8 x86_64. I removed IcedTea, and I've tried the following JDKs (RPMs downloaded from java.sun.com):
    • JDK 1.5 i586
    • JDK 1.6 i586
    • JDK 1.5 x86_64
    • JDK 1.6 x86_64
    The version of JDK turned out to be irrelevant, but the architecture makes a big difference. Using a x86_64 JDK, I can run the Pentaho Metadata Editor and Data Integration (Kettle), but not the Report Designer or Design Studio (Eclipse).
    Using an i586 JDK (Sun don't seem to make i386 ones any more), I can run
    the Report Designer and Design Studio. When I try to run Kettle (spoon.sh), I get the following:
    Code:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-gtk-3346 or swt-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.C.<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:355)
    When I try to run metaeditor.sh, I get this:
    Code:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3320 or swt-pi-gtk in swt.library.path, java.libary.path or the jar file
            at org.eclipse.swt.internal.Library.loadLibrary(Library.java:219)
            at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
            at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
            at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
            at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
            at org.eclipse.swt.widgets.Display.<clinit>(Display.java:126)
            at org.pentaho.pms.editor.MetaEditor.main(MetaEditor.java:3504)
    The Pentaho BI server works regardless of JDK, so there's no problems there. I currently have JDK 1.5 i586 installed, as I rely more on the Report Designer and Design Studio more than I do on Kettle or the Metadata Editor. However, I will be needing to use all of those tools.
    I've mucked about with this a lot and can't find a universal solution short of switching my distribution to a 32-bit one and foregoing half of my RAM (I've got 8GB)
    What I can say is:
    • my JAVA_HOME environment variable is set correctly
    • the Java binaries are correctly set with /usr/sbin/alternatives
    • I am trying to run each tool with their directory set as the working directory, so I run ./spoon.sh, ./metaeditor.sh and so on.
    • I know why Eclipse doesn't work in x86_64 mode, but that doesn't explain why I get eclipse.swt errors with an i586 JDK
    • I don't really care whether I run an i586 or x86_64 JDK, as long as I can get everything to run well
    • I'm quite experienced with Linux. I'm a competent sysadmin, but I'm not a software developer.
    Problem solved: see here for details
    Last edited by yama; 03-04-2008 at 11:38 PM. Reason: Problem solved!
    Certified Pentaho BI Consultant


    BizCubed Pty Ltd
    The Australian Pentaho Gold Partner

    2008 Pentaho Partner of the Year (Asia-Pacific)
    Pentaho Certified Solutions Partner
    Pentaho Certified Consulting Partner
    Pentaho Certified Training Partner

  2. #2

    Default

    I know this sounds extremely stupid have you tried executing with
    Code:
    sh spoon.sh
    etc

    Tom
    This is a signature.... everyone gets it.

    Join the Unofficial Pentaho IRC channel on freenode.
    Server: chat.freenode.net Channel: ##pentaho

    Please try and make an effort and search the wiki and forums before posting!
    Checkout the PAT Analysis Tool, the future of Open Source Interactive OLAP(http://code.google.com/p/pentahoanalysistool/)


  3. #3
    Join Date
    May 2006
    Posts
    4,882

    Default

    If you're a sys admin, open up spoon.sh in vi and search for ARCH. Then change it locally to what your system tells you and let us know what you needed to change.

    Also have a look at http://jira.pentaho.org/browse/PDI-449

    Regards,
    Sven
    Last edited by sboden; 02-29-2008 at 05:14 AM.

  4. #4

    Thumbs up Success!

    Quote Originally Posted by sboden View Post
    If you're a sys admin, open up spoon.sh in vi and search for ARCH. Then change it locally to what your system tells you and let us know what you needed to change.
    So obvious... why didn't I think of that?

    I took a look at spoon.sh (Kettle) and metaeditor.sh (Metadata Editor) and noticed the following:

    Code:
            Linux)
                ARCH=`uname -m`
    To force x86_32 mode, I changed it to this:

    Code:
            Linux)
                ARCH=i386
    Now it all 'just works'. I've been running like this for five days without incident

    Thanks sboden
    Certified Pentaho BI Consultant


    BizCubed Pty Ltd
    The Australian Pentaho Gold Partner

    2008 Pentaho Partner of the Year (Asia-Pacific)
    Pentaho Certified Solutions Partner
    Pentaho Certified Consulting Partner
    Pentaho Certified Training Partner

  5. #5
    Join Date
    Dec 2007
    Posts
    24

    Default open issue

    Hello,

    we migrate our hw from 32-bit to 64-bit version.

    my question:
    when will started fo fix this problem. in th moment the pdi-449 is unscheduled.

    Also have a look at http://jira.pentaho.org/browse/PDI-449

    Regards,
    Ingo

  6. #6
    Join Date
    Nov 1999
    Posts
    7,251

    Default

    I guess none of the developers run on 64-bit Linux. I have a 64-bit machine, but installed 32-bit Kubuntu on it by mistake.
    I never missed the 700MB of RAM hard enough to re-install everything.

    Since I can't test it, someone else has to do it. yama above didn't really run anything in 64-bit, he just forced the use of 32-bit, probably because he's running a 32-bit Java.

    Matt
    Matt Casters, Chief Data Integration
    Pentaho, Open Source Business Intelligence
    http://www.pentaho.org -- mcasters@pentaho.org

    Author of the upcoming book Pentaho Kettle Solutions by Wiley. Release date: mid-September 2010.

    Join us on IRC server Freenode.net, channel ##pentaho

  7. #7

    Default

    Hi Matt,

    I did initially try using 64-bit Java. I've got a 64-bit machine, so it made sense to first try 64-bit Java

    This didn't work, and the only way I could get all the Pentaho components working was to use 32-bit Java and then force the Pentaho tools to run in 32-bit mode.

    Clearly this is just a workaround, and I'd love to see this problem fixed
    Certified Pentaho BI Consultant


    BizCubed Pty Ltd
    The Australian Pentaho Gold Partner

    2008 Pentaho Partner of the Year (Asia-Pacific)
    Pentaho Certified Solutions Partner
    Pentaho Certified Consulting Partner
    Pentaho Certified Training Partner

  8. #8

    Default

    Quote Originally Posted by yama View Post

    Code:
            Linux)
                ARCH=i386
    Tried this - didn't help.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts