Return-Path: X-Original-To: apmail-spark-user-archive@minotaur.apache.org Delivered-To: apmail-spark-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C69ED18F8E for ; Wed, 14 Oct 2015 04:44:58 +0000 (UTC) Received: (qmail 34732 invoked by uid 500); 14 Oct 2015 04:44:53 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 34633 invoked by uid 500); 14 Oct 2015 04:44:53 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 34623 invoked by uid 99); 14 Oct 2015 04:44:53 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2015 04:44:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EB783C0BD0 for ; Wed, 14 Oct 2015 04:44:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id WK8tEBUSO_Ye for ; Wed, 14 Oct 2015 04:44:52 +0000 (UTC) Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 342632045A for ; Wed, 14 Oct 2015 04:44:52 +0000 (UTC) Received: by obbda8 with SMTP id da8so30885896obb.1 for ; Tue, 13 Oct 2015 21:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=vMnQz2jnSLbAAZFCk89SPLxfH5o58LfyNVbikgQf4H4=; b=lpxUC+jv+AKuaiKGmL1V/+7qpr54ExKa15UlLeGz36oVpfWotqz+Cu40viqejC10tt hMl3E8yB6iScRjgXp+odPe+Y6npH554iBxiEoR18xxCZWSJ8xBpRwYtVtxuZHMYHnlfA DsAFmcRwp4UObcm9K4yEuWMUwVlrJNtuVvF7xC74U6bdzN4jIkrXTntN6OeiWPHswqGz TORTgI1I6zludL4MYn9DeFttGER2cg0mQLdhoBUTJPDdJMAyXLz/D9aeMK8Ldw+hIn5M 45+poLzgZ+iS4j+jj3H8Qw9RwLstpaOZ2VxevYmc+k+rKjYk8FYZ11mEHXvAGPVp5VPF bRxQ== MIME-Version: 1.0 X-Received: by 10.60.135.3 with SMTP id po3mr624628oeb.68.1444797891494; Tue, 13 Oct 2015 21:44:51 -0700 (PDT) Received: by 10.202.168.216 with HTTP; Tue, 13 Oct 2015 21:44:51 -0700 (PDT) Date: Wed, 14 Oct 2015 01:44:51 -0300 Message-ID: Subject: Running in cluster mode causes native library linking to fail From: Bernardo Vecchia Stein To: user@spark.apache.org Content-Type: multipart/alternative; boundary=047d7b41890b184934052209392d --047d7b41890b184934052209392d Content-Type: text/plain; charset=UTF-8 Hello, I am trying to run some scala code in cluster mode using spark-submit. This code uses addLibrary to link with a .so that exists in the machine, and this library has a function to be called natively (there's a native definition as needed in the code). The problem I'm facing is: whenever I try to run this code in cluster mode, spark fails with the following message when trying to execute the native function: java.lang.UnsatisfiedLinkError: org.name.othername.ClassName.nativeMethod([B[B)[B Apparently, the library is being found by spark, but the required function isn't found. When trying to run in client mode, however, this doesn't fail and everything works as expected. Does anybody have any idea of what might be the problem here? Is there any bug that could be related to this when running in cluster mode? I appreciate any help. Thanks, Bernardo --047d7b41890b184934052209392d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I a= m trying to run some scala code in cluster mode using spark-submit. This co= de uses addLibrary to link with a .so that exists in the machine, and this = library has a function to be called natively (there's a native definiti= on as needed in the code).

The problem I'm facing is: when= ever I try to run this code in cluster mode, spark fails with the following= message when trying to execute the native function:
java.lan= g.UnsatisfiedLinkError: org.name.othername.ClassName.nativeMethod([B[B)[B

Apparently, the library is being found by spark, but the r= equired function isn't found.

When trying to run in client= mode, however, this doesn't fail and everything works as expected.
=
Does anybody have any idea of what might be the problem here? Is = there any bug that could be related to this when running in cluster mode?
I appreciate any help.
Thanks,
Bernardo
--047d7b41890b184934052209392d--