Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BF8F9200D27 for ; Wed, 25 Oct 2017 19:28:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BDF5A160BE0; Wed, 25 Oct 2017 17:28:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 191F21609CE for ; Wed, 25 Oct 2017 19:28:03 +0200 (CEST) Received: (qmail 32900 invoked by uid 500); 25 Oct 2017 17:28:03 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 32879 invoked by uid 99); 25 Oct 2017 17:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 17:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 49E07180719 for ; Wed, 25 Oct 2017 17:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id nYR6tWX3SU-s for ; Wed, 25 Oct 2017 17:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4EE435FD01 for ; Wed, 25 Oct 2017 17:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DA659E06C2 for ; Wed, 25 Oct 2017 17:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9957E212F9 for ; Wed, 25 Oct 2017 17:28:00 +0000 (UTC) Date: Wed, 25 Oct 2017 17:28:00 +0000 (UTC) From: "Xiao Chen (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13684) Snappy may complain Hadoop is built without snappy if libhadoop is not found. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 25 Oct 2017 17:28:04 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16219135#comment-16219135 ] Xiao Chen commented on HADOOP-13684: ------------------------------------ Thanks [~stevel@apache.org]. [~jojochuang] could you provide more details? I recall Wei-Chiu verified this internally with an escalation, where a confusing error message was seen. {quote}. Wei-Chiu Chuang added a comment - Aug/29/17 08:32 AM HADOOP-13684 did not fix a bug. It simply corrects an incorrect log message more precise. {quote} Looking at HADOOP-14981 and this one, one possible fix could be moving the {{isNativeCodeLoaded}} check before {{buildSupportsSnappy}}. > Snappy may complain Hadoop is built without snappy if libhadoop is not found. > ----------------------------------------------------------------------------- > > Key: HADOOP-13684 > URL: https://issues.apache.org/jira/browse/HADOOP-13684 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Wei-Chiu Chuang > Assignee: Wei-Chiu Chuang > Priority: Minor > Labels: supportability > Fix For: 2.8.0, 3.0.0-alpha2 > > Attachments: HADOOP-13684.001.patch, HADOOP-13684.002.patch > > > If for some reason libhadoop can not be found/loaded, Snappy complains Hadoop is not built with Snappy but it actually is. > {code:title=SnappyCodec.java} > public static void checkNativeCodeLoaded() { > if (!NativeCodeLoader.isNativeCodeLoaded() || > !NativeCodeLoader.buildSupportsSnappy()) { > throw new RuntimeException("native snappy library not available: " + > "this version of libhadoop was built without " + > "snappy support."); > } > {code} > This case may happen with MAPREDUCE-6577. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org