Sha256: b4137bc41c89fb8de868c018d275bc9988c3a6086fa0ad2bd10c2142386d9e13
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
module Druid module Queries module Datasource java_import org.apache.zookeeper.ZKUtil ZOOKEEPER_BEAMS_PATH = '/tranquility/beams/druid:overlord'.freeze delegate :datasource_enabled?, :datasource_info, :disable_datasource, :list_datasources, to: :coordinator def delete_datasource(datasource_name) shutdown_tasks(datasource_name) datasource_enabled?(datasource_name) ? disable_datasource(datasource_name) : true writer.remove_tranquilizer_for_datasource(datasource_name) delete_zookeeper_nodes(datasource_name) if config.strong_delete end def delete_datasources list_datasources.each{ |datasource_name| delete_datasource(datasource_name) } end private def delete_zookeeper_nodes(datasource_name) curator = Druid::Writer::Tranquilizer::Curator.build(config) curator.start zk = curator.getZookeeperClient.getZooKeeper ZKUtil.deleteRecursive(zk, ZOOKEEPER_BEAMS_PATH + "/#{datasource_name}") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jruby-druid-1.0.0.pre.rc4 | lib/druid/queries/datasource.rb |
jruby-druid-1.0.0.pre.rc3 | lib/druid/queries/datasource.rb |