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 3D3D5200AF7 for ; Tue, 14 Jun 2016 19:35:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3BD3F160A47; Tue, 14 Jun 2016 17:35:38 +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 31ECE160A06 for ; Tue, 14 Jun 2016 19:35:37 +0200 (CEST) Received: (qmail 82621 invoked by uid 500); 14 Jun 2016 17:35:35 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 82611 invoked by uid 99); 14 Jun 2016 17:35:35 -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, 14 Jun 2016 17:35:35 +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 49EC2180510 for ; Tue, 14 Jun 2016 17:35:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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 H2X6nd1tAJQH for ; Tue, 14 Jun 2016 17:35:31 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 2E61E5F253 for ; Tue, 14 Jun 2016 17:35:31 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id 62so59421207pfd.1 for ; Tue, 14 Jun 2016 10:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:mime-version:subject:date:references:to:in-reply-to; bh=/FYUdLkQW9odZZMY4CE8TMPnhEXFBP49rVEuUSVH864=; b=II9hUu+d+fdI5FtpBqXrssfWWP3v4GOs06n7R0U7cLypNp+mMYY+YJXsuz1X7bM0aW daNTLrdBZfmD4+TxfnouEX8HBvXdOLHG1CiNXbj6G4UfO6WZS4FXSXtes2tsDb0Hn3tm m0tUAcSz3FdRaWazcSJKYhJZBNspCzaY2EJXbA5QvfZpYzvWIxjJEPZunnIrlYY/K07l UHPeKccdNeXDl49/qPXIGv7b0M4tQRhBZSkE1Q99WzHQQCSCyVG/mhZ6Gdra55Aeoe5b Zb/64Re/cE2hb8iF/aw6A1s62WIa1VBG7hqlHmF0yyHEbvyaIG/7yoL8LdRGC36q7S77 /eeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:mime-version:subject:date :references:to:in-reply-to; bh=/FYUdLkQW9odZZMY4CE8TMPnhEXFBP49rVEuUSVH864=; b=ISe3y89YJsVBCY3Gbs3g+E09p/Fiur1R1rcJ2/m/klYrk3sIihR4ClWJeN5nVNhiKh L3oTpNWZ76LyRt7RECREi/cMV7cYA+dojb0W6UZz0Nd6htEa5jkEk5UbY7woPQOKLzBf ZZEdWIzkM4wKe7akTbyvST7DIo7/a1nkyqPnnCx7zrhXkUvUp/v15OERawEEEdHbcLX7 QaA3sxhovBx93cctzNOLanEpPkEtNjA1hj1N5KhHkJ8zdMCAtsFMM2v7+BcgLpHjtDtx VqTmrvonDp3Btol6e8Rg+CLUhOlv9cXMDBwGOLqVboHtn6UJE8g1XFqY4Wql7F3aNEbK IotA== X-Gm-Message-State: ALyK8tKPaxYbB27ENkHHAyZuiE9vQWopgwVWpdpMiSx512V2snDJiTBX+dCeSrx/Hs55Gw== X-Received: by 10.98.13.154 with SMTP id 26mr4946889pfn.35.1465925730038; Tue, 14 Jun 2016 10:35:30 -0700 (PDT) Received: from ?IPv6:2404:e800:e600:c3d:ed0a:e83a:e858:795c? ([2404:e800:e600:c3d:ed0a:e83a:e858:795c]) by smtp.gmail.com with ESMTPSA id bf4sm46981515pac.4.2016.06.14.10.35.28 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jun 2016 10:35:29 -0700 (PDT) From: Steve Anderson Content-Type: multipart/alternative; boundary="Apple-Mail=_F425B365-8119-498F-BD95-FADFAA4A9802" Message-Id: <2780895E-5E4B-4D4A-AE6E-F7A3E8EA80E9@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: Installing Cassandra from Tarball Date: Wed, 15 Jun 2016 01:35:26 +0800 References: To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.3112) archived-at: Tue, 14 Jun 2016 17:35:38 -0000 --Apple-Mail=_F425B365-8119-498F-BD95-FADFAA4A9802 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Awesone, thanks Bhuvan!=20 I have not worried about the JMX warning at this stage. There were two other warnings, but I assume these are due to the size of = my Amazon Linux Image (and are not worth worrying about at this stage). WARN 17:24:20 Small commitlog volume detected at = /var/lib/cassandra/commitlog; setting commitlog_total_space_in_mb to = 1983. You can override this in cassandra.yaml WARN 17:24:20 Only 5.809GiB free across all data volumes. Consider = adding more capacity to your cluster or removing obsolete snapshots Regarding the commitlog_total_space_in_mb property, I see from the = cassandra.yaml file: The default value is the smaller of 8192, and 1/4 of the total = space of the commitlog volume. Awesome, thanks again. Steve =E2=80=94 "Surely, those who believe, those who are Jewish, the Christians, and = the converts; anyone who (1) believes in God, (2) believes in the Last = Day, and (3) leads a righteous life, will receive their recompense from = their Lord; they have nothing to fear, nor will they grieve." (Quran = 2:62, 5:69) =E2=80=A6learn more at www.masjidtucson.org > On 14/06/2016, at 12:49 AM, Bhuvan Rawal wrote: >=20 >=20 > Hi Steve, >=20 > Please find the responses in line: >=20 > WARN 15:41:58 Unable to lock JVM memory (ENOMEM). This can result in = part of the JVM being swapped out, especially with mmapped I/O enabled. = Increase RLIMIT_MEMLOCK or run Cassandra as root. > You can edit - /etc/security/limits.conf and put these lines in there >=20 > * - memlock unlimited > * - nofile 100000 > * - nproc 32768 > * - as unlimited >=20 > and reload the properties by command $ sudo sysctl -p > and then checking it : > $ ulimit -l > and for the cassandra process by : > $ cat /proc//limits > Source - Datastax Troubleshooting = >=20 > WARN 15:41:58 jemalloc shared library could not be preloaded to speed = up memory allocations > If you want to allocate off heap memory using jemalloc then uncomment = this line in cassandra-env.sh and provide appropriate jemalloc path > JVM_OPTS=3D"$JVM_OPTS -Djava.library.path=3D/lib/" >=20 > WARN 15:41:58 JMX is not enabled to receive remote connections. = Please see cassandra-env.sh for more info. > By default JMX is enabled only for local connections, if you want to = debug from a remote machine mark LOCAL_JMX=3Dno in cassandra-env.sh >=20 > WARN 15:41:58 Cassandra server running in degraded mode. Is swap = disabled? : true, Address space adequate? : true, nofile limit = adequate? : false, nproc limit adequate? : false > You need to disable swap in order to avoid this message, using swap = space can have serious performance implications. Make sure you disable = fstab entry as well for swap partition. >=20 > Thanks & Regards, > Bhuvan >=20 --Apple-Mail=_F425B365-8119-498F-BD95-FADFAA4A9802 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Awesone, thanks Bhuvan! 

I have not worried about the JMX = warning at this stage.

There were two other warnings, but I assume these are due to = the size of my Amazon Linux Image (and are not worth worrying about at = this stage).

WARN  17:24:20 = Small commitlog volume detected at /var/lib/cassandra/commitlog; setting = commitlog_total_space_in_mb to 1983.  You can override this in = cassandra.yaml

WARN  17:24:20 Only 5.809GiB free = across all data volumes. Consider adding more capacity to your cluster = or removing obsolete snapshots

Regarding the = commitlog_total_space_in_mb property, I see from the cassandra.yaml = file:

= The default value is the smaller of 8192, and 1/4 = of the total space of the commitlog volume.

Awesome, thanks = again.

Steve
=E2=80=94
"Surely, those who believe, those who are Jewish, the = Christians, and the converts; anyone who (1) believes in God, (2) = believes in the Last Day, and (3) leads a righteous life, will receive = their recompense from their Lord; they have nothing to fear, nor will = they grieve." (Quran 2:62, = 5:69) =E2=80=A6learn more at www.masjidtucson.org


On 14/06/2016, at 12:49 AM, Bhuvan Rawal <bhu1rawal@gmail.com>= wrote:


Hi = Steve,

Please find the responses in line:

WARN  15:41:58 Unable to lock JVM memory (ENOMEM). This = can result in part of the JVM being swapped out, especially with mmapped = I/O enabled. Increase RLIMIT_MEMLOCK or run Cassandra as = root.
 You can = edit - /etc/security/limits.conf and put these = lines in there

* - memlock unlimited
* - nofile 100000
* - nproc = 32768
* - as unlimited

and reload the properties by command = $ sudo sysctl -p
and then checking it = :
$ ulimit -l
and for the = cassandra process by :
$ cat = /proc/<cassandra-pid>/limits

WARN  15:41:58 jemalloc shared library could not be = preloaded to speed up memory allocations
If you want to allocate off heap memory using jemalloc then = uncomment this line in cassandra-env.sh and provide = appropriate jemalloc path
JVM_OPTS=3D"$JVM_OPTS = -Djava.library.path=3D<JEMALLOC_HOME>/lib/"

WARN  15:41:58 JMX is not enabled to receive remote = connections. Please see cassandra-env.sh for more info.
By = default JMX is enabled only for local connections, if you want to debug = from a remote machine mark LOCAL_JMX=3Dno  in cassandra-env.sh

WARN  15:41:58 Cassandra = server running in degraded mode. Is swap disabled? : true,  Address = space adequate? : true,  nofile limit adequate? : false, nproc = limit adequate? : false
You need to disable swap in order to avoid this message, = using swap space can have serious performance implications. Make sure = you disable fstab entry as well for swap partition.

Thanks & = Regards,
Bhuvan


= --Apple-Mail=_F425B365-8119-498F-BD95-FADFAA4A9802--