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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76766f06f7d636939af96dc78a6af157c652a303
4
- data.tar.gz: 4c850cec7d6ca903b5750df42c84575fc7e01137
3
+ metadata.gz: f0fb33ef12a8632d9c1af04424c10dc15b9ec312
4
+ data.tar.gz: 96c27b901cfd9dca3e575ebff41fbbd2d09e9ad0
5
5
  SHA512:
6
- metadata.gz: 093b50c2986c8baf54169530db3d7f5c76da98428cc95e16fcceb03467783b0ac2891112ea4b8a5182460c1c4614b1d3fc22090ceed8d010f728177868714384
7
- data.tar.gz: 009f9557521432e5d580163e5b6ca82073f1fbecb70652b0166f46104ac2867f7f393475d35910e49ca83b0b0058e6e7ad8ac32ed2d1c05da176abc64734276f
6
+ metadata.gz: c5f859dcc38bced28741136bd11da2a3cf9fa8432de8082d3f8de1dc3eef849a6fc9483f7ffe1371b5cd95d9689683293b2f3bcd20749738cca5d5936af22454
7
+ data.tar.gz: 570d68977b101c76e4749dbe098cb83776a95fa3716f7dec1c3505b67bd5c2ba2eb329a92268bd05a41a88c6eab856da37cf0212c9b46c67b3bc7574d7ad4678
@@ -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')
@@ -1,3 +1,3 @@
1
1
  module Cassback
2
- VERSION = '0.2.3'.freeze
2
+ VERSION = '0.2.4'.freeze
3
3
  end
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.3
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: 2016-10-28 00:00:00.000000000 Z
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.4.8
171
+ rubygems_version: 2.5.2
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Cassandra backup to HDFS.