Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD7C018F23 for ; Mon, 25 May 2015 10:08:17 +0000 (UTC) Received: (qmail 67516 invoked by uid 500); 25 May 2015 10:08:17 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67461 invoked by uid 500); 25 May 2015 10:08:17 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67449 invoked by uid 99); 25 May 2015 10:08:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 May 2015 10:08:17 +0000 Date: Mon, 25 May 2015 10:08:17 +0000 (UTC) From: "Kiran Kumar M R (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8474) Impala compilation breaks with libhdfs in 2.7 as getJNIEnv is not visible MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-8474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14558082#comment-14558082 ] Kiran Kumar M R commented on HDFS-8474: --------------------------------------- LGTM {{LIBHDFS_EXTERNAL}} is already defined in hdfs.h, but undef is done at end of file. May be that can be reused or moved to a common file instead of defining again in jni_helper.h > Impala compilation breaks with libhdfs in 2.7 as getJNIEnv is not visible > ------------------------------------------------------------------------- > > Key: HDFS-8474 > URL: https://issues.apache.org/jira/browse/HDFS-8474 > Project: Hadoop HDFS > Issue Type: Bug > Components: build, libhdfs > Affects Versions: 2.7.0 > Environment: Red Hat Enterprise Linux Server release 6.4 and gcc 4.3.4 > Reporter: Varun Saxena > Assignee: Varun Saxena > Priority: Critical > Attachments: HDFS-8474.01.patch > > > Impala in CDH 5.2.0 is not compiling with libhdfs.so in 2.7.0 on RedHat 6.4. > This is because getJNIEnv is not visible in the so file. > Compilation fails with below error message : > ../../build/release/exec/libExec.a(hbase-table-scanner.cc.o): In function `impala::HBaseTableScanner::Init()': > /usr1/code/Impala/code/current/impala/be/src/exec/hbase-table-scanner.cc:113: undefined reference to `getJNIEnv' > ../../build/release/exprs/libExprs.a(hive-udf-call.cc.o):/usr1/code/Impala/code/current/impala/be/src/exprs/hive-udf-call.cc:227: more undefined references to `getJNIEnv' follow > collect2: ld returned 1 exit status > make[3]: *** [be/build/release/service/impalad] Error 1 > make[2]: *** [be/src/service/CMakeFiles/impalad.dir/all] Error 2 > make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2 > make: *** [impalad] Error 2 > Compiler Impala Failed, exit > libhdfs.so.0.0.0 returns nothing when following command is run. > "nm -D libhdfs.so.0.0.0 | grep getJNIEnv" -- This message was sent by Atlassian JIRA (v6.3.4#6332)