Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3
I checked and /etc/security/limits.conf on redhat supports zero (0) to mean unlimited. Here is the sample from the man page. Notice the soft core entry. EXAMPLES These are some example lines which might be specified in /etc/security/limits.conf. * softcore0 * hardrss 1 @studenthardnproc 20 @facultysoftnproc 20 @facultyhardnproc 50 ftp hardnproc 0 @student- maxlogins 4 On Mon, Nov 29, 2010 at 6:51 AM, Jason Pell jasonmp...@gmail.com wrote: Ok that's a good point i will check - I am not sure. Sent from my iPhone On Nov 29, 2010, at 5:53, Tyler Hobbs ty...@riptano.com wrote: I'm not familiar with ulimit on RedHat systems, but are you sure you have ulimit set correctly? Did you set it to '0' or 'unlimited'? I ask because on a Debian system, I get this: tho...@~ $ ulimit -l unlimited Where you said that you got back '0'. - Tyler On Sun, Nov 28, 2010 at 1:15 AM, Jason Pell ja...@pellcorp.com wrote: Hi, I have selinux disabled via /etc/sysconfig/selinux already. But I did as you suggested anyway, even restarted the whole machine again too and still no difference. Do you know if there is a way to discover exactly what this error means? THanks Jason On Sat, Nov 27, 2010 at 3:59 AM, Nate McCall n...@riptano.com wrote: This might be an issue with selinux. You can try this quickly to temporarily disable selinux enforcement: /usr/sbin/setenforce 0 (as root) and then start cassandra as your user. On Fri, Nov 26, 2010 at 1:00 AM, Jason Pell jasonmp...@gmail.com wrote: I restarted the box :-) so it's well and truly set Sent from my iPhone On Nov 26, 2010, at 17:57, Brandon Williams dri...@gmail.com wrote: On Thu, Nov 25, 2010 at 10:02 PM, Jason Pell ja...@pellcorp.com wrote: Hi, I have set the memlock limit to unlimited in /etc/security/limits.conf [devel...@localhost apache-cassandra-0.7.0-rc1]$ ulimit -l 0 Running as a non root user gets me a Unknown mlockall error 1 Have you tried logging out and back in after changing limits.conf? -Brandon
Re: Issues getting JNA to work correctly under centos 5.5 using cassandra 0.7.0-rc1 and JNA 2.7.3
Hi, Thanks for that your suggestions worked a treat. I created a new cassandra user and set the value to unlimited and I get the desired log: INFO 08:49:50,204 JNA mlockall successful On Tue, Nov 30, 2010 at 7:56 AM, Jason Pell jasonmp...@gmail.com wrote: Awesome thanks will make the changes So is the man page inaccurate? Or is jna doing something wrong? Sent from my iPhone On Nov 30, 2010, at 7:28, Nate McCall n...@riptano.com wrote: Ok, I was able to reproduce this with 0 as the value. Changing it to unlimited will make this go away. A closer reading of the limits.conf man page seems to leave some ambiguity when taken with the examples: All items support the values -1, unlimited or infinity indicating no limit, except for priority and nice. I would recommend tightening this to a specific user. The line I ended up with for the cassandra user was: cassandra - memlock unlimited You probably want to add a line for nofile in there at ~ 16384 as well while your there as that can be an issue depending on load. On Mon, Nov 29, 2010 at 1:59 PM, Jason Pell ja...@pellcorp.com wrote: * - memlock 0 On Tue, Nov 30, 2010 at 4:40 AM, Nate McCall n...@riptano.com wrote: What does the current line(s) in limits.conf look like? On Mon, Nov 29, 2010 at 2:01 AM, jasonmp...@gmail.com wrote: I checked and /etc/security/limits.conf on redhat supports zero (0) to mean unlimited. Here is the sample from the man page. Notice the soft core entry. EXAMPLES These are some example lines which might be specified in /etc/security/limits.conf. * soft core 0 * hard rss 1 @student hard nproc 20 @faculty soft nproc 20 @faculty hard nproc 50 ftp hard nproc 0 @student - maxlogins 4 On Mon, Nov 29, 2010 at 6:51 AM, Jason Pell jasonmp...@gmail.com wrote: Ok that's a good point i will check - I am not sure. Sent from my iPhone On Nov 29, 2010, at 5:53, Tyler Hobbs ty...@riptano.com wrote: I'm not familiar with ulimit on RedHat systems, but are you sure you have ulimit set correctly? Did you set it to '0' or 'unlimited'? I ask because on a Debian system, I get this: tho...@~ $ ulimit -l unlimited Where you said that you got back '0'. - Tyler On Sun, Nov 28, 2010 at 1:15 AM, Jason Pell ja...@pellcorp.com wrote: Hi, I have selinux disabled via /etc/sysconfig/selinux already. But I did as you suggested anyway, even restarted the whole machine again too and still no difference. Do you know if there is a way to discover exactly what this error means? THanks Jason On Sat, Nov 27, 2010 at 3:59 AM, Nate McCall n...@riptano.com wrote: This might be an issue with selinux. You can try this quickly to temporarily disable selinux enforcement: /usr/sbin/setenforce 0 (as root) and then start cassandra as your user. On Fri, Nov 26, 2010 at 1:00 AM, Jason Pell jasonmp...@gmail.com wrote: I restarted the box :-) so it's well and truly set Sent from my iPhone On Nov 26, 2010, at 17:57, Brandon Williams dri...@gmail.com wrote: On Thu, Nov 25, 2010 at 10:02 PM, Jason Pell ja...@pellcorp.com wrote: Hi, I have set the memlock limit to unlimited in /etc/security/limits.conf [devel...@localhost apache-cassandra-0.7.0-rc1]$ ulimit -l 0 Running as a non root user gets me a Unknown mlockall error 1 Have you tried logging out and back in after changing limits.conf? -Brandon
Re: Cassandra 0.7.0rc1 issue with command-cli
Hi, So I had this working perfectly with beta 3 and now it fails. Basically what I do is follows: 1) Extract new rc1 tarball. 2) Prepare location based on instructions in Readme.txt: sudo rm -r /var/log/cassandra sudo rm -r /var/lib/cassandra sudo mkdir -p /var/log/cassandra sudo chown -R `whoami` /var/log/cassandra sudo mkdir -p /var/lib/cassandra sudo chown -R `whoami` /var/lib/cassandra 3) Then run cassandra [devel...@localhost apache-cassandra-0.7.0-rc1]$ bin/cassandra -f INFO 21:23:41,750 Heap size: 1060569088/1061617664 INFO 21:23:41,755 JNA not found. Native methods will be disabled. INFO 21:23:41,767 Loading settings from file:/opt/apache-cassandra-0.7.0-rc1/conf/cassandra.yaml INFO 21:23:41,942 DiskAccessMode 'auto' determined to be standard, indexAccessMode is standard INFO 21:23:42,055 Creating new commitlog segment /var/lib/cassandra/commitlog/CommitLog-1290767022055.log INFO 21:23:42,129 read 0 from saved key cache INFO 21:23:42,132 read 0 from saved key cache INFO 21:23:42,138 read 0 from saved key cache INFO 21:23:42,142 read 0 from saved key cache INFO 21:23:42,143 read 0 from saved key cache INFO 21:23:42,147 loading row cache for LocationInfo of system INFO 21:23:42,164 completed loading (16 ms; 0 keys) row cache for LocationInfo of system INFO 21:23:42,164 loading row cache for HintsColumnFamily of system INFO 21:23:42,165 completed loading (1 ms; 0 keys) row cache for HintsColumnFamily of system INFO 21:23:42,165 loading row cache for Migrations of system INFO 21:23:42,166 completed loading (1 ms; 0 keys) row cache for Migrations of system INFO 21:23:42,168 loading row cache for Schema of system INFO 21:23:42,168 completed loading (0 ms; 0 keys) row cache for Schema of system INFO 21:23:42,168 loading row cache for IndexInfo of system INFO 21:23:42,169 completed loading (1 ms; 0 keys) row cache for IndexInfo of system INFO 21:23:42,257 Couldn't detect any schema definitions in local storage. INFO 21:23:42,258 Found table data in data directories. Consider using JMX to call org.apache.cassandra.service.StorageService.loadSchemaFromYaml(). INFO 21:23:42,260 No commitlog files found; skipping replay INFO 21:23:42,301 Upgrading to 0.7. Purging hints if there are any. Old hints will be snapshotted. INFO 21:23:42,306 Cassandra version: 0.7.0-rc1 INFO 21:23:42,306 Thrift API version: 19.4.0 INFO 21:23:42,320 Loading persisted ring state INFO 21:23:42,338 Starting up server gossip INFO 21:23:42,365 switching in a fresh Memtable for LocationInfo at CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1290767022055.log', position=700) INFO 21:23:42,367 Enqueuing flush of memtable-locationi...@14361585(227 bytes, 4 operations) INFO 21:23:42,367 Writing memtable-locationi...@14361585(227 bytes, 4 operations) INFO 21:23:42,796 Completed flushing /var/lib/cassandra/data/system/LocationInfo-e-1-Data.db (473 bytes) WARN 21:23:42,861 Generated random token 124937963426514930245885291999748186719. Random tokens will result in an unbalanced ring; see http://wiki.apache.org/cassandra/Operations INFO 21:23:42,863 switching in a fresh Memtable for LocationInfo at CommitLogContext(file='/var/lib/cassandra/commitlog/CommitLog-1290767022055.log', position=996) INFO 21:23:42,863 Enqueuing flush of memtable-locationi...@17243268(53 bytes, 2 operations) INFO 21:23:42,864 Writing memtable-locationi...@17243268(53 bytes, 2 operations) INFO 21:23:43,277 Completed flushing /var/lib/cassandra/data/system/LocationInfo-e-2-Data.db (301 bytes) INFO 21:23:43,282 Will not load MX4J, mx4j-tools.jar is not in the classpath INFO 21:23:43,347 Binding thrift service to localhost/127.0.0.1:9160 INFO 21:23:43,350 Using TFramedTransport with a max frame size of 15728640 bytes. INFO 21:23:43,353 Listening for thrift clients... 4) start the command line client: [devel...@localhost apache-cassandra-0.7.0-rc1]$ bin/cassandra-cli Welcome to cassandra CLI. Type 'help' or '?' for help. Type 'quit' or 'exit' to quit. [defa...@unknown] connect localhost/9160 And as soon as I try and use the connect localhost/9160 it stalls I did this EXACT same procedure with beta3 and no issues. I am running on centos 5.5 with java 6 Any ideas?