cassback 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backuptool.rb +9 -0
- data/lib/cassback/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0fb33ef12a8632d9c1af04424c10dc15b9ec312
|
4
|
+
data.tar.gz: 96c27b901cfd9dca3e575ebff41fbbd2d09e9ad0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f859dcc38bced28741136bd11da2a3cf9fa8432de8082d3f8de1dc3eef849a6fc9483f7ffe1371b5cd95d9689683293b2f3bcd20749738cca5d5936af22454
|
7
|
+
data.tar.gz: 570d68977b101c76e4749dbe098cb83776a95fa3716f7dec1c3505b67bd5c2ba2eb329a92268bd05a41a88c6eab856da37cf0212c9b46c67b3bc7574d7ad4678
|
data/lib/backuptool.rb
CHANGED
@@ -87,6 +87,15 @@ class BackupTool
|
|
87
87
|
@logger.info('Starting a new snapshot')
|
88
88
|
snapshot = @cassandra.new_snapshot
|
89
89
|
|
90
|
+
begin
|
91
|
+
path = @hadoop.base_dir + '/' + snapshot.cluster + '/' + snapshot.node + '/'
|
92
|
+
if not @hadoop.mkdir(path)
|
93
|
+
raise("Could not create your cluster directory : #{path}")
|
94
|
+
end
|
95
|
+
rescue Exception => e
|
96
|
+
raise("Could not create your cluster directory : #{e.message}")
|
97
|
+
end
|
98
|
+
|
90
99
|
existing = search_snapshots(node: snapshot.node)
|
91
100
|
last = if existing.empty?
|
92
101
|
CassandraSnapshot.new(snapshot.cluster, snapshot.node, 'never')
|
data/lib/cassback/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Van Hollebeke
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.5.2
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Cassandra backup to HDFS.
|