Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0AB9718199 for ; Tue, 23 Feb 2016 17:56:32 +0000 (UTC) Received: (qmail 4118 invoked by uid 500); 23 Feb 2016 17:56:16 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 4061 invoked by uid 500); 23 Feb 2016 17:56:16 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 4051 invoked by uid 99); 23 Feb 2016 17:56:16 -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; Tue, 23 Feb 2016 17:56:15 +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 9076D1805CD for ; Tue, 23 Feb 2016 17:56:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 OEzDLxFHXE8v for ; Tue, 23 Feb 2016 17:56:14 +0000 (UTC) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 356D25FAFC for ; Tue, 23 Feb 2016 17:56:14 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id ho8so117086367pac.2 for ; Tue, 23 Feb 2016 09:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=EhNXdPUtaVckgEQQDecvMU+uYaBe846Zfc6nzCJdCYI=; b=VSGOZof6sajAO0IDcoyI9wXaE7a5EzBFFYWMJ/5pDqbJprh2e4gk3ZHoV7TXhtkFHo iStX4d4Qpq44oVRSzZjJJLii5UkMEa/RhRVp51zMZbu5xvms27EJN+YkMTxe0gaW0gV1 5kiIIwAw9DJJgVGoGM2mzDFwBpP7ZWkhsdghuIq7xvhEQWWaIvp/4EpTxKUKUpRkC5Ne xV3qEfOv1Px5qn9n7bXvbZbROVZ/f+1wQXmachxJA4UfmNyOJILH+Ey6/K2FHpw//sbH GuizYMY+sTUmrGz63MreRv1iTgteGmkNCxwfkPO+SiYL7z++vtuArNkpbGxBdrvZPwQn 1Qbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=EhNXdPUtaVckgEQQDecvMU+uYaBe846Zfc6nzCJdCYI=; b=ZpJfDTq75hrW73atArT7kz/zQsudE2qj3T9VbogXzGbOCcUyRT4pbM2o2ujmJ7JBI/ 59CHTE3RCOVt8TpPVqtexQjPzXUYPLxI0SUIYUGnslndH9TqWxGV3YFQMbHA8SAfD08H ng4oCc+6rW/Eo/ZvScExGF8CeHvJqxj0mkZAR0evzE9aWgb5gsk/4xUuQD6Yo4TTihmC uCbtkYMn0UvqlmMHxtYvb6gIbb0uGWJS3tZs1toVlbsEgpDGuSixiOwXqoMGCooFXJhB 4V3doAscLoi5kbslseFQkOpgWzqo8n2Sglz9mDJ3nkb4WkwDOUI7rlOKmpPHWEbnoa1P QTkw== X-Gm-Message-State: AG10YOSPvtLUwIjlWIkJS9UfOrGPf4+9w0HWVnR5jJduu+QMfrvIhmC/8/wM4v9VPV4uQw== X-Received: by 10.67.5.68 with SMTP id ck4mr16998972pad.3.1456250173217; Tue, 23 Feb 2016 09:56:13 -0800 (PST) Received: from hw10447.local ([192.175.27.10]) by smtp.googlemail.com with ESMTPSA id i15sm45617415pfi.55.2016.02.23.09.56.11 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Feb 2016 09:56:12 -0800 (PST) Message-ID: <56CC9D3C.3070509@gmail.com> Date: Tue, 23 Feb 2016 09:56:12 -0800 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: Unable to get Mini to use native maps - 1.6.2 References: <025901d16e5b$33b738e0$9b25aaa0$@bbn.com> <56CC967B.9060301@gmail.com> <025b01d16e60$01d4e3e0$057eaba0$@bbn.com> In-Reply-To: <025b01d16e60$01d4e3e0$057eaba0$@bbn.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Well, I'm near positive that 1.6.2 had native maps working, so there must be something unexpected happening :). MAC should be very close to what a real standalone instance is doing -- if you have the ability to share some end-to-end project with where you are seeing this, that'd be extremely helpful (e.g. a Maven project that we can just run would be superb). Dan Blum wrote: > I'll take a look but I don't think the path is the problem - NativeMap > should try to load the library regardless of whether this path is set and > will log if it can't find it. This isn't happening. > > -----Original Message----- > From: Josh Elser [mailto:josh.elser@gmail.com] > Sent: Tuesday, February 23, 2016 12:27 PM > To: user@accumulo.apache.org > Subject: Re: Unable to get Mini to use native maps - 1.6.2 > > Hi Dan, > > I'm seeing in our internal integration tests that we have some > configuration happening which (at least, intends to) configure the > native maps for the minicluster. > > If you're not familiar, the MiniAccumuloConfig and MiniAccumuloCluster > classes are thin wrappers around MiniAccumuloConfigImpl and > MiniAccumuloClusterImpl. There is a setNativeLibPaths method on > MiniAccumuloConfigImpl which you can use to provide the path to the > native library shared object (.so). You will probably have to switch > from MiniAccumuloConfig/MiniAccumuloCluster to > MiniAccumuloConfigImpl/MiniAccumuloClusterImpl to use the "hidden" methods. > > You could also look at MiniClusterHarness.java in>=1.7 if you want a > concrete example of how we initialize things for our tests. > > - Josh > > Dan Blum wrote: >> In order to test to make sure we don't have more code that needs a >> workaround for https://issues.apache.org/jira/browse/ACCUMULO-4148 I am >> trying again to enable the native maps for Mini, which we use for testing. >> >> I set tserver.memory.maps.native.enabled to true in the site XML, and this >> is getting picked up since I see this in the Mini logs: >> >> [server.Accumulo] INFO : tserver.memory.maps.native.enabled = true >> >> However, NativeMap should log something when it tries to load the library, >> whether it succeeds or fails, but it logs nothing. The obvious conclusion > is >> that something about how MiniAccumuloCluster starts means that this > setting >> is ignored or overridden, but I am not finding it. (I see the mergeProp > call >> in MiniAccumuloConfigImpl.initialize which will set > TSERV_NATIVEMAP_ENABLED >> to false, but that should only set it if it's not already in the > properties, >> which it should be, and as far as I can tell the log message above is > issued >> after this.) >> >