Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 28192 invoked from network); 12 Feb 2011 18:28:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2011 18:28:57 -0000 Received: (qmail 41749 invoked by uid 500); 12 Feb 2011 18:28:55 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 41649 invoked by uid 500); 12 Feb 2011 18:28:54 -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 41641 invoked by uid 99); 12 Feb 2011 18:28:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 18:28:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sylvain@datastax.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 18:28:49 +0000 Received: by yxt33 with SMTP id 33so1698449yxt.31 for ; Sat, 12 Feb 2011 10:28:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.147.98.1 with SMTP id a1mr2550135yam.16.1297535307742; Sat, 12 Feb 2011 10:28:27 -0800 (PST) Received: by 10.147.41.10 with HTTP; Sat, 12 Feb 2011 10:28:27 -0800 (PST) X-Originating-IP: [88.183.33.171] In-Reply-To: References: <120CB7532EA53A4D8CA6B63F94B4ADB351E30E1498@IE2RD2XVS021.red002.local> Date: Sat, 12 Feb 2011 19:28:27 +0100 Message-ID: Subject: Re: cassandra solaris x64 support From: Sylvain Lebresne To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=20cf3043466a19fd90049c19fbb6 --20cf3043466a19fd90049c19fbb6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, Feb 12, 2011 at 2:52 AM, Xiaobo Gu wrote: > On Fri, Feb 11, 2011 at 11:54 PM, Sylvain Lebresne > wrote: > > > > > > On Fri, Feb 11, 2011 at 4:27 PM, Xiaobo Gu > wrote: > >> > >> On Fri, Feb 11, 2011 at 11:21 PM, Roland Gude < > roland.gude@yoochoose.com> > >> wrote: > >> > This is a problem with the start scripts, not with Cassandra itself > (or > >> > any of its configuration) > >> > The shell you are using cannot start the cassandra shell script. > >> > > >> > Try > >> > #bash bin/cassandra -f > >> You are right, but there are other problems, but you help me make a > >> big step, I'll dig dipper tomorrow. > >> > >> -bash-3.00$ /bin/bash bin/cassandra -f > >> Error occurred during initialization of VM > >> Could not reserve enough space for object heap > >> -bash-3.00$ > > > > You apparently don't have enough free memory available for the > > default setting (1G). Uncomment and change the value of > > MAX_HEAP_SIZE in conf/cassandra-env.sh. > > > >> > >> Does the start script automatically choose the 64bit Java virtual > >> machine, I have both 64bit and 32bit jdk installed. > > > > It either use $JAVA_HOME/bin/java if $JAVA_HOME is defined in > > your environment or the value returned by `which java`. > > 32bit and 64bit java binaries are mixed up in one repository, there is > a $JAVA_HOME/bin/java, and there is also a $JAVA_HOME/bin/amd64/java, > I think the first one is 32bit and the second is 64bit, how can I > choose the 64bit one. Look at bin/cassandra. It's a shell script that, in particular set the JAVA variable that is the used binary. A quick (though slightly dirty) way to force the binary would be to hardcode the value in there. Otherwise, if you unset the $JAVA_HOME variable and make sure the 64 bit binary is in your path (but not the 32 bit one, or "after"), that will work too. -- Sylvain > >> > >> > As far as I know, it should work fine. Actually it should work with = sh > >> > as well... > >> > > >> > > >> > -----Urspr=FCngliche Nachricht----- > >> > Von: Xiaobo Gu [mailto:guxiaobo1982@gmail.com] > >> > Gesendet: Freitag, 11. Februar 2011 16:12 > >> > An: user@cassandra.apache.org > >> > Betreff: Re: cassandra solaris x64 support > >> > > >> > On Fri, Feb 11, 2011 at 10:51 PM, Jonathan Ellis > >> > wrote: > >> >> The vast majority run on Linux, but there are a few people running > >> >> Cassandra on Solaris, FreeBSD, and Windows. > >> > But I failed to start the one node test cluster, > >> > # sh bin/cassandra -f > >> > bin/cassandra: syntax error at line 22: `MAX_HEAP_SIZE=3D$' unexpect= ed > >> > > >> > My environemnt is as follwoing: > >> > # more /etc/release > >> > Solaris 10 10/09 s10x_u8wos_08a X86 > >> > Copyright 2009 Sun Microsystems, Inc. All Rights Reserved= . > >> > Use is subject to license terms. > >> > Assembled 16 September 2009 > >> > > >> > # java -fullversion > >> > java full version "1.6.0_23-b05" > >> > # java -version > >> > java version "1.6.0_23" > >> > Java(TM) SE Runtime Environment (build 1.6.0_23-b05) > >> > Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing) > >> > > >> > I changed initial_token:0 > >> > > >> > > >> >> On Fri, Feb 11, 2011 at 4:40 AM, Xiaobo Gu > >> >> wrote: > >> >>> Hi, > >> >>> Because I can't access the archives of the mailing list, so my > >> >>> apologies if someone have asked this before. > >> >>> > >> >>> Does any have successfully run Cassandra on Solaris 10 X64 cluster= s? > >> >>> > >> >>> Regards, > >> >>> > >> >>> Xiaobo Gu > >> >>> > >> >> > >> >> > >> >> > >> >> -- > >> >> Jonathan Ellis > >> >> Project Chair, Apache Cassandra > >> >> co-founder of DataStax, the source for professional Cassandra suppo= rt > >> >> http://www.datastax.com > >> >> > >> > > >> > > >> > > > > > > --20cf3043466a19fd90049c19fbb6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sat, Feb 12, 2011 at 2:52 AM, Xiaobo = Gu <guxiaobo= 1982@gmail.com> wrote:
On Fri, Feb 11, 2011 at 11:54 PM, Sylvain Lebresne <sylvain@datastax.com> wrote: >
>
> On Fri, Feb 11, 2011 at 4:27 PM, Xiaobo Gu <guxiaobo1982@gmail.com> wrote:
>>
>> On Fri, Feb 11, 2011 at 11:21 PM, Roland Gude <roland.gude@yoochoose.com>
>> wrote:
>> > This is a problem with the start scripts, not with Cassandra = itself (or
>> > any of its configuration)
>> > The shell you are using cannot start the cassandra shell scri= pt.
>> >
>> > Try
>> > #bash bin/cassandra -f
>> You are right, but there are other problems, but you help me make = a
>> big step, I'll dig dipper tomorrow.
>>
>> -bash-3.00$ /bin/bash bin/cassandra -f
>> Error occurred during initialization of VM
>> Could not reserve enough space for object heap
>> -bash-3.00$
>
> You apparently don't have enough free memory available for the
> default setting (1G). Uncomment and change the value of
> MAX_HEAP_SIZE in conf/cassandra-env.sh.
>
>>
>> Does the start script automatically choose the 64bit Java virtual<= br> >> machine, I have both 64bit and 32bit jdk installed.
>
> It either use $JAVA_HOME/bin/java if $JAVA_HOME is defined in
> your environment or the value returned by `which java`.

32bit and 64bit java binaries are mixed up in one repository, there i= s
a $JAVA_HOME/bin/java, and there is also a $JAVA_HOME/bin/amd64/java,
I think the first one is 32bit and the second is 64bit, how can I
choose the 64bit one.

Look at bin/cassandra= . It's a shell script that, in particular set the=A0
JAVA var= iable that is the used binary. A quick (though slightly dirty)=A0
way to force the binary would be to hardcode the value in there.
=
Otherwise, if you unset the $JAVA_HOME variable and make sur= e the
64 bit binary is in your path (but not the 32 bit one, or &= quot;after"), that will=A0
work too.=A0

--
Sylvain
= =A0
>>
>> > As far as I know, it should work fine. Actually it should wor= k with sh
>> > as well...
>> >
>> >
>> > -----Urspr=FCngliche Nachricht-----
>> > Von: Xiaobo Gu [mailto:guxiaobo1982@gmail.com]
>> > Gesendet: Freitag, 11. Februar 2011 16:12
>> > An: user@cassand= ra.apache.org
>> > Betreff: Re: cassandra solaris x64 support
>> >
>> > On Fri, Feb 11, 2011 at 10:51 PM, Jonathan Ellis <jbellis@gmail.com>
>> > wrote:
>> >> The vast majority run on Linux, but there are a few peopl= e running
>> >> Cassandra on Solaris, FreeBSD, and Windows.
>> > But I failed to start the one node test cluster,
>> > # sh bin/cassandra -f
>> > bin/cassandra: syntax error at line 22: `MAX_HEAP_SIZE=3D$= 9; unexpected
>> >
>> > My environemnt is as follwoing:
>> > # more /etc/release
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Solaris 10 10/09 = s10x_u8wos_08a X86
>> > =A0 =A0 =A0 =A0 =A0 Copyright 2009 Sun Microsystems, Inc. =A0= All Rights Reserved.
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Use is subject= to license terms.
>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Assembled= 16 September 2009
>> >
>> > # java -fullversion
>> > java full version "1.6.0_23-b05"
>> > # java -version
>> > java version "1.6.0_23"
>> > Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
>> > Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, shari= ng)
>> >
>> > I changed initial_token:0
>> >
>> >
>> >> On Fri, Feb 11, 2011 at 4:40 AM, Xiaobo Gu <guxiaobo1982@gmail.com>
>> >> wrote:
>> >>> Hi,
>> >>> Because I can't access the archives of the mailin= g list, so my
>> >>> apologies if someone have asked this before.
>> >>>
>> >>> Does any have successfully run Cassandra on Solaris 1= 0 X64 clusters?
>> >>>
>> >>> Regards,
>> >>>
>> >>> Xiaobo Gu
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Jonathan Ellis
>> >> Project Chair, Apache Cassandra
>> >> co-founder of DataStax, the source for professional Cassa= ndra support
>> >> htt= p://www.datastax.com
>> >>
>> >
>> >
>> >
>
>

--20cf3043466a19fd90049c19fbb6--