Druid的imply方式安装:Druid的imply方式安装
Druid的imply方式安装:Druid的imply方式安装middleManager 中间管理者,负责写数据处理overlord统治节点,管理数据写入任务http://localhost:8090/console.htmlzookeeper分布式协调服务——coordinator协调节点,管理集群状态http://localhost:8081/#/broker查询节点,处理查询请求http://localhost:8082/druid/v2historical历史节点,管理历史数据http://localhost:8083/druid/v2
Imply简介Druid 原生的配置较麻烦,而Imply 基于Druid 进行了一些组件的开发,提供开源社区版本和商业版,简化了部署,开发了一些应用.https://imply.io/product
安装首先我们选择安装版本,这里我们用3.2.0的版本,-可以nohup 后台执行
wget https://static.imply.io/release/imply-3.2.0.tar.gz
tar zxvf imply-3.2.0.tar.gz -C /usr/local/
cd imply-3.2.0
nohup bin/supervise -c conf/supervise/quickstart.conf > quickstart.log &
查看日志
➜ imply-3.2.0 tail -f quickstart.log
[Thu Mar 26 15:18:11 2020] Running command[zk] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/zk]: bin/run-zk conf-quickstart
[Thu Mar 26 15:18:11 2020] Running command[coordinator] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/coordinator]: bin/run-druid coordinator conf-quickstart
[Thu Mar 26 15:18:11 2020] Running command[broker] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/broker]: bin/run-druid broker conf-quickstart
[Thu Mar 26 15:18:11 2020] Running command[router] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/router]: bin/run-druid router conf-quickstart
[Thu Mar 26 15:18:11 2020] Running command[historical] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/historical]: bin/run-druid historical conf-quickstart
[Thu Mar 26 15:18:11 2020] Running command[overlord] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/overlord]: bin/run-druid overlord conf-quickstart
[Thu Mar 26 15:18:11 2020] Running command[middleManager] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/middleManager]: bin/run-druid middleManager conf-quickstart
[Thu Mar 26 15:18:11 2020] Running command[pivot] logging to[/Users/mac-pro/softwore/imply-3.2.0/var/sv/pivot]: bin/run-pivot-quickstart conf-quickstart
日志结果
可见启动了如下服务
zookeeper分布式协调服务——coordinator协调节点,管理集群状态http://localhost:8081/#/
broker查询节点,处理查询请求http://localhost:8082/druid/v2
historical历史节点,管理历史数据http://localhost:8083/druid/v2
overlord统治节点,管理数据写入任务http://localhost:8090/console.html
middleManager 中间管理者,负责写数据处理
imply-ui 数据查询Web UI http://localhost:9095/datasets/
查看配置项日志进入 cd imply-3.2.0/var/sv/{配置项名称}
比如:
cd imply-3.2.0/var/sv/middleManager
ls
config current lock
cat current
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=var/tmp
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=<NA>
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.name=Mac OS X
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.arch=x86_64
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.version=10.14.5
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.name=mac-por
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.home=/Users/mac-pro
2020-03-26T07:16:01 691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.dir=/Users/mac-pro/softwore/imply-3.2.0
2020-03-26T07:16:01 692 INFO [main] org.apache.zookeeper.ZooKeeper - Initiating client connection connectString=localhost sessionTimeout=30000 watcher=org.apache.curator.ConnectionState@467b0f6e
2020-03-26T07:16:01 710 INFO [main] org.apache.curator.framework.imps.CuratorFrameworkImpl - Default schema
2020-03-26T07:16:01 713 INFO [main] org.apache.druid.indexing.worker.WorkerCuratorCoordinator - WorkerCuratorCoordinator good to go sir. Server[localhost:8091]
2020-03-26T07:16:01 713 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error)
2020-03-26T07:16:01 733 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Socket connection established to localhost/0:0:0:0:0:0:0:1:2181 initiating session
2020-03-26T07:16:01 740 INFO [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn - Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181 sessionid = 0x100013b07c50004 negotiated timeout = 30000
2020-03-26T07:16:01 743 INFO [main-EventThread] org.apache.curator.framework.state.ConnectionStateManager - State change: CONNECTED
2020-03-26T07:16:01 783 INFO [main] org.apache.druid.java.util.common.lifecycle.Lifecycle - Starting lifecycle [module] stage [SERVER]
2020-03-26T07:16:01 786 INFO [main] org.eclipse.jetty.server.Server - jetty-9.4.12.v20180830; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94a92186989f695db2d7b21ebc51; jvm 1.8.0_241-b07
2020-03-26T07:16:01 787 INFO [NodeRoleWatcher[OVERLORD]] org.apache.druid.curator.discovery.CuratorDruidNodeDiscoveryProvider$NodeRoleWatcher - Node watcher of role[overlord] is now initialized.
2020-03-26T07:16:01 805 INFO [main] org.eclipse.jetty.server.session - DefaultSessionIdManager workerName=node0
2020-03-26T07:16:01 805 INFO [main] org.eclipse.jetty.server.session - No SessionScavenger set using defaults
2020-03-26T07:16:01 806 INFO [main] org.eclipse.jetty.server.session - node0 Scavenging every 600000ms
2020-03-26T07:16:01 862 INFO [main] com.sun.jersey.server.impl.application.WebApplicationImpl - Initiating Jersey application version 'Jersey: 1.19.3 10/24/2016 03:43 PM'
2020-03-26T07:16:02 197 INFO [main] org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@106c988{/ null AVAILABLE}
2020-03-26T07:16:02 208 INFO [main] org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@27f71195{HTTP/1.1 [http/1.1]}{0.0.0.0:8091}
2020-03-26T07:16:02 209 INFO [main] org.eclipse.jetty.server.Server - Started @38606ms
2020-03-26T07:16:02 217 INFO [main] org.apache.druid.java.util.common.lifecycle.Lifecycle - Starting lifecycle [module] stage [ANNOUNCEMENTS]
2020-03-26T07:16:02 226 INFO [main] org.apache.druid.curator.discovery.CuratorDruidNodeAnnouncer - Announced self [{"druidNode":{"service":"druid/middlemanager" "host":"localhost" "bindOnHost":false "plaintextPort":8091 "port":-1 "tlsPort":-1 "enablePlaintextPort":true "enableTlsPort":false} "nodeType":"middleManager" "services":{"workerNodeService":{"type":"workerNodeService" "ip":"bogon" "capacity":2 "version":"0" "category":"_default_worker_category"}}}].
2020-03-26T07:16:02 226 INFO [main] org.apache.druid.java.util.common.lifecycle.Lifecycle - Successfully started lifecycle [module]
看到Successful表示运行成功。
数据查询Web UI访问http://localhost:9095,可以查看当前数据集的概况和字段信息等
imply-ui
访问http://localhost:8888/可以看到Druid管理界面
Druid-UI
总结至此imply就已经安装完毕了。大家用起来吧。