美文网首页Druid
使用 Imply 安装部署 Druid 集群并测试

使用 Imply 安装部署 Druid 集群并测试

作者: lei_charles | 来源:发表于2020-06-01 13:21 被阅读0次
    1. 下载 imply 安装包
      [root@node01 opt]# wget https://static.imply.io/release/imply-3.3.3.tar.gz
      
    2. 解压安装包并修改配置文件
      [root@node01 opt]# tar -xzf imply-3.3.3.tar.gz
      [root@node01 ~]# cd imply-3.3.3
      [root@node01 imply-3.3.3]# cd conf/druid/_common/
      [root@node01 imply-3.3.3]# vim common.runtime.properties
      

      修改配置文件

      #
      # Extensions
      #
      
      druid.extensions.directory=dist/druid/extensions
      druid.extensions.hadoopDependenciesDir=dist/druid/hadoop-dependencies
      druid.extensions.loadList=["mysql-metadata-storage", "druid-hdfs-storage", "druid-kafka-extraction-namespace", "druid-kafka-indexing-service", "druid-parquet-extensions"]
      
      #
      # Logging
      #
      
      # Log all runtime properties on startup. Disable to avoid logging properties on startup:
      druid.startup.logging.logProperties=true
      
      #
      # Zookeeper
      #
      
      druid.zk.service.host=bigdata-dev-zk-01:2181,bigdata-dev-zk-02:2181,bigdata-dev-zk-03:2181
      druid.zk.paths.base=/druid
      
      #
      # Metadata storage
      #
      
      # For MySQL:
      druid.metadata.storage.type=mysql
      druid.metadata.storage.connector.connectURI=jdbc:mysql://10.101.40.206:3306/druid
      druid.metadata.storage.connector.user=druid
      druid.metadata.storage.connector.password=druid
      
      #
      # Deep storage
      #
      
      
      # For HDFS:
      druid.storage.type=hdfs
      druid.storage.storageDirectory=hdfs://HDBDC/druid/segments
      
      #
      # Indexing service logs
      #
      
      # For HDFS:
      druid.indexer.logs.type=hdfs
      druid.indexer.logs.directory=hdfs://HDBDC/druid/indexing-logs
      
      #
      # Service discovery
      #
      
      druid.selectors.indexing.serviceName=druid/overlord
      druid.selectors.coordinator.serviceName=druid/coordinator
      
      #
      # Monitoring
      #
      
      druid.monitoring.monitors=["org.apache.druid.java.util.metrics.JvmMonitor"]
      druid.emitter=logging
      druid.emitter.logging.logLevel=debug
      
    3. 分发到集群其他节点
      [root@node01 opt]# zip -r imply-3.3.3.zip imply-3.3.3/
      [root@node01 opt]# scp -r imply-3.3.3.zip root@node02:/opt/
      
    4. 启动 imply

      启动主服务器:

      # --daemon 表示后台启动
      bin/supervise -c conf/supervise/master-no-zk.conf --daemon
      

      启动查询服务器:

      bin/supervise -c conf/supervise/query.conf --daemon
      

      启动数据服务器:

      bin/supervise -c conf/supervise/data.conf --daemon
      

      终止进程:

      bin/service --down
      

      访问地址: http://查询服务器IP:9095

    5. 导入数据

      查看官方文档: https://docs.imply.io/on-prem/quickstart

    相关文章

      网友评论

        本文标题:使用 Imply 安装部署 Druid 集群并测试

        本文链接:https://www.haomeiwen.com/subject/szruzhtx.html