Re: Migrating from Datastax Distribution to Apache Cassandra

2017-04-10 Thread Michael Shuler
Changes between 3.7 and 3.10? Yes, massive changes. Read NEWS.txt and
CHANGES.txt with every upgrade. Test upgrades in staging.

-- 
Kind regards,
Michael

On 04/10/2017 02:02 AM, Eren Yilmaz wrote:
> Thanks Michael,
> 
> Are there any data changes that I need to worry about?
> 
> Eren 
> 
> -Original Message-
> From: Michael Shuler [mailto:mshu...@pbandjelly.org] On Behalf Of Michael 
> Shuler
> Sent: Friday, April 7, 2017 9:20 PM
> To: user@cassandra.apache.org
> Subject: Re: Migrating from Datastax Distribution to Apache Cassandra
> 
> Example DDC 3.7.0 to Apache Cassandra 3.10 upgrade with all default configs, 
> no data, and both the DDC and Apache Cassandra lines in sources.list (sorry 
> for any weird wrapping, but I think the list strips
> attachments):
> 
> mshuler@hana:~$ apt-cache policy datastax-ddc cassandra
> datastax-ddc:
>   Installed: (none)
>   Candidate: 3.7.0
>   Version table:
>  3.7.0 0
> 500 https://debian.datastax.com/datastax-ddc/ 3.7/main amd64 Packages
> cassandra:
>   Installed: (none)
>   Candidate: 3.10
>   Version table:
>  3.10 0
> 500 http://www.apache.org/dist/cassandra/debian/ 310x/main amd64 
> Packages mshuler@hana:~$ mshuler@hana:~$ sudo apt-get install datastax-ddc 
> Reading package lists... Done Building dependency tree Reading state 
> information... Done The following extra packages will be installed:
>   datastax-ddc-tools
> The following NEW packages will be installed:
>   datastax-ddc datastax-ddc-tools
> 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
> Need to get 28.4 MB of archives.
> After this operation, 38.0 MB of additional disk space will be used.
> Do you want to continue? [Y/n]
> Get:1 https://debian.datastax.com/datastax-ddc/ 3.7/main datastax-ddc all 
> 3.7.0 [28.4 MB]
> Get:2 https://debian.datastax.com/datastax-ddc/ 3.7/main datastax-ddc-tools 
> all 3.7.0 [4,484 B] Fetched 28.4 MB in 3s (8,210 kB/s) Selecting previously 
> unselected package datastax-ddc.
> (Reading database ... 171852 files and directories currently installed.) 
> Preparing to unpack .../datastax-ddc_3.7.0_all.deb ...
> Unpacking datastax-ddc (3.7.0) ...
> Selecting previously unselected package datastax-ddc-tools.
> Preparing to unpack .../datastax-ddc-tools_3.7.0_all.deb ...
> Unpacking datastax-ddc-tools (3.7.0) ...
> Processing triggers for systemd (215-17+deb8u6) ...
> Setting up datastax-ddc (3.7.0) ...
> vm.max_map_count = 1048575
> net.ipv4.tcp_keepalive_time = 300
> update-rc.d: warning: start and stop actions are no longer supported; falling 
> back to defaults Setting up datastax-ddc-tools (3.7.0) ...
> Processing triggers for systemd (215-17+deb8u6) ...
> mshuler@hana:~$
> mshuler@hana:~$ sudo apt-get install cassandra cassandra-tools Reading 
> package lists... Done Building dependency tree Reading state information... 
> Done The following packages will be REMOVED:
>   datastax-ddc datastax-ddc-tools
> The following NEW packages will be installed:
>   cassandra cassandra-tools
> 0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
> Need to get 29.2 MB of archives.
> After this operation, 939 kB of additional disk space will be used.
> Do you want to continue? [Y/n]
> Get:1 http://www.apache.org/dist/cassandra/debian/ 310x/main cassandra all 
> 3.10 [29.2 MB]
> Get:2 http://www.apache.org/dist/cassandra/debian/ 310x/main cassandra-tools 
> all 3.10 [4,558 B] Fetched 29.2 MB in 2s (13.6 MB/s) (Reading database ... 
> 172046 files and directories currently installed.) Removing 
> datastax-ddc-tools (3.7.0) ...
> Removing datastax-ddc (3.7.0) ...
> Selecting previously unselected package cassandra.
> (Reading database ... 171870 files and directories currently installed.) 
> Preparing to unpack .../cassandra_3.10_all.deb ...
> Unpacking cassandra (3.10) ...
> Selecting previously unselected package cassandra-tools.
> Preparing to unpack .../cassandra-tools_3.10_all.deb ...
> Unpacking cassandra-tools (3.10) ...
> Processing triggers for systemd (215-17+deb8u6) ...
> Setting up cassandra (3.10) ...
> Installing new version of config file /etc/cassandra/cassandra-env.sh ...
> Installing new version of config file /etc/cassandra/cassandra.yaml ...
> Installing new version of config file /etc/cassandra/jvm.options ...
> Installing new version of config file /etc/cassandra/logback-tools.xml ...
> Installing new version of config file /etc/cassandra/logback.xml ...
> vm.max_map_count = 1048575
> net.ipv4.tcp_keepalive_time = 300
> update-rc.d: warning: start and stop actions are no longer supported; falling 
> back to defaults Setting up cassandra-tools (3.10) ...
> mshuler@hana:~$
> 
> --
> Warm regards,
> Michael
> 



RE: Migrating from Datastax Distribution to Apache Cassandra

2017-04-10 Thread Eren Yilmaz
Thanks Michael,

Are there any data changes that I need to worry about?

Eren 

-Original Message-
From: Michael Shuler [mailto:mshu...@pbandjelly.org] On Behalf Of Michael Shuler
Sent: Friday, April 7, 2017 9:20 PM
To: user@cassandra.apache.org
Subject: Re: Migrating from Datastax Distribution to Apache Cassandra

Example DDC 3.7.0 to Apache Cassandra 3.10 upgrade with all default configs, no 
data, and both the DDC and Apache Cassandra lines in sources.list (sorry for 
any weird wrapping, but I think the list strips
attachments):

mshuler@hana:~$ apt-cache policy datastax-ddc cassandra
datastax-ddc:
  Installed: (none)
  Candidate: 3.7.0
  Version table:
 3.7.0 0
500 https://debian.datastax.com/datastax-ddc/ 3.7/main amd64 Packages
cassandra:
  Installed: (none)
  Candidate: 3.10
  Version table:
 3.10 0
500 http://www.apache.org/dist/cassandra/debian/ 310x/main amd64 
Packages mshuler@hana:~$ mshuler@hana:~$ sudo apt-get install datastax-ddc 
Reading package lists... Done Building dependency tree Reading state 
information... Done The following extra packages will be installed:
  datastax-ddc-tools
The following NEW packages will be installed:
  datastax-ddc datastax-ddc-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 38.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://debian.datastax.com/datastax-ddc/ 3.7/main datastax-ddc all 3.7.0 
[28.4 MB]
Get:2 https://debian.datastax.com/datastax-ddc/ 3.7/main datastax-ddc-tools all 
3.7.0 [4,484 B] Fetched 28.4 MB in 3s (8,210 kB/s) Selecting previously 
unselected package datastax-ddc.
(Reading database ... 171852 files and directories currently installed.) 
Preparing to unpack .../datastax-ddc_3.7.0_all.deb ...
Unpacking datastax-ddc (3.7.0) ...
Selecting previously unselected package datastax-ddc-tools.
Preparing to unpack .../datastax-ddc-tools_3.7.0_all.deb ...
Unpacking datastax-ddc-tools (3.7.0) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up datastax-ddc (3.7.0) ...
vm.max_map_count = 1048575
net.ipv4.tcp_keepalive_time = 300
update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults Setting up datastax-ddc-tools (3.7.0) ...
Processing triggers for systemd (215-17+deb8u6) ...
mshuler@hana:~$
mshuler@hana:~$ sudo apt-get install cassandra cassandra-tools Reading package 
lists... Done Building dependency tree Reading state information... Done The 
following packages will be REMOVED:
  datastax-ddc datastax-ddc-tools
The following NEW packages will be installed:
  cassandra cassandra-tools
0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 29.2 MB of archives.
After this operation, 939 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://www.apache.org/dist/cassandra/debian/ 310x/main cassandra all 3.10 
[29.2 MB]
Get:2 http://www.apache.org/dist/cassandra/debian/ 310x/main cassandra-tools 
all 3.10 [4,558 B] Fetched 29.2 MB in 2s (13.6 MB/s) (Reading database ... 
172046 files and directories currently installed.) Removing datastax-ddc-tools 
(3.7.0) ...
Removing datastax-ddc (3.7.0) ...
Selecting previously unselected package cassandra.
(Reading database ... 171870 files and directories currently installed.) 
Preparing to unpack .../cassandra_3.10_all.deb ...
Unpacking cassandra (3.10) ...
Selecting previously unselected package cassandra-tools.
Preparing to unpack .../cassandra-tools_3.10_all.deb ...
Unpacking cassandra-tools (3.10) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up cassandra (3.10) ...
Installing new version of config file /etc/cassandra/cassandra-env.sh ...
Installing new version of config file /etc/cassandra/cassandra.yaml ...
Installing new version of config file /etc/cassandra/jvm.options ...
Installing new version of config file /etc/cassandra/logback-tools.xml ...
Installing new version of config file /etc/cassandra/logback.xml ...
vm.max_map_count = 1048575
net.ipv4.tcp_keepalive_time = 300
update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults Setting up cassandra-tools (3.10) ...
mshuler@hana:~$

--
Warm regards,
Michael


Re: Migrating from Datastax Distribution to Apache Cassandra

2017-04-07 Thread Michael Shuler
Example DDC 3.7.0 to Apache Cassandra 3.10 upgrade with all default
configs, no data, and both the DDC and Apache Cassandra lines in
sources.list (sorry for any weird wrapping, but I think the list strips
attachments):

mshuler@hana:~$ apt-cache policy datastax-ddc cassandra
datastax-ddc:
  Installed: (none)
  Candidate: 3.7.0
  Version table:
 3.7.0 0
500 https://debian.datastax.com/datastax-ddc/ 3.7/main amd64
Packages
cassandra:
  Installed: (none)
  Candidate: 3.10
  Version table:
 3.10 0
500 http://www.apache.org/dist/cassandra/debian/ 310x/main amd64
Packages
mshuler@hana:~$
mshuler@hana:~$ sudo apt-get install datastax-ddc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  datastax-ddc-tools
The following NEW packages will be installed:
  datastax-ddc datastax-ddc-tools
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 38.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://debian.datastax.com/datastax-ddc/ 3.7/main datastax-ddc
all 3.7.0 [28.4 MB]
Get:2 https://debian.datastax.com/datastax-ddc/ 3.7/main
datastax-ddc-tools all 3.7.0 [4,484 B]
Fetched 28.4 MB in 3s (8,210 kB/s)
Selecting previously unselected package datastax-ddc.
(Reading database ... 171852 files and directories currently installed.)
Preparing to unpack .../datastax-ddc_3.7.0_all.deb ...
Unpacking datastax-ddc (3.7.0) ...
Selecting previously unselected package datastax-ddc-tools.
Preparing to unpack .../datastax-ddc-tools_3.7.0_all.deb ...
Unpacking datastax-ddc-tools (3.7.0) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up datastax-ddc (3.7.0) ...
vm.max_map_count = 1048575
net.ipv4.tcp_keepalive_time = 300
update-rc.d: warning: start and stop actions are no longer supported;
falling back to defaults
Setting up datastax-ddc-tools (3.7.0) ...
Processing triggers for systemd (215-17+deb8u6) ...
mshuler@hana:~$
mshuler@hana:~$ sudo apt-get install cassandra cassandra-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  datastax-ddc datastax-ddc-tools
The following NEW packages will be installed:
  cassandra cassandra-tools
0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 29.2 MB of archives.
After this operation, 939 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://www.apache.org/dist/cassandra/debian/ 310x/main cassandra
all 3.10 [29.2 MB]
Get:2 http://www.apache.org/dist/cassandra/debian/ 310x/main
cassandra-tools all 3.10 [4,558 B]
Fetched 29.2 MB in 2s (13.6 MB/s)
(Reading database ... 172046 files and directories currently installed.)
Removing datastax-ddc-tools (3.7.0) ...
Removing datastax-ddc (3.7.0) ...
Selecting previously unselected package cassandra.
(Reading database ... 171870 files and directories currently installed.)
Preparing to unpack .../cassandra_3.10_all.deb ...
Unpacking cassandra (3.10) ...
Selecting previously unselected package cassandra-tools.
Preparing to unpack .../cassandra-tools_3.10_all.deb ...
Unpacking cassandra-tools (3.10) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up cassandra (3.10) ...
Installing new version of config file /etc/cassandra/cassandra-env.sh ...
Installing new version of config file /etc/cassandra/cassandra.yaml ...
Installing new version of config file /etc/cassandra/jvm.options ...
Installing new version of config file /etc/cassandra/logback-tools.xml ...
Installing new version of config file /etc/cassandra/logback.xml ...
vm.max_map_count = 1048575
net.ipv4.tcp_keepalive_time = 300
update-rc.d: warning: start and stop actions are no longer supported;
falling back to defaults
Setting up cassandra-tools (3.10) ...
mshuler@hana:~$

-- 
Warm regards,
Michael


Re: Migrating from Datastax Distribution to Apache Cassandra

2017-04-07 Thread Michael Shuler
This is prudent advice, but a rolling upgrade from DDC 3.7.0 to Apache
Cassandra 3.10, after updating your sources.list should also work fine.
Just back up all your configurations, and if your data is mission
critical, follow good backup strategy for that, too. Testing the upgrade
in your production staging environment is also very prudent.

The DDC deb packages were built directly from the Apache Cassandra
debian/ contents, after a little patching out of the java dependency.

The default configuration file and data locations are identical.

Do keep in mind, if you have a custom JDK install that didn't come from
a deb package that satisfies the java dependency, the Apache Cassandra
deb will pull in OpenJDK - you can use it or not by setting the
appropriate configurations.

http://cassandra.apache.org/download/ has the Apache Cassandra 3.10
sources list and gpg key info for deb installations.

-- 
Kind regards,
Michael

On 04/07/2017 11:36 AM, daemeon reiydelle wrote:
> Having done variants of this, I would suggest you bring up new nodes at
> approximately the same Apache version as a separate data center, in your
> same cluster. Replication strategy may need to be tweaked
> 
> ***
> ...**
> 
> Daemeon C.M. Reiydelle
> USA (+1) 415.501.0198
> London (+44) (0) 20 8144 9872*/
> /
> 
> On Fri, Apr 7, 2017 at 1:55 AM, Eren Yilmaz  > wrote:
> 
> Hi,
> 
> __ __
> 
> We have Cassandra 3.7 installation on Ubuntu, from Datastax
> distribution (using the repo). Since Datastax has announced that
> they will no longer support a community Cassandra distribution, I
> want to migrate to Apache distribution. Are there any differences
> between distributions? Can I use the upgrading procedures as
> described in
> 
> https://docs.datastax.com/en/latest-upgrade/upgrade/cassandra/upgrdCassandraDetails.html
> 
> ?
> 
> __ __
> 
> Thanks,
> 
> Eren
> 
> 



Re: Migrating from Datastax Distribution to Apache Cassandra

2017-04-07 Thread daemeon reiydelle
Having done variants of this, I would suggest you bring up new nodes at
approximately the same Apache version as a separate data center, in your
same cluster. Replication strategy may need to be tweaked


*...*



*Daemeon C.M. ReiydelleUSA (+1) 415.501.0198London (+44) (0) 20 8144 9872*

On Fri, Apr 7, 2017 at 1:55 AM, Eren Yilmaz 
wrote:

> Hi,
>
>
>
> We have Cassandra 3.7 installation on Ubuntu, from Datastax distribution
> (using the repo). Since Datastax has announced that they will no longer
> support a community Cassandra distribution, I want to migrate to Apache
> distribution. Are there any differences between distributions? Can I use
> the upgrading procedures as described in https://docs.datastax.com/en/
> latest-upgrade/upgrade/cassandra/upgrdCassandraDetails.html?
>
>
>
> Thanks,
>
> Eren
>


Migrating from Datastax Distribution to Apache Cassandra

2017-04-07 Thread Eren Yilmaz
Hi,

We have Cassandra 3.7 installation on Ubuntu, from Datastax distribution (using 
the repo). Since Datastax has announced that they will no longer support a 
community Cassandra distribution, I want to migrate to Apache distribution. Are 
there any differences between distributions? Can I use the upgrading procedures 
as described in 
https://docs.datastax.com/en/latest-upgrade/upgrade/cassandra/upgrdCassandraDetails.html?

Thanks,
Eren