Apache Druid 单机环境搭建

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

下载

http://druid.io/downloads.html 下载druid-0.10.1-bin.tar.gz. ,mysql-metadata-storage-0.10.1.tar.gz

解压

修改日志配置 /druid/druid-0.10.0/conf-quickstart/druid/_common/log4j2.xml




    %d{yyyy-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L - %msg%n
    %msg%n
    %d %-8r %m%n
	logs


 
        
            ${pattern}
        
        
             
        
        
    
	
	
        
            ${patternMetrics}
        
        
            
        
        
    
	
	

   
    
   
    
        
    
   



  • 每个节点 中添加 -Dlogfile.name=节点名称

修改common.runtime.properties

  • 添加扩展
druid.extensions.loadList=["druid-kafka-indexing-service", "druid-hdfs-storage", "mysql-metadata-storage"]
  • mysql 配置(存储元数据)
druid.metadata.storage.type=mysql
druid.metadata.storage.connector.connectURI=jdbc:mysql://ip:3306/druid
druid.metadata.storage.connector.user=
druid.metadata.storage.connector.password=
  • hdfs 配置(深度存储)
druid.storage.type=hdfs
# hdfs fs.defaultFs 值
druid.storage.storageDirectory=hdfs://hadoop/druid/segments

Indexing service logs

druid.indexer.logs.type=hdfs
# hdfs fs.defaultFs 值
druid.indexer.logs.directory=hdfs://hadoop/druid/indexing-logs

hdfs 配置文件(druid/druid-0.10.0/conf-quickstart/druid/_common)

core-site.xml hdfs-site.xml

时区修改(东八区)

  • Duser.timezone=UTC+0800

转载于:https://my.oschina.net/u/3247419/blog/1553128

你可能感兴趣的:(Apache Druid 单机环境搭建)