龙空技术网

Druid的imply方式安装

阿毛杂记 103

前言:

现时朋友们对“apachehostssession”大体比较关心,看官们都需要学习一些“apachehostssession”的相关文章。那么小编也在网摘上收集了一些对于“apachehostssession””的相关资讯,希望看官们能喜欢,姐妹们一起来学习一下吧!

Imply简介

Druid 原生的配置较麻烦,而Imply 基于Druid 进行了一些组件的开发,提供开源社区版本和商业版,简化了部署,开发了一些应用.

安装

首先我们选择安装版本,这里我们用3.2.0的版本,-可以nohup 后台执行

wget  tar zxvf imply-3.2.0.tar.gz -C /usr/local/cd imply-3.2.0nohup 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协调节点,管理集群状态

broker查询节点,处理查询请求

historical历史节点,管理历史数据

overlord统治节点,管理数据写入任务

middleManager 中间管理者,负责写数据处理

imply-ui 数据查询Web UI

查看配置项日志

进入 cd imply-3.2.0/var/sv/{配置项名称}

比如:

cd imply-3.2.0/var/sv/middleManagerlsconfig  current lockcat current2020-03-26T07:16:01,691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=var/tmp2020-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 X2020-03-26T07:16:01,691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.arch=x86_642020-03-26T07:16:01,691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:os.version=10.14.52020-03-26T07:16:01,691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.name=mac-por2020-03-26T07:16:01,691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.home=/Users/mac-pro2020-03-26T07:16:01,691 INFO [main] org.apache.zookeeper.ZooKeeper - Client environment:user.dir=/Users/mac-pro/softwore/imply-3.2.02020-03-26T07:16:01,692 INFO [main] org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=localhost sessionTimeout=30000 watcher=org.apache.curator.ConnectionState@467b0f6e2020-03-26T07:16:01,710 INFO [main] org.apache.curator.framework.imps.CuratorFrameworkImpl - Default schema2020-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 session2020-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 = 300002020-03-26T07:16:01,743 INFO [main-EventThread] org.apache.curator.framework.state.ConnectionStateManager - State change: CONNECTED2020-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-b072020-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=node02020-03-26T07:16:01,805 INFO [main] org.eclipse.jetty.server.session - No SessionScavenger set, using defaults2020-03-26T07:16:01,806 INFO [main] org.eclipse.jetty.server.session - node0 Scavenging every 600000ms2020-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 @38606ms2020-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

访问,可以查看当前数据集的概况和字段信息等

imply-ui

访问可以看到Druid管理界面

Druid-UI

总结

至此imply就已经安装完毕了。大家用起来吧。

标签: #apachehostssession