Re: Alternate apt repo for Debian installation?

2024-03-20 Thread Grant Talarico
Oh, nevermind. It looks like debian.cassandra.apache.org has come back
online and I can get once again pull from the apt repo.

On Wed, Mar 20, 2024 at 2:15 PM Grant Talarico  wrote:

> I already tried those. My particular application requires a minimum
> version of 3.11.14 and I have 3.11.16 installed in my staging environment.
> The archive.apache.org only has it's latest of 3.11.13.
>
> On Wed, Mar 20, 2024 at 1:55 PM Bowen Song via user <
> user@cassandra.apache.org> wrote:
>
>> You can try https://archive.apache.org/dist/cassandra/debian/
>>
>> The deb files can be found here:
>> https://archive.apache.org/dist/cassandra/debian/pool/main/c/cassandra/
>> On 20/03/2024 20:47, Grant Talarico wrote:
>>
>> Hi there. Hopefully this is the right place to ask this question. I'm
>> trying to install the latest version of Cassandra 3.11 using debian
>> packages through the debian.cassandra.apache.org apt repo but it appears
>> to be down at the moment. Is there an alternate apt repo I might be able to
>> use as a backup?
>>
>> - Grant
>>
>>
>
> --
>
> *Grant Talarico IT Senior Systems Engineer*
>
>
> 901 Marshall St, Suite 200
> Redwood City, CA 94063
> http://www.imvu.com
>


-- 

*Grant Talarico IT Senior Systems Engineer*


901 Marshall St, Suite 200
Redwood City, CA 94063
http://www.imvu.com


Re: Alternate apt repo for Debian installation?

2024-03-20 Thread Grant Talarico
I already tried those. My particular application requires a minimum version
of 3.11.14 and I have 3.11.16 installed in my staging environment. The
archive.apache.org only has it's latest of 3.11.13.

On Wed, Mar 20, 2024 at 1:55 PM Bowen Song via user <
user@cassandra.apache.org> wrote:

> You can try https://archive.apache.org/dist/cassandra/debian/
>
> The deb files can be found here:
> https://archive.apache.org/dist/cassandra/debian/pool/main/c/cassandra/
> On 20/03/2024 20:47, Grant Talarico wrote:
>
> Hi there. Hopefully this is the right place to ask this question. I'm
> trying to install the latest version of Cassandra 3.11 using debian
> packages through the debian.cassandra.apache.org apt repo but it appears
> to be down at the moment. Is there an alternate apt repo I might be able to
> use as a backup?
>
> - Grant
>
>

-- 

*Grant Talarico IT Senior Systems Engineer*


901 Marshall St, Suite 200
Redwood City, CA 94063
http://www.imvu.com


Re: Alternate apt repo for Debian installation?

2024-03-20 Thread Bowen Song via user

You can try https://archive.apache.org/dist/cassandra/debian/

The deb files can be found here: 
https://archive.apache.org/dist/cassandra/debian/pool/main/c/cassandra/


On 20/03/2024 20:47, Grant Talarico wrote:
Hi there. Hopefully this is the right place to ask this question. I'm 
trying to install the latest version of Cassandra 3.11 using debian 
packages through the debian.cassandra.apache.org 
 apt repo but it appears to be 
down at the moment. Is there an alternate apt repo I might be able to 
use as a backup?


- Grant


Alternate apt repo for Debian installation?

2024-03-20 Thread Grant Talarico
Hi there. Hopefully this is the right place to ask this question. I'm
trying to install the latest version of Cassandra 3.11 using debian
packages through the debian.cassandra.apache.org apt repo but it appears to
be down at the moment. Is there an alternate apt repo I might be able to
use as a backup?

- Grant


RE: RPM Installation on RHEL7 broken

2022-08-09 Thread Amit Patel via user
Thank you Yakir

From: Stéphane Alleaume 
Sent: 09 August 2022 14:21
To: Yakir Gibraltar 
Cc: user@cassandra.apache.org; Amit Patel 
Subject: Re: RPM Installation on RHEL7 broken

CAUTION: This email comes from outside Euroclear! Be vigilant!
Thanks you very much :-)

Kind regards

Stéphane

Le mar. 9 août 2022, 15:16, Yakir Gibraltar 
mailto:yaki...@gmail.com>> a écrit :
The issue is this commit on 4.0.5: 
https://github.com/apache/cassandra/commit/cd0a40d09e5c029e3cac260ecf4cb3dc02deabc7
From:
Requires: jre >= 1.8.0
To:
Requires: (jre-1.8.0 or jre-11)
But support for “Boolean Dependencies” was added only in rpm version 4.13, 
CentOS 7 with rpm 4.11.3.

This is my workaround to CentOS 7.

For cassandra 4.0.5:
Upgrade rpm/rpm-libs/python2-rpm/rpm-plugin-selinux/rpm-build-libs to 
4.13.0.2<http://4.13.0.2>:
[cass@h00104 ~]# sudo rpm --version
RPM version 4.13.0.2
[cass@h00104 ~]#  sudo rpm -Uvh  
https://archive.apache.org/dist/cassandra/redhat/40x/cassandra-4.0.5-1.noarch.rpm
Retrieving 
https://archive.apache.org/dist/cassandra/redhat/40x/cassandra-4.0.5-1.noarch.rpm
Preparing...  # [100%]
Updating / installing...
   1:cassandra-4.0.5-1# [100%]

For older versions like Cassandra 4.0.4 it's very simple, change baseurl to:
baseurl=https://archive.apache.org/dist/cassandra/redhat/40x/
And execute:
[cass@h00104 ~]#  sudo yum install cassandra-4.0.4-1.noarch 
cassandra-tools-4.0.4-1.noarch



On Tue, Aug 9, 2022 at 3:48 PM Amit Patel via user 
mailto:user@cassandra.apache.org>> wrote:
Hi Stephane,

I have followed same instruction but new rpm version 4.0.5 is broken(bug) and 
there are no other package on that repo (download base url for rhel) so I can 
not install older stable version.

Kind regards,
Amit Patel

From: Stéphane Alleaume mailto:crystallo...@gmail.com>>
Sent: 09 August 2022 13:32
To: user@cassandra.apache.org<mailto:user@cassandra.apache.org>; Amit Patel 
mailto:amit.pa...@euroclear.com>>
Subject: Re: RPM Installation on RHEL7 broken

CAUTION: This email comes from outside Euroclear! Be vigilant!
Hi

Hope it will help :


https://cassandra.apache.org/doc/trunk/cassandra/getting_started/installing.html#installing-the-rpm-packages


  1.  Add the Apache repository of Cassandra to the file 
/etc/yum.repos.d/cassandra.repo (as the root user). The latest major version is 
4.0 and the corresponding distribution name is 40x (with an "x" as the suffix). 
For older releases use 311x for C* 3.11 series, 30x for {30_version}, 22x for 
{22_version} and 21x for {21_version}. For example, to add the repository for 
version 4.0 (40x):

[cassandra]

name=Apache Cassandra

baseurl=https://downloads.apache.org/cassandra/redhat/40x/<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

gpgcheck=1<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

repo_gpgcheck=1<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

gpgkey=https://downloads.apache.org/cassandra/KEYS<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

  1.  Update the package index from sources:

$ sudo yum update

  1.  Install Cassandra with YUM:

$ sudo yum install cassandra
A new Linux user cassandra will get created as part of the installation. The 
Cassandra service will also be run as this user.

  1.  Start the Cassandra service:

$ sudo service cassandra start

Le mar. 9 août 2022, 14:17, Amit Patel via user 
mailto:user@cassandra.apache.org>> a écrit :
Hi All,


We are facing the issue on RHEL7 as well , we have java8 installed on the 
system but when I tried to install yum install Cassandra or even 
localinstall(downloaded rpm) gives similar error as below .

There are bug report  for this issue 
(CASSANDRA-17765<https://issues.apache.org/jira/browse/CASSANDRA-17765>) but 
not sure when it can resolve.

#yum localinstall cassandra-4.0.5-1.noarch.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Examining cassandra-4.0.5-1.noarch.rpm: cassandra-4.0.5-1.noarch
Marking cassandra-4.0.5-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cassandra.noarch 0:4.0.5-1 will be installed
Error: Invalid version flag: or
Edit<https://issues.apache.org/jira/secure/EditComment!default.jspa?id=13472721=17576846>Delete<https://issues.apache.org/jira/secure/DeleteComment!default.jspa?id=13472721=17576846>

We have used the below repo:

[cassandra]
name=Apache Cassandra
baseurl=https://downloads.apache.org/cassandra/redhat/40x/
gpgcheck=1 repo_gpgcheck=1
gpgkey=https://downloads.apache

Re: RPM Installation on RHEL7 broken

2022-08-09 Thread Stéphane Alleaume
Thanks you very much :-)

Kind regards

Stéphane

Le mar. 9 août 2022, 15:16, Yakir Gibraltar  a écrit :

> The issue is this commit on 4.0.5:
> https://github.com/apache/cassandra/commit/cd0a40d09e5c029e3cac260ecf4cb3dc02deabc7
> From:
> Requires: jre >= 1.8.0
> To:
> Requires: (jre-1.8.0 *or* jre-11)
> But support for “Boolean Dependencies” was added only in rpm version 4.13,
> CentOS 7 with rpm 4.11.3.
>
> This is my workaround to CentOS 7.
>
> For cassandra 4.0.5:
> Upgrade rpm/rpm-libs/python2-rpm/rpm-plugin-selinux/rpm-build-libs to
> 4.13.0.2:
> [cass@h00104 ~]# sudo rpm --version
> RPM version 4.13.0.2
> [cass@h00104 ~]#  sudo rpm -Uvh
> https://archive.apache.org/dist/cassandra/redhat/40x/cassandra-4.0.5-1.noarch.rpm
> Retrieving
> https://archive.apache.org/dist/cassandra/redhat/40x/cassandra-4.0.5-1.noarch.rpm
> Preparing...  #
> [100%]
> Updating / installing...
>1:cassandra-4.0.5-1#
> [100%]
>
> For older versions like Cassandra 4.0.4 it's very simple, change baseurl
> to:
> baseurl=https://archive.apache.org/dist/cassandra/redhat/40x/
> And execute:
> [cass@h00104 ~]#  sudo yum install cassandra-4.0.4-1.noarch
> cassandra-tools-4.0.4-1.noarch
>
>
>
> On Tue, Aug 9, 2022 at 3:48 PM Amit Patel via user <
> user@cassandra.apache.org> wrote:
>
>> Hi Stephane,
>>
>>
>>
>> I have followed same instruction but new rpm version 4.0.5 is broken(bug)
>> and there are no other package on that repo (download base url for rhel) so
>> I can not install older stable version.
>>
>>
>>
>> Kind regards,
>>
>> Amit Patel
>>
>>
>>
>> *From:* Stéphane Alleaume 
>> *Sent:* 09 August 2022 13:32
>> *To:* user@cassandra.apache.org; Amit Patel 
>> *Subject:* Re: RPM Installation on RHEL7 broken
>>
>>
>>
>> *CAUTION:* This email comes from outside Euroclear! Be vigilant!
>>
>> Hi
>>
>>
>>
>> Hope it will help :
>>
>>
>>
>>
>>
>>
>> https://cassandra.apache.org/doc/trunk/cassandra/getting_started/installing.html#installing-the-rpm-packages
>>
>>
>>
>>1. Add the Apache repository of Cassandra to the file
>>/etc/yum.repos.d/cassandra.repo (as the root user). The latest major
>>version is 4.0 and the corresponding distribution name is 40x (with
>>an "x" as the suffix). For older releases use 311x for C* 3.11
>>series, 30x for {30_version}, 22x for {22_version} and 21x for
>>{21_version}. For example, to add the repository for version 4.0 (40x
>>):
>>
>> [cassandra]
>>
>> name=Apache Cassandra
>>
>> baseurl=https://downloads.apache.org/cassandra/redhat/40x/ 
>> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>>
>> gpgcheck=1 
>> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>>
>> repo_gpgcheck=1 
>> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>>
>> gpgkey=https://downloads.apache.org/cassandra/KEYS 
>> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>>
>>
>>1. Update the package index from sources:
>>
>> $ sudo yum update
>>
>>
>>1. Install Cassandra with YUM:
>>
>> $ sudo yum install cassandra
>>
>> A new Linux user cassandra will get created as part of the installation.
>> The Cassandra service will also be run as this user.
>>
>>1. Start the Cassandra service:
>>
>> $ sudo service cassandra start
>>
>>
>>
>> Le mar. 9 août 2022, 14:17, Amit Patel via user <
>> user@cassandra.apache.org> a écrit :
>>
>> Hi All,
>>
>>
>>
>> We are facing the issue on RHEL7 as well , we have java8 installed on the
>> system but when I tried to install yum install Cassandra or even
>> localinstall(downloaded rpm) gives similar error as below .
>>
>>
>>
>> There are bug report  for this issue (CASSANDRA-17765
>> <https://issues.apache.org/jira/browse/CASSANDRA-17765>) but not sure
>> when it can resolve.
>>
>> #yum localinstall cassandra-4.0.5-1.noarch.rpm
>> Loaded plugins: product-id, search-disabled-repos, sub

Re: RPM Installation on RHEL7 broken

2022-08-09 Thread Yakir Gibraltar
The issue is this commit on 4.0.5:
https://github.com/apache/cassandra/commit/cd0a40d09e5c029e3cac260ecf4cb3dc02deabc7
From:
Requires: jre >= 1.8.0
To:
Requires: (jre-1.8.0 *or* jre-11)
But support for “Boolean Dependencies” was added only in rpm version 4.13,
CentOS 7 with rpm 4.11.3.

This is my workaround to CentOS 7.

For cassandra 4.0.5:
Upgrade rpm/rpm-libs/python2-rpm/rpm-plugin-selinux/rpm-build-libs to
4.13.0.2:
[cass@h00104 ~]# sudo rpm --version
RPM version 4.13.0.2
[cass@h00104 ~]#  sudo rpm -Uvh
https://archive.apache.org/dist/cassandra/redhat/40x/cassandra-4.0.5-1.noarch.rpm
Retrieving
https://archive.apache.org/dist/cassandra/redhat/40x/cassandra-4.0.5-1.noarch.rpm
Preparing...  #
[100%]
Updating / installing...
   1:cassandra-4.0.5-1#
[100%]

For older versions like Cassandra 4.0.4 it's very simple, change baseurl to:
baseurl=https://archive.apache.org/dist/cassandra/redhat/40x/
And execute:
[cass@h00104 ~]#  sudo yum install cassandra-4.0.4-1.noarch
cassandra-tools-4.0.4-1.noarch



On Tue, Aug 9, 2022 at 3:48 PM Amit Patel via user <
user@cassandra.apache.org> wrote:

> Hi Stephane,
>
>
>
> I have followed same instruction but new rpm version 4.0.5 is broken(bug)
> and there are no other package on that repo (download base url for rhel) so
> I can not install older stable version.
>
>
>
> Kind regards,
>
> Amit Patel
>
>
>
> *From:* Stéphane Alleaume 
> *Sent:* 09 August 2022 13:32
> *To:* user@cassandra.apache.org; Amit Patel 
> *Subject:* Re: RPM Installation on RHEL7 broken
>
>
>
> *CAUTION:* This email comes from outside Euroclear! Be vigilant!
>
> Hi
>
>
>
> Hope it will help :
>
>
>
>
>
>
> https://cassandra.apache.org/doc/trunk/cassandra/getting_started/installing.html#installing-the-rpm-packages
>
>
>
>1. Add the Apache repository of Cassandra to the file
>/etc/yum.repos.d/cassandra.repo (as the root user). The latest major
>version is 4.0 and the corresponding distribution name is 40x (with an
>"x" as the suffix). For older releases use 311x for C* 3.11 series, 30x for
>{30_version}, 22x for {22_version} and 21x for {21_version}. For
>example, to add the repository for version 4.0 (40x):
>
> [cassandra]
>
> name=Apache Cassandra
>
> baseurl=https://downloads.apache.org/cassandra/redhat/40x/ 
> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>
> gpgcheck=1 
> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>
> repo_gpgcheck=1 
> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>
> gpgkey=https://downloads.apache.org/cassandra/KEYS 
> <https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>
>
>
>1. Update the package index from sources:
>
> $ sudo yum update
>
>
>1. Install Cassandra with YUM:
>
> $ sudo yum install cassandra
>
> A new Linux user cassandra will get created as part of the installation.
> The Cassandra service will also be run as this user.
>
>1. Start the Cassandra service:
>
> $ sudo service cassandra start
>
>
>
> Le mar. 9 août 2022, 14:17, Amit Patel via user 
> a écrit :
>
> Hi All,
>
>
>
> We are facing the issue on RHEL7 as well , we have java8 installed on the
> system but when I tried to install yum install Cassandra or even
> localinstall(downloaded rpm) gives similar error as below .
>
>
>
> There are bug report  for this issue (CASSANDRA-17765
> <https://issues.apache.org/jira/browse/CASSANDRA-17765>) but not sure
> when it can resolve.
>
> #yum localinstall cassandra-4.0.5-1.noarch.rpm
> Loaded plugins: product-id, search-disabled-repos, subscription-manager
> Examining cassandra-4.0.5-1.noarch.rpm: cassandra-4.0.5-1.noarch
> Marking cassandra-4.0.5-1.noarch.rpm to be installed
> Resolving Dependencies
> --> Running transaction check
> ---> Package cassandra.noarch 0:4.0.5-1 will be installed
> *Error: Invalid version flag: or*
>
> Edit
> <https://issues.apache.org/jira/secure/EditComment!default.jspa?id=13472721=17576846>
> Delete
> <https://issues.apache.org/jira/secure/DeleteComment!default.jspa?id=13472721=17576846>
>
>
>
> We have used the below repo:
>
>
>
> [cassandra]
>
> name=Apache Cassandra
>
> baseurl=https://downloads.apache.org/cassandra/redhat/40x/
>
> gpgcheck

RE: RPM Installation on RHEL7 broken

2022-08-09 Thread Amit Patel via user
Hi Stephane,

I have followed same instruction but new rpm version 4.0.5 is broken(bug) and 
there are no other package on that repo (download base url for rhel) so I can 
not install older stable version.

Kind regards,
Amit Patel

From: Stéphane Alleaume 
Sent: 09 August 2022 13:32
To: user@cassandra.apache.org; Amit Patel 
Subject: Re: RPM Installation on RHEL7 broken

CAUTION: This email comes from outside Euroclear! Be vigilant!
Hi

Hope it will help :


https://cassandra.apache.org/doc/trunk/cassandra/getting_started/installing.html#installing-the-rpm-packages


  1.  Add the Apache repository of Cassandra to the file 
/etc/yum.repos.d/cassandra.repo (as the root user). The latest major version is 
4.0 and the corresponding distribution name is 40x (with an "x" as the suffix). 
For older releases use 311x for C* 3.11 series, 30x for {30_version}, 22x for 
{22_version} and 21x for {21_version}. For example, to add the repository for 
version 4.0 (40x):

[cassandra]

name=Apache Cassandra

baseurl=https://downloads.apache.org/cassandra/redhat/40x/<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

gpgcheck=1<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

repo_gpgcheck=1<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

gpgkey=https://downloads.apache.org/cassandra/KEYS<https://downloads.apache.org/cassandra/redhat/40x/gpgcheck=1repo_gpgcheck=1gpgkey=https:/downloads.apache.org/cassandra/KEYS>

  1.  Update the package index from sources:

$ sudo yum update

  1.  Install Cassandra with YUM:

$ sudo yum install cassandra
A new Linux user cassandra will get created as part of the installation. The 
Cassandra service will also be run as this user.

  1.  Start the Cassandra service:

$ sudo service cassandra start

Le mar. 9 août 2022, 14:17, Amit Patel via user 
mailto:user@cassandra.apache.org>> a écrit :
Hi All,


We are facing the issue on RHEL7 as well , we have java8 installed on the 
system but when I tried to install yum install Cassandra or even 
localinstall(downloaded rpm) gives similar error as below .

There are bug report  for this issue 
(CASSANDRA-17765<https://issues.apache.org/jira/browse/CASSANDRA-17765>) but 
not sure when it can resolve.

#yum localinstall cassandra-4.0.5-1.noarch.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Examining cassandra-4.0.5-1.noarch.rpm: cassandra-4.0.5-1.noarch
Marking cassandra-4.0.5-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cassandra.noarch 0:4.0.5-1 will be installed
Error: Invalid version flag: or
Edit<https://issues.apache.org/jira/secure/EditComment!default.jspa?id=13472721=17576846>Delete<https://issues.apache.org/jira/secure/DeleteComment!default.jspa?id=13472721=17576846>

We have used the below repo:

[cassandra]
name=Apache Cassandra
baseurl=https://downloads.apache.org/cassandra/redhat/40x/
gpgcheck=1 repo_gpgcheck=1
gpgkey=https://downloads.apache.org/cassandra/KEYS

I tried older version but no package available on  Index of 
/cassandra/redhat/40x 
(apache.org)<https://downloads.apache.org/cassandra/redhat/40x/>
yum install cassandra-4.0.4*
No package cassandra-4.0.4* available.

And broken package

yum install cassandra-4*
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package cassandra.noarch 0:4.0.5-1 will be installed
Error: Invalid version flag: or


How Can I install the stable version?  Can someone please guide, What is the 
best practice to install cassandra on production server rpm package or tarball?


Thanks & Kind regards,
Amit Patel






This e-mail message, including any attachments transmitted with it, is

CONFIDENTIAL and may contain legally privileged information. This message is

intended solely for the use of the individual or entity to whom it is 
addressed. If

you have received this message in error, please notify us immediately and delete

it from your system. Please visit our website to read the full disclaimer

www.euroclear.com/disclaimer<http://www.euroclear.com/disclaimer> and for 
Euroclear Group company

information www.euroclear.com/aboutus<http://www.euroclear.com/aboutus>


This e-mail message, including any attachments transmitted with it, is 
CONFIDENTIAL and may contain legally privileged information. This message is 
intended solely for the use of the individual or entity to whom it is 
addressed. If 
you have received this message in error, please notify us immediately and 
delete 
it from your system. Please visit our website to read the full disclaimer 
www.euroclear.com/disclaimer and for Euroclear Group company 
information www.euroclear.com/aboutus

Re: RPM Installation on RHEL7 broken

2022-08-09 Thread Stéphane Alleaume
Hi

Hope it will help :


https://cassandra.apache.org/doc/trunk/cassandra/getting_started/installing.html#installing-the-rpm-packages


   1.

   Add the Apache repository of Cassandra to the file
   /etc/yum.repos.d/cassandra.repo (as the root user). The latest major
   version is 4.0 and the corresponding distribution name is 40x (with an
   "x" as the suffix). For older releases use 311x for C* 3.11 series, 30x for
   {30_version}, 22x for {22_version} and 21x for {21_version}. For
   example, to add the repository for version 4.0 (40x):

[cassandra]
name=Apache Cassandra
baseurl=https://downloads.apache.org/cassandra/redhat/40x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://downloads.apache.org/cassandra/KEYS


   1.

   Update the package index from sources:

$ sudo yum update


   1.

   Install Cassandra with YUM:

$ sudo yum install cassandra

A new Linux user cassandra will get created as part of the installation.
The Cassandra service will also be run as this user.

   1.

   Start the Cassandra service:

$ sudo service cassandra start


Le mar. 9 août 2022, 14:17, Amit Patel via user 
a écrit :

> Hi All,
>
>
>
> We are facing the issue on RHEL7 as well , we have java8 installed on the
> system but when I tried to install yum install Cassandra or even
> localinstall(downloaded rpm) gives similar error as below .
>
>
>
> There are bug report  for this issue (CASSANDRA-17765
> <https://issues.apache.org/jira/browse/CASSANDRA-17765>) but not sure
> when it can resolve.
>
> #yum localinstall cassandra-4.0.5-1.noarch.rpm
> Loaded plugins: product-id, search-disabled-repos, subscription-manager
> Examining cassandra-4.0.5-1.noarch.rpm: cassandra-4.0.5-1.noarch
> Marking cassandra-4.0.5-1.noarch.rpm to be installed
> Resolving Dependencies
> --> Running transaction check
> ---> Package cassandra.noarch 0:4.0.5-1 will be installed
> *Error: Invalid version flag: or*
>
> Edit
> <https://issues.apache.org/jira/secure/EditComment!default.jspa?id=13472721=17576846>
> Delete
> <https://issues.apache.org/jira/secure/DeleteComment!default.jspa?id=13472721=17576846>
>
>
>
> We have used the below repo:
>
>
>
> [cassandra]
>
> name=Apache Cassandra
>
> baseurl=https://downloads.apache.org/cassandra/redhat/40x/
>
> gpgcheck=1 repo_gpgcheck=1
>
> gpgkey=https://downloads.apache.org/cassandra/KEYS
>
>
>
> I tried older version but no package available on  Index of
> /cassandra/redhat/40x (apache.org)
> <https://downloads.apache.org/cassandra/redhat/40x/>
>
> yum install cassandra-4.0.4*
>
> No package cassandra-4.0.4* available.
>
>
>
> And broken package
>
>
>
> yum install cassandra-4*
>
> Loaded plugins: product-id, search-disabled-repos, subscription-manager
>
> Resolving Dependencies
>
> --> Running transaction check
>
> ---> Package cassandra.noarch 0:4.0.5-1 will be installed
>
> Error: Invalid version flag: or
>
>
>
> How Can I install the stable version?  Can someone please guide, What is
> the best practice to install cassandra on production server rpm package or
> tarball?
>
>
>
>
>
> Thanks & Kind regards,
>
> Amit Patel
>
>
>
>
>
>
>
>
>
>
>
> This e-mail message, including any attachments transmitted with it, is
> CONFIDENTIAL and may contain legally privileged information. This message is
> intended solely for the use of the individual or entity to whom it is 
> addressed. If
> you have received this message in error, please notify us immediately and 
> delete
> it from your system. Please visit our website to read the full disclaimer 
> www.euroclear.com/disclaimer and for Euroclear Group company
> information www.euroclear.com/aboutus
>
>


RPM Installation on RHEL7 broken

2022-08-09 Thread Amit Patel via user
Hi All,


We are facing the issue on RHEL7 as well , we have java8 installed on the 
system but when I tried to install yum install Cassandra or even 
localinstall(downloaded rpm) gives similar error as below .

There are bug report  for this issue 
(CASSANDRA-17765) but 
not sure when it can resolve.

#yum localinstall cassandra-4.0.5-1.noarch.rpm
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Examining cassandra-4.0.5-1.noarch.rpm: cassandra-4.0.5-1.noarch
Marking cassandra-4.0.5-1.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package cassandra.noarch 0:4.0.5-1 will be installed
Error: Invalid version flag: or
EditDelete

We have used the below repo:

[cassandra]
name=Apache Cassandra
baseurl=https://downloads.apache.org/cassandra/redhat/40x/
gpgcheck=1 repo_gpgcheck=1
gpgkey=https://downloads.apache.org/cassandra/KEYS


I tried older version but no package available on  Index of 
/cassandra/redhat/40x 
(apache.org)
yum install cassandra-4.0.4*
No package cassandra-4.0.4* available.

And broken package

yum install cassandra-4*
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package cassandra.noarch 0:4.0.5-1 will be installed
Error: Invalid version flag: or


How Can I install the stable version?  Can someone please guide, What is the 
best practice to install cassandra on production server rpm package or tarball?


Thanks & Kind regards,
Amit Patel






This e-mail message, including any attachments transmitted with it, is
CONFIDENTIAL and may contain legally privileged information. This message is
intended solely for the use of the individual or entity to whom it is 
addressed. If
you have received this message in error, please notify us immediately and delete
it from your system. Please visit our website to read the full disclaimer
www.euroclear.com/disclaimer and for Euroclear Group company
information www.euroclear.com/aboutus


Re: Installation

2018-07-10 Thread rajasekhar kommineni
Thanks Michael, While I agree with the advantage of symlinks , I am worried for 
future upgrades.

My concern here is how to unlink the Cassandra binaries like nodetool,cassandra 
,cqlsh etc after migrating to tar gz installation.

Thanks,


> On Jul 10, 2018, at 5:46 AM, Michael Shuler  wrote:
> 
> On 07/10/2018 02:48 AM, rajasekhar kommineni wrote:
>> Hi Rahul,
>> 
>> The problem for removing the old links is Cassandra binaries are pointed
>> from /usr//bin/, /usr//sbin etc ..
>> 
>> $ which nodetool 
>> /usr/bin/nodetool
>> $ which cqlsh
>> /usr/bin/cqlsh
>> $ which cassandra
>> /usr/sbin/cassandra
> 
> This is a basic linux usage thing, not really a cassandra problem, but
> it's why packages make things simple for general use - the default
> /usr/{s}bin locations are in $PATH. If you wish to have nodetool, etc.
> in your user's $PATH, just update the user's shell configuration to
> include the tar locations.
> 
> export CASSANDRA_HOME=
> export PATH="$CASSANDRA_HOME/bin:$CASSANDRA_HOME/tools/bin:$PATH"
> 
> This can be added to the bottom of ~/.bashrc for persistence. Bonus
> points for symlink of generic cassandra_home to versioned one, which is
> used for upgrades without messing with PATH env for user and within
> configs for Cassandra.
> 
> -- 
> Michael
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> For additional commands, e-mail: user-h...@cassandra.apache.org
> 


-
To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
For additional commands, e-mail: user-h...@cassandra.apache.org



Re: Installation

2018-07-10 Thread Michael Shuler
On 07/10/2018 02:48 AM, rajasekhar kommineni wrote:
> Hi Rahul,
> 
> The problem for removing the old links is Cassandra binaries are pointed
> from /usr//bin/, /usr//sbin etc ..
> 
> $ which nodetool 
> /usr/bin/nodetool
> $ which cqlsh
> /usr/bin/cqlsh
> $ which cassandra
> /usr/sbin/cassandra

This is a basic linux usage thing, not really a cassandra problem, but
it's why packages make things simple for general use - the default
/usr/{s}bin locations are in $PATH. If you wish to have nodetool, etc.
in your user's $PATH, just update the user's shell configuration to
include the tar locations.

export CASSANDRA_HOME=
export PATH="$CASSANDRA_HOME/bin:$CASSANDRA_HOME/tools/bin:$PATH"

This can be added to the bottom of ~/.bashrc for persistence. Bonus
points for symlink of generic cassandra_home to versioned one, which is
used for upgrades without messing with PATH env for user and within
configs for Cassandra.

-- 
Michael

-
To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
For additional commands, e-mail: user-h...@cassandra.apache.org



Re: Installation

2018-07-10 Thread rajasekhar kommineni
Hi Rahul,

The problem for removing the old links is Cassandra binaries are pointed from 
/usr//bin/, /usr//sbin etc ..

$ which nodetool 
/usr/bin/nodetool
$ which cqlsh
/usr/bin/cqlsh
$ which cassandra
/usr/sbin/cassandra
$ 


Thanks,


> On Jul 10, 2018, at 12:28 AM, Rahul Singh  
> wrote:
> 
> That approach will work, however that may take a long time. 
> 
> The important things that are unique to your cluster will be your 
> configuration files & your data /log  directories. 
> 
> The binaries can be placed on the same machines via tar installation. While 
> keeping the machines running on the old binaries, you can migrate the data / 
> log new directories. If you move your data, you can use links in linux to 
> point the old directories to the new locations. 
> 
> Once this is done, you can configure your tar installation to point to your 
> new data directories, and turn off the old binaries and turn on the new 
> binaries, one node at a time. 
> 
> 
> --
> Rahul Singh
> rahul.si...@anant.us
> 
> Anant Corporation
> On Jul 9, 2018, 6:35 PM -0500, rajpal reddy , wrote:
>> We have our infrastructure in cloud so opted for adding new dc with tar.gz 
>> then removed the old dc with package installation
>> 
>> Sent from my iPhone
>> 
>>> On Jul 9, 2018, at 2:23 PM, rajasekhar kommineni  
>>> wrote:
>>> 
>>> Hello All,
>>> 
>>> I have a cassandra cluster where package installation is done, I want to 
>>> convert it to tar.gz installation. Is there any procedure to follow.
>>> 
>>> Thanks,
>>> Rajasekhar Kommineni
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
>>> For additional commands, e-mail: user-h...@cassandra.apache.org
>>> 
>> 
>> -
>> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
>> For additional commands, e-mail: user-h...@cassandra.apache.org
>> 



Re: Installation

2018-07-10 Thread Rahul Singh
That approach will work, however that may take a long time.

The important things that are unique to your cluster will be your configuration 
files & your data /log  directories.

The binaries can be placed on the same machines via tar installation. While 
keeping the machines running on the old binaries, you can migrate the data / 
log new directories. If you move your data, you can use links in linux to point 
the old directories to the new locations.

Once this is done, you can configure your tar installation to point to your new 
data directories, and turn off the old binaries and turn on the new binaries, 
one node at a time.


--
Rahul Singh
rahul.si...@anant.us

Anant Corporation
On Jul 9, 2018, 6:35 PM -0500, rajpal reddy , wrote:
> We have our infrastructure in cloud so opted for adding new dc with tar.gz 
> then removed the old dc with package installation
>
> Sent from my iPhone
>
> > On Jul 9, 2018, at 2:23 PM, rajasekhar kommineni  
> > wrote:
> >
> > Hello All,
> >
> > I have a cassandra cluster where package installation is done, I want to 
> > convert it to tar.gz installation. Is there any procedure to follow.
> >
> > Thanks,
> > Rajasekhar Kommineni
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> > For additional commands, e-mail: user-h...@cassandra.apache.org
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> For additional commands, e-mail: user-h...@cassandra.apache.org
>


Re: Installation

2018-07-09 Thread rajpal reddy
We have our infrastructure in cloud so opted for adding new dc with tar.gz then 
removed the old dc with package installation

Sent from my iPhone

> On Jul 9, 2018, at 2:23 PM, rajasekhar kommineni  wrote:
> 
> Hello All,
> 
> I have a cassandra cluster where package installation is done, I want to 
> convert it to tar.gz installation. Is there any procedure to follow.
> 
> Thanks,
> Rajasekhar Kommineni
> 
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
> For additional commands, e-mail: user-h...@cassandra.apache.org
> 

-
To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
For additional commands, e-mail: user-h...@cassandra.apache.org



Installation

2018-07-09 Thread rajasekhar kommineni
Hello All,

I have a cassandra cluster where package installation is done, I want to 
convert it to tar.gz installation. Is there any procedure to follow.

Thanks,
Rajasekhar Kommineni


-
To unsubscribe, e-mail: user-unsubscr...@cassandra.apache.org
For additional commands, e-mail: user-h...@cassandra.apache.org



Re: Cassandra installation best practices

2016-10-18 Thread kurt Greaves
Mehdi,

Nothing as detailed as Oracle's OFA currently exists. You can probably also
find some useful information here:
https://docs.datastax.com/en/landing_page/doc/landing_page/planning/planningAbout.html



Kurt Greaves
k...@instaclustr.com
www.instaclustr.com

On 18 October 2016 at 07:38, Mehdi Bada <mehdi.b...@dbi-services.com> wrote:

> Hi Brooke,
>
> Thank you for your advices. Finally, no technical standards (provided by
> DataStax or Apache) exists for deploying Cassandra in a production
> environment?
>
> In comparison with some RDBMS (Oracle, MySQL), some standards (OFA for
> instance) exists and are provided by Oracle.
>
> Best regards
> Mehdi
>
> ---
>
> *Mehdi Bada* | Consultant
> Phone: +41 32 422 96 00 | Mobile: +41 79 928 75 48 | Fax: +41 32 499 96 15
> dbi services, Rue de la Jeunesse 2, CH-2800 Delémont
> mehdi.b...@dbi-services.com
> www.dbi-services.com
>
>
>
> --
> *From: *"Brooke Jensen" <bro...@instaclustr.com>
> *To: *"user" <user@cassandra.apache.org>
> *Sent: *Tuesday, October 18, 2016 8:59:14 AM
> *Subject: *Re: Cassandra installation best practices
>
> Hi Mehdi,
> In addition, give some thought to your cluster topology. For maximum fault
> tolerance and availability I would recommend using at least three nodes
> with a replication factor of three. Ideally, you should also use Cassandra
> logical racks. This will reduce the risk of outage and make ongoing
> management of the cluster a lot easier.
>
>
> *Brooke Jensen*
> VP Technical Operations & Customer Services
> www.instaclustr.com | support.instaclustr.com
> <https://support.instaclustr.com/hc/en-us>
>
> This email has been sent on behalf of Instaclustr Limited (Australia) and
> Instaclustr Inc (USA). This email and any attachments may contain
> confidential and legally privileged information.  If you are not the
> intended recipient, do not copy or disclose its content, but please reply
> to this email immediately and highlight the error to the sender and then
> immediately delete the message.
>
> On 18 October 2016 at 04:02, Anuj Wadehra <anujw_2...@yahoo.co.in> wrote:
>
>> Hi Mehdi,
>>
>> You can refer https://docs.datastax.com/en/landing_page/doc/landing_page/
>> recommendedSettings.html .
>>
>> Thanks
>> Anuj
>>
>> On Mon, 17 Oct, 2016 at 10:20 PM, Mehdi Bada
>>
>> <mehdi.b...@dbi-services.com> wrote:
>> Hi all,
>>
>> It is exist some best practices when installing Cassandra on production
>> environment? Some standard to follow? For instance, the file system type
>> etc..
>>
>>
>


Re: Cassandra installation best practices

2016-10-18 Thread Mehdi Bada
Hi Brooke, 

Thank you for your advices. Finally, no technical standards (provided by 
DataStax or Apache) exists for deploying Cassandra in a production environment? 

In comparison with some RDBMS (Oracle, MySQL), some standards (OFA for 
instance) exists and are provided by Oracle. 

Best regards 
Mehdi 

--- 

Mehdi Bada | Consultant 
Phone: +41 32 422 96 00 | Mobile: +41 79 928 75 48 | Fax: +41 32 499 96 15 
dbi services, Rue de la Jeunesse 2, CH-2800 Delémont 
mehdi.b...@dbi-services.com 
www.dbi-services.com 




From: "Brooke Jensen" <bro...@instaclustr.com> 
To: "user" <user@cassandra.apache.org> 
Sent: Tuesday, October 18, 2016 8:59:14 AM 
Subject: Re: Cassandra installation best practices 

Hi Mehdi, 
In addition, give some thought to your cluster topology. For maximum fault 
tolerance and availability I would recommend using at least three nodes with a 
replication factor of three. Ideally, you should also use Cassandra logical 
racks. This will reduce the risk of outage and make ongoing management of the 
cluster a lot easier. 


Brooke Jensen 
VP Technical Operations & Customer Services 
www.instaclustr.com | support.instaclustr.com 

This email has been sent on behalf of Instaclustr Limited (Australia) and 
Instaclustr Inc (USA). This email and any attachments may contain confidential 
and legally privileged information. If you are not the intended recipient, do 
not copy or disclose its content, but please reply to this email immediately 
and highlight the error to the sender and then immediately delete the message. 

On 18 October 2016 at 04:02, Anuj Wadehra < anujw_2...@yahoo.co.in > wrote: 


Hi Mehdi, 

You can refer 
https://docs.datastax.com/en/landing_page/doc/landing_page/recommendedSettings.html
 . 

Thanks 
Anuj 

On Mon, 17 Oct, 2016 at 10:20 PM, Mehdi Bada 

BQ_BEGIN

< mehdi.b...@dbi-services.com > wrote: 
Hi all, 

It is exist some best practices when installing Cassandra on production 
environment? Some standard to follow? For instance, the file system type etc.. 





BQ_END




Re: Cassandra installation best practices

2016-10-18 Thread Brooke Jensen
Hi Mehdi,

In addition, give some thought to your cluster topology. For maximum fault
tolerance and availability I would recommend using at least three nodes
with a replication factor of three. Ideally, you should also use Cassandra
logical racks. This will reduce the risk of outage and make ongoing
management of the cluster a lot easier.


*Brooke Jensen*
VP Technical Operations & Customer Services
www.instaclustr.com | support.instaclustr.com


This email has been sent on behalf of Instaclustr Limited (Australia) and
Instaclustr Inc (USA). This email and any attachments may contain
confidential and legally privileged information.  If you are not the
intended recipient, do not copy or disclose its content, but please reply
to this email immediately and highlight the error to the sender and then
immediately delete the message.

On 18 October 2016 at 04:02, Anuj Wadehra  wrote:

> Hi Mehdi,
>
> You can refer https://docs.datastax.com/en/landing_page/doc/landing_page/
> recommendedSettings.html .
>
> Thanks
> Anuj
>
> On Mon, 17 Oct, 2016 at 10:20 PM, Mehdi Bada
>
>  wrote:
> Hi all,
>
> It is exist some best practices when installing Cassandra on production
> environment? Some standard to follow? For instance, the file system type
> etc..
>
>


Re: Cassandra installation best practices

2016-10-17 Thread Anuj Wadehra
Hi Mehdi,
You can refer 
https://docs.datastax.com/en/landing_page/doc/landing_page/recommendedSettings.html
 .
ThanksAnuj
On Mon, 17 Oct, 2016 at 10:20 PM, Mehdi Bada
 wrote:   Hi all, 

It is exist some best practices when installing Cassandra on production 
environment? Some standard to follow? For instance, the file system type etc..

  


Re: Cassandra installation best practices

2016-10-17 Thread Vladimir Yudovin
Hi,



you can take a look on 
http://docs.datastax.com/en/landing_page/doc/landing_page/recommendedSettingsLinux.html



Regarding file system type I guess ext4 is good enough. (Though RedHat now use 
XFS as default FS).



Best regards, Vladimir Yudovin, 

Winguzone - Hosted Cloud Cassandra on Azure and SoftLayer.
Launch your cluster in minutes.






 On Mon, 17 Oct 2016 12:50:15 -0400Mehdi Bada 
mehdi.b...@dbi-services.com wrote 




Hi all, 

 

It is exist some best practices when installing Cassandra on production 
environment? Some standard to follow? For instance, the file system type etc.. 

 

 








Cassandra installation best practices

2016-10-17 Thread Mehdi Bada
Hi all, 

It is exist some best practices when installing Cassandra on production 
environment? Some standard to follow? For instance, the file system type etc..




Re: Using CCM with Opscenter and manual agent installation

2016-01-11 Thread Giampaolo Trapasso
> I believe the issue is just jmx_host needing to be set to 'localhost'
Yes, that solved. Thanks!

giampaolo


2016-01-08 5:17 GMT+01:00 Nick Bailey :

> stomp_interface is the address to connect back to the central OpsCenter
> daemon with, so 127.0.0.1 should be correct. I believe the issue is just
> jmx_host needing to be set to 'localhost'
>
> On Thu, Jan 7, 2016 at 8:50 PM, Michael Shuler 
> wrote:
>
>> On 01/07/2016 08:46 PM, Michael Shuler wrote:
>> > I'm not sure exactly what that service is, but if all 4 nodes (which are
>> > all really localhost aliases) are attempting to bind to the same IP:port
>> > for that stomp connection, they could be stepping on one another. Should
>> > those be 127.0.0.1 for node1, 127.0.0.12 for node2, etc.?
>>
>> Since accurate typing is eluding me..
>>
>> Should the stomp connection be 127.0.0.1 for node1, 127.0.0.2 for node2,
>> 127.0.0.3 for node3, 127.0.0.4 for node4?
>>
>> --
>> :)
>> Michael
>>
>
>


Re: Using CCM with Opscenter and manual agent installation

2016-01-07 Thread Giampaolo Trapasso
Thanks Michael for the reply. I'm quite new to Cassandra, so it make sense
to explain the use case. I just want to try different choices of data
modelling and compare number of reads and writes. At the moment I'm not
interested in a real stress test, I just want to understand implications of
my choices, and, of course want to see OpsCenter in action. I thought that
CCM+OpsCenter combo was good as choice. Do you think that there's something
else that I can try? Thank you in advance.

giampaolo





2016-01-07 19:24 GMT+01:00 Michael Shuler :

> On 01/07/2016 12:22 PM, Michael Shuler wrote:
> >> [, ,  > 127.0.0.2='-4611686018427387904'>,  127.0.0.1='-9223372036854775808'>]
> >
> > A couple of those, .4 and .2 are identical.
>
> Sorry, they are signed, so they are unique. (bad me.) Keep digging, I
> guess.
>
> --
> Michael
>


Re: Using CCM with Opscenter and manual agent installation

2016-01-07 Thread Nick Bailey
Cassandra switched jmx to only bind to localhost, so I believe you just
need to change jmx_host to localhost for all conf files.

On Thu, Jan 7, 2016 at 4:48 PM, Giampaolo Trapasso <
giampaolo.trapa...@radicalbit.io> wrote:

> Thanks Michael for the reply. I'm quite new to Cassandra, so it make sense
> to explain the use case. I just want to try different choices of data
> modelling and compare number of reads and writes. At the moment I'm not
> interested in a real stress test, I just want to understand implications of
> my choices, and, of course want to see OpsCenter in action. I thought that
> CCM+OpsCenter combo was good as choice. Do you think that there's something
> else that I can try? Thank you in advance.
>
> giampaolo
>
>
>
>
>
> 2016-01-07 19:24 GMT+01:00 Michael Shuler :
>
>> On 01/07/2016 12:22 PM, Michael Shuler wrote:
>> >> [, , > > 127.0.0.2='-4611686018427387904'>, > 127.0.0.1='-9223372036854775808'>]
>> >
>> > A couple of those, .4 and .2 are identical.
>>
>> Sorry, they are signed, so they are unique. (bad me.) Keep digging, I
>> guess.
>>
>> --
>> Michael
>>
>
>


Re: Using CCM with Opscenter and manual agent installation

2016-01-07 Thread Michael Shuler
On 01/07/2016 08:46 PM, Michael Shuler wrote:
> I'm not sure exactly what that service is, but if all 4 nodes (which are
> all really localhost aliases) are attempting to bind to the same IP:port
> for that stomp connection, they could be stepping on one another. Should
> those be 127.0.0.1 for node1, 127.0.0.12 for node2, etc.?

Since accurate typing is eluding me..

Should the stomp connection be 127.0.0.1 for node1, 127.0.0.2 for node2,
127.0.0.3 for node3, 127.0.0.4 for node4?

-- 
:)
Michael


Re: Using CCM with Opscenter and manual agent installation

2016-01-07 Thread Michael Shuler
On 01/07/2016 02:09 AM, Giampaolo Trapasso wrote:
> I've configured all the four agents. For example /agent3/ configuration is
> 
> |[Giampaolo]: ~/opscenter/> cat agent3/conf/address.yaml stomp_interface:
> "127.0.0.1" agent_rpc_interface: 127.0.0.3 jmx_host: 127.0.0.3 jmx_port:
> 7300 |

This looks suspect. Each agent is configured for
stomp_interface:"127.0.0.1"?

I'm not sure exactly what that service is, but if all 4 nodes (which are
all really localhost aliases) are attempting to bind to the same IP:port
for that stomp connection, they could be stepping on one another. Should
those be 127.0.0.1 for node1, 127.0.0.12 for node2, etc.?

-- 
Michael



Re: Using CCM with Opscenter and manual agent installation

2016-01-07 Thread Nick Bailey
stomp_interface is the address to connect back to the central OpsCenter
daemon with, so 127.0.0.1 should be correct. I believe the issue is just
jmx_host needing to be set to 'localhost'

On Thu, Jan 7, 2016 at 8:50 PM, Michael Shuler 
wrote:

> On 01/07/2016 08:46 PM, Michael Shuler wrote:
> > I'm not sure exactly what that service is, but if all 4 nodes (which are
> > all really localhost aliases) are attempting to bind to the same IP:port
> > for that stomp connection, they could be stepping on one another. Should
> > those be 127.0.0.1 for node1, 127.0.0.12 for node2, etc.?
>
> Since accurate typing is eluding me..
>
> Should the stomp connection be 127.0.0.1 for node1, 127.0.0.2 for node2,
> 127.0.0.3 for node3, 127.0.0.4 for node4?
>
> --
> :)
> Michael
>


Re: Using CCM with Opscenter and manual agent installation

2016-01-07 Thread Michael Shuler
On 01/07/2016 10:17 PM, Nick Bailey wrote:
> stomp_interface is the address to connect back to the central OpsCenter
> daemon with, so 127.0.0.1 should be correct. I believe the issue is just
> jmx_host needing to be set to 'localhost'

This indeed looks promising, thanks Nick!

mshuler@hana:~$ ccm status
Cluster: 'test'
---
node1: UP
node3: UP
node2: UP
mshuler@hana:~$ netstat -ltunp|egrep '7.00'|grep java
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp0  0 127.0.0.1:7100  0.0.0.0:*
LISTEN  19006/java
tcp0  0 127.0.0.1:7200  0.0.0.0:*
LISTEN  18994/java
tcp0  0 127.0.0.1:7300  0.0.0.0:*
LISTEN  19021/java
tcp0  0 127.0.0.3:7000  0.0.0.0:*
LISTEN  19021/java
tcp0  0 127.0.0.2:7000  0.0.0.0:*
LISTEN  18994/java
tcp0  0 127.0.0.1:7000  0.0.0.0:*
LISTEN  19006/java

-- 
Kind regards,
Michael


Re: cassandra installation

2015-06-09 Thread ICHIBA Sara
cool , thank you for the suggestion.

2015-06-09 17:40 GMT+02:00 Carlos Rolo r...@pythian.com:

 (Some self-promotion here)

 You can follow this blog to help you out:
 http://www.pythian.com/blog/from-0-to-cassandra-an-exhaustive-approach-to-installing-cassandra/

 Regards,

 Carlos Juzarte Rolo
 Cassandra Consultant

 Pythian - Love your data

 rolo@pythian | Twitter: cjrolo | Linkedin: *linkedin.com/in/carlosjuzarterolo
 http://linkedin.com/in/carlosjuzarterolo*
 Mobile: +31 6 159 61 814 | Tel: +1 613 565 8696 x1649
 www.pythian.com

 On Tue, Jun 9, 2015 at 5:38 PM, ICHIBA Sara ichi.s...@gmail.com wrote:

 Ok thank you very much. I got my answer :)

 2015-06-09 17:34 GMT+02:00 Alex Popescu al...@datastax.com:

 The JVM is the runtime platform for Cassandra. You can use any driver
 with it (there's no default driver). DataStax provides quite a few open
 source drivers [1] and there are also community maintained drivers [2]

 [1]: https://github.com/datastax/

 [2]: http://planetcassandra.org/client-drivers-tools/

 On Tue, Jun 9, 2015 at 8:26 AM, ICHIBA Sara ichi.s...@gmail.com wrote:

 hey there,

 In order to install cassandra, java has to be installed first. is that
 mean that the default driver of cassandra is java? what if we wanna use the
 cpp driver?

 P.S 1: my questions might be so dump, but I will really appreciate an
 answer.
 PS 2: I'm intern and i'm completely new to cassandra so...




 --
 Bests,

 Alex Popescu | @al3xandru
 Sen. Product Manager @ DataStax




 --






Re: cassandra installation

2015-06-09 Thread ICHIBA Sara
Ok thank you very much. I got my answer :)

2015-06-09 17:34 GMT+02:00 Alex Popescu al...@datastax.com:

 The JVM is the runtime platform for Cassandra. You can use any driver with
 it (there's no default driver). DataStax provides quite a few open source
 drivers [1] and there are also community maintained drivers [2]

 [1]: https://github.com/datastax/

 [2]: http://planetcassandra.org/client-drivers-tools/

 On Tue, Jun 9, 2015 at 8:26 AM, ICHIBA Sara ichi.s...@gmail.com wrote:

 hey there,

 In order to install cassandra, java has to be installed first. is that
 mean that the default driver of cassandra is java? what if we wanna use the
 cpp driver?

 P.S 1: my questions might be so dump, but I will really appreciate an
 answer.
 PS 2: I'm intern and i'm completely new to cassandra so...




 --
 Bests,

 Alex Popescu | @al3xandru
 Sen. Product Manager @ DataStax




cassandra installation

2015-06-09 Thread ICHIBA Sara
hey there,

In order to install cassandra, java has to be installed first. is that mean
that the default driver of cassandra is java? what if we wanna use the cpp
driver?

P.S 1: my questions might be so dump, but I will really appreciate an
answer.
PS 2: I'm intern and i'm completely new to cassandra so...


Re: cassandra installation

2015-06-09 Thread Alex Popescu
The JVM is the runtime platform for Cassandra. You can use any driver with
it (there's no default driver). DataStax provides quite a few open source
drivers [1] and there are also community maintained drivers [2]

[1]: https://github.com/datastax/

[2]: http://planetcassandra.org/client-drivers-tools/

On Tue, Jun 9, 2015 at 8:26 AM, ICHIBA Sara ichi.s...@gmail.com wrote:

 hey there,

 In order to install cassandra, java has to be installed first. is that
 mean that the default driver of cassandra is java? what if we wanna use the
 cpp driver?

 P.S 1: my questions might be so dump, but I will really appreciate an
 answer.
 PS 2: I'm intern and i'm completely new to cassandra so...




-- 
Bests,

Alex Popescu | @al3xandru
Sen. Product Manager @ DataStax


Installation

2014-09-21 Thread Jim Xie
What is the best OS for Cassandra?

Can I install Cassandra into Ubuntu? If so, please tell me the installation
instruction.
Thanks!


Re: Installation

2014-09-21 Thread Patricia Gorla
Jim,

A wide variety of OSes can be used, but Linux is the most popular.

You can start here for installation instructions:
http://www.datastax.com/documentation/getting_started/doc/getting_started/gsInstallCassandra.html
.

-- 
Patricia Gorla
@patriciagorla

Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com http://thelastpickle.com


Cassandra Installation

2014-08-26 Thread Malay Nilabh
Hi

I want to setup one node Cassandra cluster on my Ubuntu machine which has Java 
1.7 along with oracle jdk and I have already downloaded the cassandra 2.0 tar 
file, so I need full document to setup single node Cassandra cluster please 
guide me through this.

Thanks  Regards
Malay Nilabh
BIDW BU/ Big Data CoE
LT Infotech Ltd, Hinjewadi,Pune
[cid:image001.gif@01CFC159.38A37400]: +91-20-66571746
[cid:image002.png@01CFC159.38A37400]+91-73-879-00727
Email: malay.nil...@lntinfotech.commailto:malay.nil...@lntinfotech.com
|| Save Paper - Save Trees ||



The contents of this e-mail and any attachment(s) may contain confidential or 
privileged information for the intended recipient(s). Unintended recipients are 
prohibited from taking action on the basis of information in this e-mail and 
using or disseminating the information, and must notify the sender and delete 
it from their system. LT Infotech will not accept responsibility or liability 
for the accuracy or completeness of, or the presence of any virus or disabling 
code in this e-mail


Re: Cassandra Installation

2014-08-26 Thread Umang Shah
Hi Malay,

Have a look at this video, this will give you very clear instruction how
you can achieve your output.

https://www.youtube.com/watch?v=Wohi9B-1Omc

Thanks,
Umang Shah
Pentaho BI-ETL Developer
shahuma...@gmail.com


On Tue, Aug 26, 2014 at 12:41 PM, Malay Nilabh malay.nil...@lntinfotech.com
 wrote:

  Hi



 I want to setup one node Cassandra cluster on my Ubuntu machine which has
 Java 1.7 along with oracle jdk and I have already downloaded the cassandra
 2.0 tar file, so I need full document to setup single node Cassandra
 cluster please guide me through this.



 Thanks  Regards

 *Malay Nilabh*

 BIDW BU/ Big Data CoE

 LT Infotech Ltd, Hinjewadi,Pune

 [image: Description: image001]: +91-20-66571746

 [image: Description: Description: Description: Description:
 cid:image002.png@01CF1EAD.959B9290]+91-73-879-00727

 Email: malay.nil...@lntinfotech.com

 *|| Save Paper - Save Trees || *



 --
 The contents of this e-mail and any attachment(s) may contain confidential
 or privileged information for the intended recipient(s). Unintended
 recipients are prohibited from taking action on the basis of information in
 this e-mail and using or disseminating the information, and must notify the
 sender and delete it from their system. LT Infotech will not accept
 responsibility or liability for the accuracy or completeness of, or the
 presence of any virus or disabling code in this e-mail




-- 
Regards,
Umang V.Shah
+919886829019


Cassandra DSC installation fail due to some python dependecies. How to rectify ?

2014-02-17 Thread Ertio Lew
I am trying to install cassandra dsc20 but the installation fails due to
some python dependecies. How could I make this work ?


root@server1:~# sudo apt-get install dsc20
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  cassandra libjna-java libopts25 ntp python python-minimal
python-support python2.7
  python2.7-minimal
Suggested packages:
  libjna-java-doc ntp-doc apparmor python-doc python-tk python2.7-doc
binutils binfmt-support
Recommended packages:
  perl
The following NEW packages will be installed:
  cassandra dsc20 libjna-java libopts25 ntp python python-minimal
python-support python2.7
  python2.7-minimal
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.1 MB of archives.
After this operation, 23.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://debian.datastax.com/community/ stable/main cassandra all
2.0.5 [14.3 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ raring/main libopts25 amd64
1:5.17.1-1ubuntu2 [62.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ raring/main ntp amd64
1:4.2.6.p5+dfsg-2ubuntu1 [614 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ raring/universe libjna-java
amd64 3.2.7-4 [416 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ raring-security/main
python2.7-minimal amd64 2.7.4-2ubuntu3.2 [1223 kB]
Get:6 http://debian.datastax.com/community/ stable/main dsc20 all
2.0.5-1 [1302 B]
Get:7 http://us.archive.ubuntu.com/ubuntu/ raring-security/main
python2.7 amd64 2.7.4-2ubuntu3.2 [263 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ raring/main python-minimal
amd64 2.7.4-0ubuntu1 [30.8 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ raring/main python amd64
2.7.4-0ubuntu1 [169 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ raring/universe
python-support all 1.0.15 [26.7 kB]
Fetched 17.1 MB in 3s (4842 kB/s)
Selecting previously unselected package libopts25.
(Reading database ... 27688 files and directories currently installed.)
Unpacking libopts25 (from .../libopts25_1%3a5.17.1-1ubuntu2_amd64.deb) ...
Selecting previously unselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.6.p5+dfsg-2ubuntu1_amd64.deb) ...
Selecting previously unselected package libjna-java.
Unpacking libjna-java (from .../libjna-java_3.2.7-4_amd64.deb) ...
Selecting previously unselected package python2.7-minimal.
Unpacking python2.7-minimal (from
.../python2.7-minimal_2.7.4-2ubuntu3.2_amd64.deb) ...
Selecting previously unselected package python2.7.
Unpacking python2.7 (from .../python2.7_2.7.4-2ubuntu3.2_amd64.deb) ...
Selecting previously unselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.7.4-0ubuntu1_amd64.deb) ...
Selecting previously unselected package python.
Unpacking python (from .../python_2.7.4-0ubuntu1_amd64.deb) ...
Selecting previously unselected package python-support.
Unpacking python-support (from .../python-support_1.0.15_all.deb) ...
Selecting previously unselected package cassandra.
Unpacking cassandra (from .../cassandra_2.0.5_all.deb) ...
Selecting previously unselected package dsc20.
Unpacking dsc20 (from .../archives/dsc20_2.0.5-1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Setting up libopts25 (1:5.17.1-1ubuntu2) ...
Setting up ntp (1:4.2.6.p5+dfsg-2ubuntu1) ...
 * Starting NTP server ntpd
 [ OK ]
Setting up libjna-java (3.2.7-4) ...
Setting up python2.7-minimal (2.7.4-2ubuntu3.2) ...
# Empty sitecustomize.py to avoid a dangling symlink
Traceback (most recent call last):
  File /usr/lib/python2.7/py_compile.py, line 170, in module
sys.exit(main())
  File /usr/lib/python2.7/py_compile.py, line 162, in main
compile(filename, doraise=True)
  File /usr/lib/python2.7/py_compile.py, line 106, in compile
with open(file, 'U') as f:
IOError: [Errno 2] No such file or directory:
'/usr/lib/python2.7/sitecustomize.py'
dpkg: error processing python2.7-minimal (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.7:
 python2.7 depends on python2.7-minimal (= 2.7.4-2ubuntu3.2); however:
  Package python2.7-minimal is not configured yet.

dpkg: error processing python2.7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-minimal:
 python-minimal depends on python2.7-minimal (= 2.7.4-1~); however:
  Package python2.7-minimal is not configured yet.

dpkg: error processing python-minimal (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python:
 python depends on python2.7 (= 2.7.4-1~); however:
  Package python2.7 is not configured yet.
 python depends on python-minimal (= 2.7.4-0ubuntu1); however:
  Package python-minimal is not configured yet.

dpkg: error processing python (--configure):
 dependency problems

Re: Cassandra DSC installation fail due to some python dependecies. How to rectify ?

2014-02-17 Thread Al Tobey
This is the root cause:

IOError: [Errno 2] No such file or directory:
'/usr/lib/python2.7/sitecustomize.py'

Off the top of my head, you may be able to work around this packaging issue
in Ubuntu with:

sudo touch /usr/lib/python2.7/sitecustomize.py
sudo apt-get -f install

Then resume re-run your original apt command.

-Al Tobey
Open Source Mechanic
Datastax



On Mon, Feb 17, 2014 at 3:21 PM, Ertio Lew ertio...@gmail.com wrote:

 I am trying to install cassandra dsc20 but the installation fails due to
 some python dependecies. How could I make this work ?


 root@server1:~# sudo apt-get install dsc20
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 The following extra packages will be installed:
   cassandra libjna-java libopts25 ntp python python-minimal python-support 
 python2.7
   python2.7-minimal
 Suggested packages:
   libjna-java-doc ntp-doc apparmor python-doc python-tk python2.7-doc 
 binutils binfmt-support
 Recommended packages:
   perl
 The following NEW packages will be installed:
   cassandra dsc20 libjna-java libopts25 ntp python python-minimal 
 python-support python2.7
   python2.7-minimal
 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
 Need to get 17.1 MB of archives.
 After this operation, 23.2 MB of additional disk space will be used.
 Do you want to continue [Y/n]? y
 Get:1 http://debian.datastax.com/community/ stable/main cassandra all 2.0.5 
 [14.3 MB]
 Get:2 http://us.archive.ubuntu.com/ubuntu/ raring/main libopts25 amd64 
 1:5.17.1-1ubuntu2 [62.2 kB]
 Get:3 http://us.archive.ubuntu.com/ubuntu/ raring/main ntp amd64 
 1:4.2.6.p5+dfsg-2ubuntu1 [614 kB]
 Get:4 http://us.archive.ubuntu.com/ubuntu/ raring/universe libjna-java amd64 
 3.2.7-4 [416 kB]
 Get:5 http://us.archive.ubuntu.com/ubuntu/ raring-security/main 
 python2.7-minimal amd64 2.7.4-2ubuntu3.2 [1223 kB]
 Get:6 http://debian.datastax.com/community/ stable/main dsc20 all 2.0.5-1 
 [1302 B]
 Get:7 http://us.archive.ubuntu.com/ubuntu/ raring-security/main python2.7 
 amd64 2.7.4-2ubuntu3.2 [263 kB]
 Get:8 http://us.archive.ubuntu.com/ubuntu/ raring/main python-minimal amd64 
 2.7.4-0ubuntu1 [30.8 kB]
 Get:9 http://us.archive.ubuntu.com/ubuntu/ raring/main python amd64 
 2.7.4-0ubuntu1 [169 kB]
 Get:10 http://us.archive.ubuntu.com/ubuntu/ raring/universe python-support 
 all 1.0.15 [26.7 kB]
 Fetched 17.1 MB in 3s (4842 kB/s)
 Selecting previously unselected package libopts25.
 (Reading database ... 27688 files and directories currently installed.)
 Unpacking libopts25 (from .../libopts25_1%3a5.17.1-1ubuntu2_amd64.deb) ...
 Selecting previously unselected package ntp.
 Unpacking ntp (from .../ntp_1%3a4.2.6.p5+dfsg-2ubuntu1_amd64.deb) ...
 Selecting previously unselected package libjna-java.
 Unpacking libjna-java (from .../libjna-java_3.2.7-4_amd64.deb) ...
 Selecting previously unselected package python2.7-minimal.
 Unpacking python2.7-minimal (from 
 .../python2.7-minimal_2.7.4-2ubuntu3.2_amd64.deb) ...
 Selecting previously unselected package python2.7.
 Unpacking python2.7 (from .../python2.7_2.7.4-2ubuntu3.2_amd64.deb) ...
 Selecting previously unselected package python-minimal.
 Unpacking python-minimal (from .../python-minimal_2.7.4-0ubuntu1_amd64.deb) 
 ...
 Selecting previously unselected package python.
 Unpacking python (from .../python_2.7.4-0ubuntu1_amd64.deb) ...
 Selecting previously unselected package python-support.
 Unpacking python-support (from .../python-support_1.0.15_all.deb) ...
 Selecting previously unselected package cassandra.
 Unpacking cassandra (from .../cassandra_2.0.5_all.deb) ...
 Selecting previously unselected package dsc20.
 Unpacking dsc20 (from .../archives/dsc20_2.0.5-1_all.deb) ...
 Processing triggers for man-db ...
 Processing triggers for desktop-file-utils ...
 Setting up libopts25 (1:5.17.1-1ubuntu2) ...
 Setting up ntp (1:4.2.6.p5+dfsg-2ubuntu1) ...
  * Starting NTP server ntpd   
   [ OK ]
 Setting up libjna-java (3.2.7-4) ...
 Setting up python2.7-minimal (2.7.4-2ubuntu3.2) ...
 # Empty sitecustomize.py to avoid a dangling symlink
 Traceback (most recent call last):
   File /usr/lib/python2.7/py_compile.py, line 170, in module
 sys.exit(main())
   File /usr/lib/python2.7/py_compile.py, line 162, in main
 compile(filename, doraise=True)
   File /usr/lib/python2.7/py_compile.py, line 106, in compile
 with open(file, 'U') as f:
 IOError: [Errno 2] No such file or directory: 
 '/usr/lib/python2.7/sitecustomize.py'
 dpkg: error processing python2.7-minimal (--configure):
  subprocess installed post-installation script returned error exit status 1
 dpkg: dependency problems prevent configuration of python2.7:
  python2.7 depends on python2.7-minimal (= 2.7.4-2ubuntu3.2); however:
   Package python2.7-minimal is not configured yet.

 dpkg: error processing python2.7 (--configure):
  dependency problems - leaving unconfigured
 dpkg: dependency problems

Native LZ4 compressor installation

2013-02-28 Thread Jabbar
Hello,

I am experimenting with cassandra 1.2.2 and are interested in using the
native LZ4 compressor in linux. I have built the linux library but aren't
sure how to tell tell cassandra to use it.

Do I just drop it in the cassandra lib directory and change the compression
for my column family? How will I know if the native compressor is being
used?

I'm particularly excited about this because it means the CPU's on our
servers will have spare CPU cycles due to LZ4 compressor being faster than
the snappy compressor.


-- 
Thanks

 A Jabbar Azam


Re: Native LZ4 compressor installation

2013-02-28 Thread Jabbar
lz4-1.1.0.jar 
http://repo1.maven.org/maven2/net/jpountz/lz4/lz4/1.1.0/lz4-1.1.0.jar
   is used by Cassandra. I've just found the native library embedded
in the jar file. I'll
check in the morning if some sort confirmation is shown.



On 28 February 2013 20:42, Jabbar aja...@gmail.com wrote:

 Hello,

 I am experimenting with cassandra 1.2.2 and are interested in using the
 native LZ4 compressor in linux. I have built the linux library but aren't
 sure how to tell tell cassandra to use it.

 Do I just drop it in the cassandra lib directory and change the
 compression for my column family? How will I know if the native compressor
 is being used?

 I'm particularly excited about this because it means the CPU's on our
 servers will have spare CPU cycles due to LZ4 compressor being faster than
 the snappy compressor.


 --
 Thanks

  A Jabbar Azam




-- 
Thanks

 A Jabbar Azam


Re: Single Node Cassandra Installation

2012-11-12 Thread Rob Coli
On Sat, Nov 10, 2012 at 6:16 PM, Drew Kutcharian d...@venarc.com wrote:
 Thanks Rob, this makes sense. We only have one rack at this point, so I think 
 it'd be better to start with PropertyFileSnitch to make Cassandra think that 
 these nodes each are in a different rack without having to put them on 
 different subnets. And I will have more flexibility (at the cost of keeping 
 the property file in sync) when it comes to growth.

Many people run successfully with PFS, and as you say it provides
flexibility if you get a second rack. The overhead versus a
non-rack-aware snitch is not significant.

However if you are careful you should be able to switch to PFS or
another rack aware snitch with no problems when you actually need
it... :)

=Rob

-- 
=Robert Coli
AIMGTALK - rc...@palominodb.com
YAHOO - rcoli.palominob
SKYPE - rcoli_palominodb


Re: Single Node Cassandra Installation

2012-11-10 Thread Drew Kutcharian
Thanks Rob, this makes sense. We only have one rack at this point, so I think 
it'd be better to start with PropertyFileSnitch to make Cassandra think that 
these nodes each are in a different rack without having to put them on 
different subnets. And I will have more flexibility (at the cost of keeping the 
property file in sync) when it comes to growth. What do you think?

-- Drew


On Nov 5, 2012, at 7:50 PM, Rob Coli rc...@palominodb.com wrote:

 On Mon, Nov 5, 2012 at 12:23 PM, Drew Kutcharian d...@venarc.com wrote:
 Switching from SimpleStrategy to RackAware can be a pain.
 
 Can you elaborate a bit? What would be the pain point?
 
 If you don't maintain the same replica placement vis a vis nodes on
 your cluster, you have to dump and reload.
 
 Simple example, 6 node cluster RF=3 :
 
 SimpleSnitch : A B C D E F
 
 Data for natural range of A is also on B and C, the next nodes in the ring.
 
 RackAwareSnitches : A B C D E F
 racks they are in  :  1 1  2  2 3 3
 
 Data for natural range of A is also on C and E, because despite not
 being the next nodes in the RING, they are the first nodes in the next
 rack.
 
 If however you go from simple to rack aware and put your nodes in racks like :
 
 A B C D E F
 1 2 3 1 2 3
 
 Then you have the same replica placement that SimpleStrategy gives you
 and can safely switch strategies/snitches on an existing cluster. Data
 for A is on B and C, on the same hosts, but for different reasons. Use
 nodetool getendpoints to test.
 
 =Rob
 
 -- 
 =Robert Coli
 AIMGTALK - rc...@palominodb.com
 YAHOO - rcoli.palominob
 SKYPE - rcoli_palominodb



Single Node Cassandra Installation

2012-11-05 Thread Drew Kutcharian
Hey Guys,

What should I look out for when deploying a single node installation? We want 
to launch a product that uses Cassandra and since we are going to have very 
little load initially, we were thinking of just going live with one node and 
eventually add more nodes as the load (hopefully) grows. Is this practice 
recommended?

Thanks,

Drew

Re: Single Node Cassandra Installation

2012-11-05 Thread zGreenfelder
On Mon, Nov 5, 2012 at 12:49 PM, Drew Kutcharian d...@venarc.com wrote:
 Hey Guys,

 What should I look out for when deploying a single node installation? We want 
 to launch a product that uses Cassandra and since we are going to have very 
 little load initially, we were thinking of just going live with one node and 
 eventually add more nodes as the load (hopefully) grows. Is this practice 
 recommended?


I'm far from an expert and single node should be fine for development,
but for your production site, I'd suggest going with a minimal 'real'
cluster (2-3 nodes).   in my limited experience with hadoop, single
node is significantly different from multinode, and I wouldn't want to
start from a position where config  is certain to have to
fundamentally change as opposed to just grow.   But that's just my
first guess, you could try a dev move from a single node to a dual
node to find out how difficult it might be.


-- 
Even the Magic 8 ball has an opinion on email clients: Outlook not so good.


Re: Single Node Cassandra Installation

2012-11-05 Thread Michael Kjellman
Should be fine if one node can deal with your read and write load.
Switching from SimpleStrategy to RackAware can be a pain. That¹s a
potential growth point way down the line (if you ever have your nodes on
different switches). You might want to just setup your keyspace as
RackAware if you intend to keep this keyspace in production in the future.

Redistributing load could take a while if your one node gets really
loaded, but obviously there are well documented ways to fix this with
nodetool.

I'd make sure you start off your single node with a token of 0 so it's
easy to add more nodes later.

Also, with a single node you will have no replication so I assume this is
okay in your production environment.

On 11/5/12 9:59 AM, zGreenfelder zgreenfel...@gmail.com wrote:

On Mon, Nov 5, 2012 at 12:49 PM, Drew Kutcharian d...@venarc.com wrote:
 Hey Guys,

 What should I look out for when deploying a single node installation?
We want to launch a product that uses Cassandra and since we are going
to have very little load initially, we were thinking of just going live
with one node and eventually add more nodes as the load (hopefully)
grows. Is this practice recommended?


I'm far from an expert and single node should be fine for development,
but for your production site, I'd suggest going with a minimal 'real'
cluster (2-3 nodes).   in my limited experience with hadoop, single
node is significantly different from multinode, and I wouldn't want to
start from a position where config  is certain to have to
fundamentally change as opposed to just grow.   But that's just my
first guess, you could try a dev move from a single node to a dual
node to find out how difficult it might be.


-- 
Even the Magic 8 ball has an opinion on email clients: Outlook not so
good.


'Like' us on Facebook for exclusive content and other resources on all 
Barracuda Networks solutions.
Visit http://barracudanetworks.com/facebook




Re: Single Node Cassandra Installation

2012-11-05 Thread Drew Kutcharian
I understand that with one node we will have no HA, but since we are just 
starting out we wanted to see what would be the bare minimum to go to 
production with and as we see traction we can add more nodes.

 Switching from SimpleStrategy to RackAware can be a pain.

Can you elaborate a bit? What would be the pain point?




On Nov 5, 2012, at 10:12 AM, Michael Kjellman mkjell...@barracuda.com wrote:

 Should be fine if one node can deal with your read and write load.
 Switching from SimpleStrategy to RackAware can be a pain. That¹s a
 potential growth point way down the line (if you ever have your nodes on
 different switches). You might want to just setup your keyspace as
 RackAware if you intend to keep this keyspace in production in the future.
 
 Redistributing load could take a while if your one node gets really
 loaded, but obviously there are well documented ways to fix this with
 nodetool.
 
 I'd make sure you start off your single node with a token of 0 so it's
 easy to add more nodes later.
 
 Also, with a single node you will have no replication so I assume this is
 okay in your production environment.
 
 On 11/5/12 9:59 AM, zGreenfelder zgreenfel...@gmail.com wrote:
 
 On Mon, Nov 5, 2012 at 12:49 PM, Drew Kutcharian d...@venarc.com wrote:
 Hey Guys,
 
 What should I look out for when deploying a single node installation?
 We want to launch a product that uses Cassandra and since we are going
 to have very little load initially, we were thinking of just going live
 with one node and eventually add more nodes as the load (hopefully)
 grows. Is this practice recommended?
 
 
 I'm far from an expert and single node should be fine for development,
 but for your production site, I'd suggest going with a minimal 'real'
 cluster (2-3 nodes).   in my limited experience with hadoop, single
 node is significantly different from multinode, and I wouldn't want to
 start from a position where config  is certain to have to
 fundamentally change as opposed to just grow.   But that's just my
 first guess, you could try a dev move from a single node to a dual
 node to find out how difficult it might be.
 
 
 -- 
 Even the Magic 8 ball has an opinion on email clients: Outlook not so
 good.
 
 
 'Like' us on Facebook for exclusive content and other resources on all 
 Barracuda Networks solutions.
 Visit http://barracudanetworks.com/facebook
 
 



Re: Single Node Cassandra Installation

2012-11-05 Thread Rob Coli
On Mon, Nov 5, 2012 at 12:23 PM, Drew Kutcharian d...@venarc.com wrote:
 Switching from SimpleStrategy to RackAware can be a pain.

 Can you elaborate a bit? What would be the pain point?

If you don't maintain the same replica placement vis a vis nodes on
your cluster, you have to dump and reload.

Simple example, 6 node cluster RF=3 :

SimpleSnitch : A B C D E F

Data for natural range of A is also on B and C, the next nodes in the ring.

RackAwareSnitches : A B C D E F
racks they are in  :  1 1  2  2 3 3

Data for natural range of A is also on C and E, because despite not
being the next nodes in the RING, they are the first nodes in the next
rack.

If however you go from simple to rack aware and put your nodes in racks like :

A B C D E F
1 2 3 1 2 3

Then you have the same replica placement that SimpleStrategy gives you
and can safely switch strategies/snitches on an existing cluster. Data
for A is on B and C, on the same hosts, but for different reasons. Use
nodetool getendpoints to test.

=Rob

-- 
=Robert Coli
AIMGTALK - rc...@palominodb.com
YAHOO - rcoli.palominob
SKYPE - rcoli_palominodb


Re: Single Node Cassandra Installation

2012-03-19 Thread aaron morton
 Even more: if you enable read repair the chances of having bad writes 
 decreases for any further reads. This will make your cluster become faster 
 consistent again after some failure.
Under 1.0 the default RR probability was reduced to 10%. Because Hinted Handoff 
 was changed to also store hints for nodes that fail to respond to a write. 
Previously  it only storied hints for nodes that were down when the request 
started.

Cheers

-
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 18/03/2012, at 1:48 AM, R. Verlangen wrote:

  By default Cassandra tries to write to both nodes, always. Writes will only 
 fail (on a node) if it is down, and even then hinted handoff will attempt to 
 keep both nodes in sync when the troubled node comes back up. The point of 
 having two nodes is to have read and write availability in the face of 
 transient failure. 
 
 Even more: if you enable read repair the chances of having bad writes 
 decreases for any further reads. This will make your cluster become faster 
 consistent again after some failure.
 
 Also consider to use different CL's for different operations. E.g. the 
 Twitter timeline can miss some records, however if you would want to display 
 my bank account I would prefer to see the right thing: or a nice error 
 message. 
 
 2012/3/16 Ben Coverston ben.covers...@datastax.com
 Doing reads and writes at CL=1 with RF=2 N=2 does not imply that the reads 
 will be inconsistent. It's more complicated than the simple counting of 
 blocked replicas. It is easy to support the notion that it will be largely 
 consistent, in fact very consistent for most use cases.
 
 By default Cassandra tries to write to both nodes, always. Writes will only 
 fail (on a node) if it is down, and even then hinted handoff will attempt to 
 keep both nodes in sync when the troubled node comes back up. The point of 
 having two nodes is to have read and write availability in the face of 
 transient failure.
 
 If you are interested there is a good exposition of what 'consistency' means 
 in a system like Cassandra from the link below[1].
 
 [1]
 http://www.eecs.berkeley.edu/~pbailis/projects/pbs/
 
 
 On Fri, Mar 16, 2012 at 6:50 AM, Thomas van Neerijnen t...@bossastudios.com 
 wrote:
 You'll need to either read or write at at least quorum to get consistent data 
 from the cluster so you may as well do both.
 Now that you mention it, I was wrong about downtime, with a two node cluster 
 reads or writes at quorum will mean both nodes need to be online. Perhaps you 
 could have an emergency switch in your application which flips to consistency 
 of 1 if one of your Cassandra servers goes down? Just make sure it's set back 
 to quorum when the second one returns or again you could end up with 
 inconsistent data.
 
 
 On Fri, Mar 16, 2012 at 2:04 AM, Drew Kutcharian d...@venarc.com wrote:
 Thanks for the comments, I guess I will end up doing a 2 node cluster with 
 replica count 2 and read consistency 1.
 
 -- Drew
 
 
 
 On Mar 15, 2012, at 4:20 PM, Thomas van Neerijnen wrote:
 
 So long as data loss and downtime are acceptable risks a one node cluster is 
 fine.
 Personally this is usually only acceptable on my workstation, even my dev 
 environment is redundant, because servers fail, usually when you least want 
 them to, like for example when you've decided to save costs by waiting 
 before implementing redundancy. Could a failure end up costing you more than 
 you've saved? I'd rather get cheaper servers (maybe even used off ebay??) so 
 I could have at least two of them.
 
 If you do go with a one node solution, altho I haven't tried it myself Priam 
 looks like a good place to start for backups, otherwise roll your own with 
 incremental snapshotting turned on and a watch on the snapshot directory. 
 Storage on something like S3 or Cloud Files is very cheap so there's no good 
 excuse for no backups.
 
 On Thu, Mar 15, 2012 at 7:12 PM, R. Verlangen ro...@us2.nl wrote:
 Hi Drew,
 
 One other disadvantage is the lack of consistency level and replication. 
 Both ware part of the high availability / redundancy. So you would really 
 need to backup your single-node-cluster to some other external location.
 
 Good luck!
 
 
 2012/3/15 Drew Kutcharian d...@venarc.com
 Hi,
 
 We are working on a project that initially is going to have very little 
 data, but we would like to use Cassandra to ease the future scalability. Due 
 to budget constraints, we were thinking to run a single node Cassandra for 
 now and then add more nodes as required.
 
 I was wondering if it is recommended to run a single node cassandra in 
 production? Are there any other issues besides lack of high availability?
 
 Thanks,
 
 Drew
 
 
 
 
 
 
 
 
 -- 
 Ben Coverston
 DataStax -- The Apache Cassandra Company
 
 



Re: Single Node Cassandra Installation

2012-03-17 Thread R. Verlangen
 By default Cassandra tries to write to both nodes, always. Writes will
only fail (on a node) if it is down, and even then hinted handoff will
attempt to keep both nodes in sync when the troubled node comes back up.
The point of having two nodes is to have read and write availability in the
face of transient failure. 

Even more: if you enable read repair the chances of having bad writes
decreases for any further reads. This will make your cluster become faster
consistent again after some failure.

Also consider to use different CL's for different operations. E.g. the
Twitter timeline can miss some records, however if you would want to
display my bank account I would prefer to see the right thing: or a nice
error message.

2012/3/16 Ben Coverston ben.covers...@datastax.com

 Doing reads and writes at CL=1 with RF=2 N=2 does not imply that the reads
 will be inconsistent. It's more complicated than the simple counting of
 blocked replicas. It is easy to support the notion that it will be largely
 consistent, in fact very consistent for most use cases.

 By default Cassandra tries to write to both nodes, always. Writes will
 only fail (on a node) if it is down, and even then hinted handoff will
 attempt to keep both nodes in sync when the troubled node comes back up.
 The point of having two nodes is to have read and write availability in the
 face of transient failure.

 If you are interested there is a good exposition of what 'consistency'
 means in a system like Cassandra from the link below[1].

 [1]
 http://www.eecs.berkeley.edu/~pbailis/projects/pbs/


 On Fri, Mar 16, 2012 at 6:50 AM, Thomas van Neerijnen 
 t...@bossastudios.com wrote:

 You'll need to either read or write at at least quorum to get consistent
 data from the cluster so you may as well do both.
 Now that you mention it, I was wrong about downtime, with a two node
 cluster reads or writes at quorum will mean both nodes need to be online.
 Perhaps you could have an emergency switch in your application which flips
 to consistency of 1 if one of your Cassandra servers goes down? Just make
 sure it's set back to quorum when the second one returns or again you could
 end up with inconsistent data.


 On Fri, Mar 16, 2012 at 2:04 AM, Drew Kutcharian d...@venarc.com wrote:

 Thanks for the comments, I guess I will end up doing a 2 node cluster
 with replica count 2 and read consistency 1.

 -- Drew



 On Mar 15, 2012, at 4:20 PM, Thomas van Neerijnen wrote:

 So long as data loss and downtime are acceptable risks a one node
 cluster is fine.
 Personally this is usually only acceptable on my workstation, even my
 dev environment is redundant, because servers fail, usually when you least
 want them to, like for example when you've decided to save costs by waiting
 before implementing redundancy. Could a failure end up costing you more
 than you've saved? I'd rather get cheaper servers (maybe even used off
 ebay??) so I could have at least two of them.

 If you do go with a one node solution, altho I haven't tried it myself
 Priam looks like a good place to start for backups, otherwise roll your own
 with incremental snapshotting turned on and a watch on the snapshot
 directory. Storage on something like S3 or Cloud Files is very cheap so
 there's no good excuse for no backups.

 On Thu, Mar 15, 2012 at 7:12 PM, R. Verlangen ro...@us2.nl wrote:

 Hi Drew,

 One other disadvantage is the lack of consistency level and
 replication. Both ware part of the high availability / redundancy. So you
 would really need to backup your single-node-cluster to some other
 external location.

 Good luck!


 2012/3/15 Drew Kutcharian d...@venarc.com

 Hi,

 We are working on a project that initially is going to have very
 little data, but we would like to use Cassandra to ease the future
 scalability. Due to budget constraints, we were thinking to run a single
 node Cassandra for now and then add more nodes as required.

 I was wondering if it is recommended to run a single node cassandra in
 production? Are there any other issues besides lack of high availability?

 Thanks,

 Drew








 --
 Ben Coverston
 DataStax -- The Apache Cassandra Company




Re: Single Node Cassandra Installation

2012-03-16 Thread Thomas van Neerijnen
You'll need to either read or write at at least quorum to get consistent
data from the cluster so you may as well do both.
Now that you mention it, I was wrong about downtime, with a two node
cluster reads or writes at quorum will mean both nodes need to be online.
Perhaps you could have an emergency switch in your application which flips
to consistency of 1 if one of your Cassandra servers goes down? Just make
sure it's set back to quorum when the second one returns or again you could
end up with inconsistent data.

On Fri, Mar 16, 2012 at 2:04 AM, Drew Kutcharian d...@venarc.com wrote:

 Thanks for the comments, I guess I will end up doing a 2 node cluster with
 replica count 2 and read consistency 1.

 -- Drew



 On Mar 15, 2012, at 4:20 PM, Thomas van Neerijnen wrote:

 So long as data loss and downtime are acceptable risks a one node cluster
 is fine.
 Personally this is usually only acceptable on my workstation, even my dev
 environment is redundant, because servers fail, usually when you least want
 them to, like for example when you've decided to save costs by waiting
 before implementing redundancy. Could a failure end up costing you more
 than you've saved? I'd rather get cheaper servers (maybe even used off
 ebay??) so I could have at least two of them.

 If you do go with a one node solution, altho I haven't tried it myself
 Priam looks like a good place to start for backups, otherwise roll your own
 with incremental snapshotting turned on and a watch on the snapshot
 directory. Storage on something like S3 or Cloud Files is very cheap so
 there's no good excuse for no backups.

 On Thu, Mar 15, 2012 at 7:12 PM, R. Verlangen ro...@us2.nl wrote:

 Hi Drew,

 One other disadvantage is the lack of consistency level and
 replication. Both ware part of the high availability / redundancy. So you
 would really need to backup your single-node-cluster to some other
 external location.

 Good luck!


 2012/3/15 Drew Kutcharian d...@venarc.com

 Hi,

 We are working on a project that initially is going to have very little
 data, but we would like to use Cassandra to ease the future scalability.
 Due to budget constraints, we were thinking to run a single node Cassandra
 for now and then add more nodes as required.

 I was wondering if it is recommended to run a single node cassandra in
 production? Are there any other issues besides lack of high availability?

 Thanks,

 Drew







Re: Single Node Cassandra Installation

2012-03-16 Thread Ben Coverston
Doing reads and writes at CL=1 with RF=2 N=2 does not imply that the reads
will be inconsistent. It's more complicated than the simple counting of
blocked replicas. It is easy to support the notion that it will be largely
consistent, in fact very consistent for most use cases.

By default Cassandra tries to write to both nodes, always. Writes will only
fail (on a node) if it is down, and even then hinted handoff will attempt
to keep both nodes in sync when the troubled node comes back up. The point
of having two nodes is to have read and write availability in the face of
transient failure.

If you are interested there is a good exposition of what 'consistency'
means in a system like Cassandra from the link below[1].

[1]
http://www.eecs.berkeley.edu/~pbailis/projects/pbs/


On Fri, Mar 16, 2012 at 6:50 AM, Thomas van Neerijnen
t...@bossastudios.comwrote:

 You'll need to either read or write at at least quorum to get consistent
 data from the cluster so you may as well do both.
 Now that you mention it, I was wrong about downtime, with a two node
 cluster reads or writes at quorum will mean both nodes need to be online.
 Perhaps you could have an emergency switch in your application which flips
 to consistency of 1 if one of your Cassandra servers goes down? Just make
 sure it's set back to quorum when the second one returns or again you could
 end up with inconsistent data.


 On Fri, Mar 16, 2012 at 2:04 AM, Drew Kutcharian d...@venarc.com wrote:

 Thanks for the comments, I guess I will end up doing a 2 node cluster
 with replica count 2 and read consistency 1.

 -- Drew



 On Mar 15, 2012, at 4:20 PM, Thomas van Neerijnen wrote:

 So long as data loss and downtime are acceptable risks a one node cluster
 is fine.
 Personally this is usually only acceptable on my workstation, even my dev
 environment is redundant, because servers fail, usually when you least want
 them to, like for example when you've decided to save costs by waiting
 before implementing redundancy. Could a failure end up costing you more
 than you've saved? I'd rather get cheaper servers (maybe even used off
 ebay??) so I could have at least two of them.

 If you do go with a one node solution, altho I haven't tried it myself
 Priam looks like a good place to start for backups, otherwise roll your own
 with incremental snapshotting turned on and a watch on the snapshot
 directory. Storage on something like S3 or Cloud Files is very cheap so
 there's no good excuse for no backups.

 On Thu, Mar 15, 2012 at 7:12 PM, R. Verlangen ro...@us2.nl wrote:

 Hi Drew,

 One other disadvantage is the lack of consistency level and
 replication. Both ware part of the high availability / redundancy. So you
 would really need to backup your single-node-cluster to some other
 external location.

 Good luck!


 2012/3/15 Drew Kutcharian d...@venarc.com

 Hi,

 We are working on a project that initially is going to have very little
 data, but we would like to use Cassandra to ease the future scalability.
 Due to budget constraints, we were thinking to run a single node Cassandra
 for now and then add more nodes as required.

 I was wondering if it is recommended to run a single node cassandra in
 production? Are there any other issues besides lack of high availability?

 Thanks,

 Drew








-- 
Ben Coverston
DataStax -- The Apache Cassandra Company


Single Node Cassandra Installation

2012-03-15 Thread Drew Kutcharian
Hi,

We are working on a project that initially is going to have very little data, 
but we would like to use Cassandra to ease the future scalability. Due to 
budget constraints, we were thinking to run a single node Cassandra for now and 
then add more nodes as required.

I was wondering if it is recommended to run a single node cassandra in 
production? Are there any other issues besides lack of high availability?

Thanks,

Drew



Re: Single Node Cassandra Installation

2012-03-15 Thread R. Verlangen
Hi Drew,

One other disadvantage is the lack of consistency level and
replication. Both ware part of the high availability / redundancy. So you
would really need to backup your single-node-cluster to some other
external location.

Good luck!

2012/3/15 Drew Kutcharian d...@venarc.com

 Hi,

 We are working on a project that initially is going to have very little
 data, but we would like to use Cassandra to ease the future scalability.
 Due to budget constraints, we were thinking to run a single node Cassandra
 for now and then add more nodes as required.

 I was wondering if it is recommended to run a single node cassandra in
 production? Are there any other issues besides lack of high availability?

 Thanks,

 Drew




Re: Single Node Cassandra Installation

2012-03-15 Thread Thomas van Neerijnen
So long as data loss and downtime are acceptable risks a one node cluster
is fine.
Personally this is usually only acceptable on my workstation, even my dev
environment is redundant, because servers fail, usually when you least want
them to, like for example when you've decided to save costs by waiting
before implementing redundancy. Could a failure end up costing you more
than you've saved? I'd rather get cheaper servers (maybe even used off
ebay??) so I could have at least two of them.

If you do go with a one node solution, altho I haven't tried it myself
Priam looks like a good place to start for backups, otherwise roll your own
with incremental snapshotting turned on and a watch on the snapshot
directory. Storage on something like S3 or Cloud Files is very cheap so
there's no good excuse for no backups.

On Thu, Mar 15, 2012 at 7:12 PM, R. Verlangen ro...@us2.nl wrote:

 Hi Drew,

 One other disadvantage is the lack of consistency level and
 replication. Both ware part of the high availability / redundancy. So you
 would really need to backup your single-node-cluster to some other
 external location.

 Good luck!


 2012/3/15 Drew Kutcharian d...@venarc.com

 Hi,

 We are working on a project that initially is going to have very little
 data, but we would like to use Cassandra to ease the future scalability.
 Due to budget constraints, we were thinking to run a single node Cassandra
 for now and then add more nodes as required.

 I was wondering if it is recommended to run a single node cassandra in
 production? Are there any other issues besides lack of high availability?

 Thanks,

 Drew





Re: Single Node Cassandra Installation

2012-03-15 Thread Drew Kutcharian
Thanks for the comments, I guess I will end up doing a 2 node cluster with 
replica count 2 and read consistency 1.

-- Drew


On Mar 15, 2012, at 4:20 PM, Thomas van Neerijnen wrote:

 So long as data loss and downtime are acceptable risks a one node cluster is 
 fine.
 Personally this is usually only acceptable on my workstation, even my dev 
 environment is redundant, because servers fail, usually when you least want 
 them to, like for example when you've decided to save costs by waiting before 
 implementing redundancy. Could a failure end up costing you more than you've 
 saved? I'd rather get cheaper servers (maybe even used off ebay??) so I could 
 have at least two of them.
 
 If you do go with a one node solution, altho I haven't tried it myself Priam 
 looks like a good place to start for backups, otherwise roll your own with 
 incremental snapshotting turned on and a watch on the snapshot directory. 
 Storage on something like S3 or Cloud Files is very cheap so there's no good 
 excuse for no backups.
 
 On Thu, Mar 15, 2012 at 7:12 PM, R. Verlangen ro...@us2.nl wrote:
 Hi Drew,
 
 One other disadvantage is the lack of consistency level and replication. 
 Both ware part of the high availability / redundancy. So you would really 
 need to backup your single-node-cluster to some other external location.
 
 Good luck!
 
 
 2012/3/15 Drew Kutcharian d...@venarc.com
 Hi,
 
 We are working on a project that initially is going to have very little data, 
 but we would like to use Cassandra to ease the future scalability. Due to 
 budget constraints, we were thinking to run a single node Cassandra for now 
 and then add more nodes as required.
 
 I was wondering if it is recommended to run a single node cassandra in 
 production? Are there any other issues besides lack of high availability?
 
 Thanks,
 
 Drew
 
 
 



Cassandra and Solandra Installation guid

2011-08-03 Thread Eldad Yamin
Hi,
I'd like to get tutorials on how to install Cassandra and Solandra - I
couldn't find anything helpful.
In addition, how to use (index/search) Solandra tutorials will be great.


Thanks!


Installation Exception

2011-08-03 Thread Eldad Yamin
Hi,
I'm trying to install Cassandra on Amazon EC2 without success, this is what
I did:

   1. Created new Small EC2 instance (this is just for testing), running
   Ubuntu OS - custom AIM (ami-596f3c1c) from:
   http://uec-images.ubuntu.com/releases/11.04/release/
   2. Installed Java:
   # sudo add-apt-repository deb http://archive.canonical.com/ lucid
   partner
   # sudo apt-get update
   # sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
   openjdk-6-jre
   3. Upgraded:
   # sudo apt-get upgrade
   4. Downloaded Cassandra:
   # cd /usr/src/
   # sudo wget
   http://apache.mivzakim.net//cassandra/0.8.2/apache-cassandra-0.8.2-src.tar.gz

   # sudo tar xvfz apache-cassandra-*
   # cd apache-cassandra-*
   5. Config (according to README.txt)
   # 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
   6. RUN CASSANDRA
   # bin/cassandra -f

The I got Exception:
ubuntu@ip-10-170-31-128:/usr/src/apache-cassandra-0.8.2-src$ bin/cassandra
-f
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/cassandra/thrift/CassandraDaemon
Caused by: java.lang.ClassNotFoundException:
org.apache.cassandra.thrift.CassandraDaemon
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.apache.cassandra.thrift.CassandraDaemon.
Program will exit.


Any idea what is wrong?
Thanks!


Re: Installation Exception

2011-08-03 Thread samal
did u compile source code? :)
you have downloaded source code not binary.

try with binary.

On Wed, Aug 3, 2011 at 9:14 PM, Eldad Yamin elda...@gmail.com wrote:

 Hi,
 I'm trying to install Cassandra on Amazon EC2 without success, this is what
 I did:

1. Created new Small EC2 instance (this is just for testing), running
Ubuntu OS - custom AIM (ami-596f3c1c) from:
http://uec-images.ubuntu.com/releases/11.04/release/
2. Installed Java:
# sudo add-apt-repository deb http://archive.canonical.com/ lucid
partner
# sudo apt-get update
# sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
openjdk-6-jre
3. Upgraded:
# sudo apt-get upgrade
4. Downloaded Cassandra:
# cd /usr/src/
# sudo wget

 http://apache.mivzakim.net//cassandra/0.8.2/apache-cassandra-0.8.2-src.tar.gz

# sudo tar xvfz apache-cassandra-*
# cd apache-cassandra-*
5. Config (according to README.txt)
# 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
6. RUN CASSANDRA
# bin/cassandra -f

 The I got Exception:
 ubuntu@ip-10-170-31-128:/usr/src/apache-cassandra-0.8.2-src$
 bin/cassandra -f
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/cassandra/thrift/CassandraDaemon
 Caused by: java.lang.ClassNotFoundException:
 org.apache.cassandra.thrift.CassandraDaemon
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 Could not find the main class: org.apache.cassandra.thrift.CassandraDaemon.
 Program will exit.


 Any idea what is wrong?
 Thanks!



Re: Installation Exception

2011-08-03 Thread Jonathan Ellis
http://www.datastax.com/dev/blog/setting-up-a-cassandra-cluster-with-the-datastax-ami

On Wed, Aug 3, 2011 at 10:44 AM, Eldad Yamin elda...@gmail.com wrote:
 Hi,
 I'm trying to install Cassandra on Amazon EC2 without success, this is what
 I did:

 Created new Small EC2 instance (this is just for testing), running Ubuntu
 OS - custom AIM (ami-596f3c1c) from:
 http://uec-images.ubuntu.com/releases/11.04/release/
 Installed Java:
 # sudo add-apt-repository deb http://archive.canonical.com/ lucid partner
 # sudo apt-get update
 # sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
 openjdk-6-jre
 Upgraded:
 # sudo apt-get upgrade
 Downloaded Cassandra:
 # cd /usr/src/
 # sudo wget
 http://apache.mivzakim.net//cassandra/0.8.2/apache-cassandra-0.8.2-src.tar.gz
 # sudo tar xvfz apache-cassandra-*
 # cd apache-cassandra-*
 Config (according to README.txt)
 # 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
 RUN CASSANDRA
 # bin/cassandra -f

 The I got Exception:
 ubuntu@ip-10-170-31-128:/usr/src/apache-cassandra-0.8.2-src$ bin/cassandra
 -f
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/cassandra/thrift/CassandraDaemon
 Caused by: java.lang.ClassNotFoundException:
 org.apache.cassandra.thrift.CassandraDaemon
         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 Could not find the main class: org.apache.cassandra.thrift.CassandraDaemon.
 Program will exit.

 Any idea what is wrong?
 Thanks!



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com


Re: Installation Exception

2011-08-03 Thread Eldad Yamin
Thanks Jonathan,
I saw the EC2 AMI that was made by datastax - I prefer not to use it becuse
I want to learn how to install Cassandra first.

On Wed, Aug 3, 2011 at 8:03 PM, Jonathan Ellis jbel...@gmail.com wrote:


 http://www.datastax.com/dev/blog/setting-up-a-cassandra-cluster-with-the-datastax-ami

 On Wed, Aug 3, 2011 at 10:44 AM, Eldad Yamin elda...@gmail.com wrote:
  Hi,
  I'm trying to install Cassandra on Amazon EC2 without success, this is
 what
  I did:
 
  Created new Small EC2 instance (this is just for testing), running
 Ubuntu
  OS - custom AIM (ami-596f3c1c) from:
  http://uec-images.ubuntu.com/releases/11.04/release/
  Installed Java:
  # sudo add-apt-repository deb http://archive.canonical.com/ lucid
 partner
  # sudo apt-get update
  # sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
  openjdk-6-jre
  Upgraded:
  # sudo apt-get upgrade
  Downloaded Cassandra:
  # cd /usr/src/
  # sudo wget
 
 http://apache.mivzakim.net//cassandra/0.8.2/apache-cassandra-0.8.2-src.tar.gz
  # sudo tar xvfz apache-cassandra-*
  # cd apache-cassandra-*
  Config (according to README.txt)
  # 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
  RUN CASSANDRA
  # bin/cassandra -f
 
  The I got Exception:
  ubuntu@ip-10-170-31-128:/usr/src/apache-cassandra-0.8.2-src$
 bin/cassandra
  -f
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/cassandra/thrift/CassandraDaemon
  Caused by: java.lang.ClassNotFoundException:
  org.apache.cassandra.thrift.CassandraDaemon
  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
  Could not find the main class:
 org.apache.cassandra.thrift.CassandraDaemon.
  Program will exit.
 
  Any idea what is wrong?
  Thanks!



 --
 Jonathan Ellis
 Project Chair, Apache Cassandra
 co-founder of DataStax, the source for professional Cassandra support
 http://www.datastax.com



Re: Installation Exception

2011-08-03 Thread Eldad Yamin
Thanks! I missed that lol!
BTW, how do I compile it?

Thanks!

On Wed, Aug 3, 2011 at 6:51 PM, samal sa...@wakya.in wrote:

 did u compile source code? :)
 you have downloaded source code not binary.

 try with binary.

 On Wed, Aug 3, 2011 at 9:14 PM, Eldad Yamin elda...@gmail.com wrote:

 Hi,
 I'm trying to install Cassandra on Amazon EC2 without success, this is
 what I did:

1. Created new Small EC2 instance (this is just for testing),
running Ubuntu OS - custom AIM (ami-596f3c1c) from:
http://uec-images.ubuntu.com/releases/11.04/release/
2. Installed Java:
# sudo add-apt-repository deb http://archive.canonical.com/ lucid
partner
# sudo apt-get update
# sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
openjdk-6-jre
3. Upgraded:
# sudo apt-get upgrade
4. Downloaded Cassandra:
# cd /usr/src/
# sudo wget

 http://apache.mivzakim.net//cassandra/0.8.2/apache-cassandra-0.8.2-src.tar.gz

# sudo tar xvfz apache-cassandra-*
# cd apache-cassandra-*
5. Config (according to README.txt)
# 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
6. RUN CASSANDRA
# bin/cassandra -f

 The I got Exception:
 ubuntu@ip-10-170-31-128:/usr/src/apache-cassandra-0.8.2-src$
 bin/cassandra -f
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/cassandra/thrift/CassandraDaemon
 Caused by: java.lang.ClassNotFoundException:
 org.apache.cassandra.thrift.CassandraDaemon
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 Could not find the main class:
 org.apache.cassandra.thrift.CassandraDaemon. Program will exit.


 Any idea what is wrong?
 Thanks!





Cluster Installation Verification

2011-04-26 Thread Brad Willard
I'm trying to setup a cassandra cluster with 0.7.4 on 4 nodes. I
initially did a single server test that went beautifully with a test
that inserted 16 million rows with no issues. However when I tried to
create a 4 node cluster I've been seeing weird behavior. I seem to be
able to run my same test without errors, however when I use the
cassanda-cli to look at the data, it appears as though nothing has
been inserted. I verified the server I've connected to, verified the
correct keyspace and column family. I've already used the nodetool to
verify all the other servers are listed in the ring.

I followed these instructions for the setup:
http://wiki.apache.org/cassandra/MultinodeCluster

So how can I verify my cluster is working correctly?  Any help would
be amazing as I'm evaluating this for my company.

Thanks,
Brad


Re: Cluster Installation Verification

2011-04-26 Thread aaron morton
Does not look like there is much data in there :)

Also don't forget to use the datatype functions in the cli to match what your 
app is doing, see help for more details. 
e.g. get MyCf[uuid('something-that-looks-llike-a-uuid')]

Also the ring is unbalanced (the Owns column), you will want to assign the 
nodes an initial token so they each take the same portion of the data.
see http://wiki.apache.org/cassandra/Operations#Load_balancing 

Hope that helps. 
Aaron

On 27 Apr 2011, at 07:14, Brad Willard wrote:

 The setup is 10.11.6.9 as the seed and the other three nodes
 bootstrapped. I attached two cassandra.yaml files, the config of the
 seed, and the config of one of the cluster nodes.
 
 Ring output
 /opt/cassandra/apache-cassandra-0.7.4# ./bin/nodetool -h 10.11.6.9 ring
 Address Status State   LoadOwnsToken
 
 133836233891526335447940652806240328892
 10.11.6.9   Up Normal  42.53 KB50.00%
 48765642161291719582097000948298276028
 10.11.6.26  Up Normal  42.71 KB12.50%
 70033290093850373548557913912783789244
 10.11.6.11  Up Normal  42.67 KB12.50%
 91300938026409027515018826877269302460
 10.11.6.10  Up Normal  42.64 KB25.00%
 133836233891526335447940652806240328892
 
 Replicate Strategy is whatever is default, I'm not sure how to set it.
 The consistency leve in the client is set to one.
 
 Thanks,
 Brad
 
 On Tue, Apr 26, 2011 at 2:25 PM, Jonathan Colby
 jonathan.co...@gmail.com wrote:
 What replication strategy did you use?  how does the ring look?  were the 
 newly added nodes bootstrapped? is 1 or more nodes listed as a seed?
 
 Lots of questions.  but maybe you could post your cassandra.yaml here and we 
 can take a look at it.
 
 The output of nodetool ring would also be good.
 
 Jon
 
 On Apr 26, 2011, at 7:27 PM, Brad Willard wrote:
 
 I'm trying to setup a cassandra cluster with 0.7.4 on 4 nodes. I
 initially did a single server test that went beautifully with a test
 that inserted 16 million rows with no issues. However when I tried to
 create a 4 node cluster I've been seeing weird behavior. I seem to be
 able to run my same test without errors, however when I use the
 cassanda-cli to look at the data, it appears as though nothing has
 been inserted. I verified the server I've connected to, verified the
 correct keyspace and column family. I've already used the nodetool to
 verify all the other servers are listed in the ring.
 
 I followed these instructions for the setup:
 http://wiki.apache.org/cassandra/MultinodeCluster
 
 So how can I verify my cluster is working correctly?  Any help would
 be amazing as I'm evaluating this for my company.
 
 Thanks,
 Brad
 
 
 cassandra.nonseed.yamlcassandra.seed.yaml



Installation

2011-03-07 Thread Mark

Where do must people install Cassandra to? /var or /opt?

Thanks


Re: Installation

2011-03-07 Thread Eric Gilmore
The DataStax packaged
releaseshttp://www.datastax.com/docs/0.7/configuration/packaged_releasesfollow
standard practices for Linux-ish installation, so they might be a
good model to follow. For instance, the RHEL/CentOS package installs the
binaries (cassandra-cli, nodetool) in /usr/bin, configuration-related things
in /etc/cassandra/conf/, and start/stop scripts in /etc/init.d/ .

The installation
pagehttp://www.datastax.com/dev/tutorials/getting_started_0.7/installingin
our Getting Started guide describes the breakdown in binary files that
you can download from Apache http://cassandra.apache.org/download/ and
unpack, but in the near future we may add a more detailed description of the
package releases.

On Mon, Mar 7, 2011 at 8:40 AM, Mark static.void@gmail.com wrote:

 Where do must people install Cassandra to? /var or /opt?

 Thanks



Probelms with Set on Byte type New Installation

2011-01-26 Thread David Quattlebaum
I have set up a new installation of Cassandra, and have it running with
no problems (0.7.0)

 

Using CLI I added a new keyspace, and column family.

 

When I set a value for a column I get Value Inserted

 

However, when I get the column value it is a number, even though the
Column Family is of Bytes Type:

Keyspace: XXX:

  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy

Replication Factor: 1

  Column Families:

ColumnFamily: Y

  Columns sorted by: org.apache.cassandra.db.marshal.BytesType

  Row cache size / save period: 0.0/0

  Key cache size / save period: 20.0/3600

  Memtable thresholds: 0.0703125/15/60

  GC grace seconds: 864000

  Compaction min/max thresholds: 4/32

  Read repair chance: 1.0

  Built indexes: []

 

 

Anyone else had this happen?

Did I just miss something stupid?

I have not had any issues with earlier versions of Cassandra.

 

 

David Q

 

 

David Quattlebaum

MedProcure, LLC

www.medprocure.com

(864)482-2018 - Support

(864)482-2019 - Direct

 



RE: Probelms with Set on Byte type New Installation

2011-01-26 Thread Bill Speirs
I'm very (2 days) new to Cassandra, but what does the output look like?

Total shot in the dark, if the number is less than 256 would it not
look the same as bytes or a number?

Hope that in some way helps...

Bill-

From: David Quattlebaum [mailto:dquat...@medprocure.com]
Sent: Wednesday, January 26, 2011 3:25 PM
To: user@cassandra.apache.org
Subject: Probelms with Set on Byte type New Installation

I have set up a new installation of Cassandra, and have it running
with no problems (0.7.0)

Using CLI I added a new keyspace, and column family.

When I set a value for a column I get “Value Inserted”

However, when I get the column value it is a number, even though the
Column Family is of Bytes Type:
Keyspace: XXX:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
Replication Factor: 1
  Column Families:
ColumnFamily: Y
  Columns sorted by: org.apache.cassandra.db.marshal.BytesType
  Row cache size / save period: 0.0/0
  Key cache size / save period: 20.0/3600
  Memtable thresholds: 0.0703125/15/60
  GC grace seconds: 864000
  Compaction min/max thresholds: 4/32
  Read repair chance: 1.0
  Built indexes: []


Anyone else had this happen?
Did I just miss something stupid?
I have not had any issues with earlier versions of Cassandra.


David Q


David Quattlebaum
MedProcure, LLC
www.medprocure.com
(864)482-2018 - Support
(864)482-2019 - Direct


RE: Probelms with Set on Byte type New Installation

2011-01-26 Thread David Quattlebaum
Nope, I should be getting back the String values that were inserted:

[default@TestKeyspace] get custparent['David'];
= (column=4164647265737331, value=333038204279205061737320313233,
timestamp=1296071732281000)
= (column=43697479, value=53656e656361, timestamp=129607174731)
= (column=4e616d65, value=546f6d7320466163696c697479,
timestamp=1296071708189000)
= (column=506f7374616c436f6465, value=3239363738,
timestamp=1296071774549000)
= (column=537461746550726f76, value=5343, timestamp=1296071760213000)
Returned 5 results.

Values should be Name and Address Values.

-David Q

-Original Message-
From: Bill Speirs [mailto:bill.spe...@gmail.com] 
Sent: Wednesday, January 26, 2011 3:45 PM
To: user@cassandra.apache.org
Subject: RE: Probelms with Set on Byte type New Installation

I'm very (2 days) new to Cassandra, but what does the output look like?

Total shot in the dark, if the number is less than 256 would it not
look the same as bytes or a number?

Hope that in some way helps...

Bill-

From: David Quattlebaum [mailto:dquat...@medprocure.com]
Sent: Wednesday, January 26, 2011 3:25 PM
To: user@cassandra.apache.org
Subject: Probelms with Set on Byte type New Installation

I have set up a new installation of Cassandra, and have it running
with no problems (0.7.0)

Using CLI I added a new keyspace, and column family.

When I set a value for a column I get Value Inserted

However, when I get the column value it is a number, even though the
Column Family is of Bytes Type:
Keyspace: XXX:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
Replication Factor: 1
  Column Families:
ColumnFamily: Y
  Columns sorted by: org.apache.cassandra.db.marshal.BytesType
  Row cache size / save period: 0.0/0
  Key cache size / save period: 20.0/3600
  Memtable thresholds: 0.0703125/15/60
  GC grace seconds: 864000
  Compaction min/max thresholds: 4/32
  Read repair chance: 1.0
  Built indexes: []


Anyone else had this happen?
Did I just miss something stupid?
I have not had any issues with earlier versions of Cassandra.


David Q


David Quattlebaum
MedProcure, LLC
www.medprocure.com
(864)482-2018 - Support
(864)482-2019 - Direct


Re: Probelms with Set on Byte type New Installation

2011-01-26 Thread Bill Speirs
Why would you expect strings? You stated that your comparator is
BytesType. If you set the default_validation_class then you can
specify what types the values should be returned as:

[default@Devel] create column family david with comparator=BytesType
and default_validation_class=UTF8Type;
2dabf0fb-298f-11e0-b177-e700f669bcfc
[default@Devel] set david['david']['test'] = 'test';
Value inserted.
[default@Devel] get david['david'];
= (column=74657374, value=test, timestamp=129607562467)
Returned 1 results.

Now the column name is returned as the ASCII characters for 'test' and
the value is returned as a string because of the
default_validation_class. That seems to make sense to me. If in the
next column you want to sore a number you must store it as such and
return it as such:

[default@Devel] set david['david']['id'] = 37;
Value inserted.
[default@Devel] get david['david']['id'] as integer;
= (column=6964, value=13111, timestamp=129607582033)

Didn't work because it was inserted as a string not a number/integer.
However, if you specify it's a number on the way it, it will return
properly:

[default@Devel] set david['david']['id'] = integer(37);
Value inserted.
[default@Devel] get david['david']['id'] as integer;
= (column=6964, value=37, timestamp=1296075929082000)

Hope that helps... again, I'm new to this so maybe I'm not
understanding your question.

Bill-

On Wed, Jan 26, 2011 at 3:50 PM, David Quattlebaum
dquat...@medprocure.com wrote:
 Nope, I should be getting back the String values that were inserted:

 [default@TestKeyspace] get custparent['David'];
 = (column=4164647265737331, value=333038204279205061737320313233,
 timestamp=1296071732281000)
 = (column=43697479, value=53656e656361, timestamp=129607174731)
 = (column=4e616d65, value=546f6d7320466163696c697479,
 timestamp=1296071708189000)
 = (column=506f7374616c436f6465, value=3239363738,
 timestamp=1296071774549000)
 = (column=537461746550726f76, value=5343, timestamp=1296071760213000)
 Returned 5 results.

 Values should be Name and Address Values.

 -David Q

 -Original Message-
 From: Bill Speirs [mailto:bill.spe...@gmail.com]
 Sent: Wednesday, January 26, 2011 3:45 PM
 To: user@cassandra.apache.org
 Subject: RE: Probelms with Set on Byte type New Installation

 I'm very (2 days) new to Cassandra, but what does the output look like?

 Total shot in the dark, if the number is less than 256 would it not
 look the same as bytes or a number?

 Hope that in some way helps...

 Bill-

 From: David Quattlebaum [mailto:dquat...@medprocure.com]
 Sent: Wednesday, January 26, 2011 3:25 PM
 To: user@cassandra.apache.org
 Subject: Probelms with Set on Byte type New Installation

 I have set up a new installation of Cassandra, and have it running
 with no problems (0.7.0)

 Using CLI I added a new keyspace, and column family.

 When I set a value for a column I get Value Inserted

 However, when I get the column value it is a number, even though the
 Column Family is of Bytes Type:
 Keyspace: XXX:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
    Replication Factor: 1
  Column Families:
    ColumnFamily: Y
      Columns sorted by: org.apache.cassandra.db.marshal.BytesType
      Row cache size / save period: 0.0/0
      Key cache size / save period: 20.0/3600
      Memtable thresholds: 0.0703125/15/60
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 1.0
      Built indexes: []


 Anyone else had this happen?
 Did I just miss something stupid?
 I have not had any issues with earlier versions of Cassandra.


 David Q


 David Quattlebaum
 MedProcure, LLC
 www.medprocure.com
 (864)482-2018 - Support
 (864)482-2019 - Direct



RE: Probelms with Set on Byte type New Installation

2011-01-26 Thread David Quattlebaum
Bill, 

You are absolutely correct, I must not have set the default_validation_class 
when I added the column family.

Thanks what I get for continuing to work late into the night!

Thanks,

DQ Less stupid next time

-Original Message-
From: Bill Speirs [mailto:bill.spe...@gmail.com] 
Sent: Wednesday, January 26, 2011 4:09 PM
To: user@cassandra.apache.org
Subject: Re: Probelms with Set on Byte type New Installation

Why would you expect strings? You stated that your comparator is
BytesType. If you set the default_validation_class then you can
specify what types the values should be returned as:

[default@Devel] create column family david with comparator=BytesType
and default_validation_class=UTF8Type;
2dabf0fb-298f-11e0-b177-e700f669bcfc
[default@Devel] set david['david']['test'] = 'test';
Value inserted.
[default@Devel] get david['david'];
= (column=74657374, value=test, timestamp=129607562467)
Returned 1 results.

Now the column name is returned as the ASCII characters for 'test' and
the value is returned as a string because of the
default_validation_class. That seems to make sense to me. If in the
next column you want to sore a number you must store it as such and
return it as such:

[default@Devel] set david['david']['id'] = 37;
Value inserted.
[default@Devel] get david['david']['id'] as integer;
= (column=6964, value=13111, timestamp=129607582033)

Didn't work because it was inserted as a string not a number/integer.
However, if you specify it's a number on the way it, it will return
properly:

[default@Devel] set david['david']['id'] = integer(37);
Value inserted.
[default@Devel] get david['david']['id'] as integer;
= (column=6964, value=37, timestamp=1296075929082000)

Hope that helps... again, I'm new to this so maybe I'm not
understanding your question.

Bill-

On Wed, Jan 26, 2011 at 3:50 PM, David Quattlebaum
dquat...@medprocure.com wrote:
 Nope, I should be getting back the String values that were inserted:

 [default@TestKeyspace] get custparent['David'];
 = (column=4164647265737331, value=333038204279205061737320313233,
 timestamp=1296071732281000)
 = (column=43697479, value=53656e656361, timestamp=129607174731)
 = (column=4e616d65, value=546f6d7320466163696c697479,
 timestamp=1296071708189000)
 = (column=506f7374616c436f6465, value=3239363738,
 timestamp=1296071774549000)
 = (column=537461746550726f76, value=5343, timestamp=1296071760213000)
 Returned 5 results.

 Values should be Name and Address Values.

 -David Q

 -Original Message-
 From: Bill Speirs [mailto:bill.spe...@gmail.com]
 Sent: Wednesday, January 26, 2011 3:45 PM
 To: user@cassandra.apache.org
 Subject: RE: Probelms with Set on Byte type New Installation

 I'm very (2 days) new to Cassandra, but what does the output look like?

 Total shot in the dark, if the number is less than 256 would it not
 look the same as bytes or a number?

 Hope that in some way helps...

 Bill-

 From: David Quattlebaum [mailto:dquat...@medprocure.com]
 Sent: Wednesday, January 26, 2011 3:25 PM
 To: user@cassandra.apache.org
 Subject: Probelms with Set on Byte type New Installation

 I have set up a new installation of Cassandra, and have it running
 with no problems (0.7.0)

 Using CLI I added a new keyspace, and column family.

 When I set a value for a column I get Value Inserted

 However, when I get the column value it is a number, even though the
 Column Family is of Bytes Type:
 Keyspace: XXX:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
    Replication Factor: 1
  Column Families:
    ColumnFamily: Y
      Columns sorted by: org.apache.cassandra.db.marshal.BytesType
      Row cache size / save period: 0.0/0
      Key cache size / save period: 20.0/3600
      Memtable thresholds: 0.0703125/15/60
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 1.0
      Built indexes: []


 Anyone else had this happen?
 Did I just miss something stupid?
 I have not had any issues with earlier versions of Cassandra.


 David Q


 David Quattlebaum
 MedProcure, LLC
 www.medprocure.com
 (864)482-2018 - Support
 (864)482-2019 - Direct



Re: Probelms with Set on Byte type New Installation

2011-01-26 Thread Bill Speirs
No worries... it forced me to setup an env to test my understanding.
I'm still trying to learn/understand.

Bill-

On Wed, Jan 26, 2011 at 4:23 PM, David Quattlebaum
dquat...@medprocure.com wrote:
 Bill,

 You are absolutely correct, I must not have set the default_validation_class 
 when I added the column family.

 Thanks what I get for continuing to work late into the night!

 Thanks,

 DQ     Less stupid next time

 -Original Message-
 From: Bill Speirs [mailto:bill.spe...@gmail.com]
 Sent: Wednesday, January 26, 2011 4:09 PM
 To: user@cassandra.apache.org
 Subject: Re: Probelms with Set on Byte type New Installation

 Why would you expect strings? You stated that your comparator is
 BytesType. If you set the default_validation_class then you can
 specify what types the values should be returned as:

 [default@Devel] create column family david with comparator=BytesType
 and default_validation_class=UTF8Type;
 2dabf0fb-298f-11e0-b177-e700f669bcfc
 [default@Devel] set david['david']['test'] = 'test';
 Value inserted.
 [default@Devel] get david['david'];
 = (column=74657374, value=test, timestamp=129607562467)
 Returned 1 results.

 Now the column name is returned as the ASCII characters for 'test' and
 the value is returned as a string because of the
 default_validation_class. That seems to make sense to me. If in the
 next column you want to sore a number you must store it as such and
 return it as such:

 [default@Devel] set david['david']['id'] = 37;
 Value inserted.
 [default@Devel] get david['david']['id'] as integer;
 = (column=6964, value=13111, timestamp=129607582033)

 Didn't work because it was inserted as a string not a number/integer.
 However, if you specify it's a number on the way it, it will return
 properly:

 [default@Devel] set david['david']['id'] = integer(37);
 Value inserted.
 [default@Devel] get david['david']['id'] as integer;
 = (column=6964, value=37, timestamp=1296075929082000)

 Hope that helps... again, I'm new to this so maybe I'm not
 understanding your question.

 Bill-

 On Wed, Jan 26, 2011 at 3:50 PM, David Quattlebaum
 dquat...@medprocure.com wrote:
 Nope, I should be getting back the String values that were inserted:

 [default@TestKeyspace] get custparent['David'];
 = (column=4164647265737331, value=333038204279205061737320313233,
 timestamp=1296071732281000)
 = (column=43697479, value=53656e656361, timestamp=129607174731)
 = (column=4e616d65, value=546f6d7320466163696c697479,
 timestamp=1296071708189000)
 = (column=506f7374616c436f6465, value=3239363738,
 timestamp=1296071774549000)
 = (column=537461746550726f76, value=5343, timestamp=1296071760213000)
 Returned 5 results.

 Values should be Name and Address Values.

 -David Q

 -Original Message-
 From: Bill Speirs [mailto:bill.spe...@gmail.com]
 Sent: Wednesday, January 26, 2011 3:45 PM
 To: user@cassandra.apache.org
 Subject: RE: Probelms with Set on Byte type New Installation

 I'm very (2 days) new to Cassandra, but what does the output look like?

 Total shot in the dark, if the number is less than 256 would it not
 look the same as bytes or a number?

 Hope that in some way helps...

 Bill-

 From: David Quattlebaum [mailto:dquat...@medprocure.com]
 Sent: Wednesday, January 26, 2011 3:25 PM
 To: user@cassandra.apache.org
 Subject: Probelms with Set on Byte type New Installation

 I have set up a new installation of Cassandra, and have it running
 with no problems (0.7.0)

 Using CLI I added a new keyspace, and column family.

 When I set a value for a column I get Value Inserted

 However, when I get the column value it is a number, even though the
 Column Family is of Bytes Type:
 Keyspace: XXX:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
    Replication Factor: 1
  Column Families:
    ColumnFamily: Y
      Columns sorted by: org.apache.cassandra.db.marshal.BytesType
      Row cache size / save period: 0.0/0
      Key cache size / save period: 20.0/3600
      Memtable thresholds: 0.0703125/15/60
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 1.0
      Built indexes: []


 Anyone else had this happen?
 Did I just miss something stupid?
 I have not had any issues with earlier versions of Cassandra.


 David Q


 David Quattlebaum
 MedProcure, LLC
 www.medprocure.com
 (864)482-2018 - Support
 (864)482-2019 - Direct




Re: cassandra installation

2010-10-26 Thread Jonathan Ellis
http://www.riptano.com/docs/0.6.5/getting_started/index

On Tue, Oct 26, 2010 at 9:35 AM,  narayanar...@gmail.com wrote:
 I thought of using cassandra, but all the installation guides that i found 
 online through google search are not helping out...I get too many errors when 
 i'm following them..I guess the source directory is also changed...Please can 
 you gimme the working link on how to install cassandra

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com