mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Upload binary via scp
This commit is contained in:
parent
c506e3218b
commit
e9e9a7d7d5
@ -19,12 +19,17 @@
|
|||||||
[url]
|
[url]
|
||||||
(non-precise-cached-wget! url))
|
(non-precise-cached-wget! url))
|
||||||
|
|
||||||
|
(defn get-clickhouse-scp
|
||||||
|
[path]
|
||||||
|
(c/upload path (str common-prefix "/clickhouse")))
|
||||||
|
|
||||||
(defn download-clickhouse
|
(defn download-clickhouse
|
||||||
[source]
|
[source]
|
||||||
(info "Downloading clickhouse from" source)
|
(info "Downloading clickhouse from" source)
|
||||||
(cond
|
(cond
|
||||||
(clojure.string/starts-with? source "rbtorrent:") (get-clickhouse-sky source)
|
(clojure.string/starts-with? source "rbtorrent:") (get-clickhouse-sky source)
|
||||||
(clojure.string/starts-with? source "http") (get-clickhouse-url source)
|
(clojure.string/starts-with? source "http") (get-clickhouse-url source)
|
||||||
|
(.exists (io/file source)) (get-clickhouse-scp source)
|
||||||
:else (throw (Exception. (str "Don't know how to download clickhouse from" source)))))
|
:else (throw (Exception. (str "Don't know how to download clickhouse from" source)))))
|
||||||
|
|
||||||
(defn unpack-deb
|
(defn unpack-deb
|
||||||
|
@ -72,7 +72,7 @@ ZooKeeperRequestPtr CreateRequestGenerator::generate()
|
|||||||
plength = *path_length;
|
plength = *path_length;
|
||||||
auto path_candidate = generateRandomPath(path_prefix, plength);
|
auto path_candidate = generateRandomPath(path_prefix, plength);
|
||||||
|
|
||||||
while(paths_created.count(path_candidate))
|
while (paths_created.count(path_candidate))
|
||||||
path_candidate = generateRandomPath(path_prefix, plength);
|
path_candidate = generateRandomPath(path_prefix, plength);
|
||||||
|
|
||||||
paths_created.insert(path_candidate);
|
paths_created.insert(path_candidate);
|
||||||
|
Loading…
Reference in New Issue
Block a user