Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[Druid] stand-alone Druid installation process

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Record the installation process of Druid stand-alone version, which is generally the same as the official website installation process, and add individual situations and solutions that are inconsistent with the official website installation.

Druid runs on zookeeper as a distributed coordination service, download and install zookeeper

wget https://archive.apache.org/dist/zookeeper/zookeeper-3.4.11/zookeeper-3.4.11.tar.gztar -zvf zookeeper-3.4.14.tar.gzln -s zookeeper-3.4.14 zookeeper

Download Druid installation package:

wget http://mirrors.tuna.tsinghua.edu.cn/apache/incubator/druid/0.15.0-incubating/apache-druid-0.15.0-incubating-bin.tar.gztar -zxf apache-druid-0.15.0-incubating-bin.tar.gzln -s apache-druid-0.15.0-incubating druid

Configure the ~/.bash_profile environment variable

vim ~/.bash_profile

export JAVA_HOME=/home/homework/jdkexport ZK_HOME=/home/homework/zookeeperexport DRUID_HOME=/home/homework/druidexport KAFKA_HOME=/home/homework/kafkaexport PATH=$PATH:$JAVA_HOME/bin:$ZK_HOME/bin:$DRUID_HOME/bin:$KAFKA_HOME/bin

Reload environment variables

source ~/.bash_profile

Start zookeeper

zkServer.sh start

ZooKeeper JMX enabled by default

Using config: /home/homework/zookeeper/bin/../ conf/zoo.cfg

Starting zookeeper ... STARTED

Start druid

[homework@test druid]$ start-micro-quickstart [Thu Aug 15 19:51:07 2019] Running command[zk], logging to[/mnt/homework/apache-druid-0.15.0-incubating/var/sv/zk.log]: bin/run-zk conf[Thu Aug 15 19:51:07 2019] Running command[coordinator-overlord], logging to[/mnt/homework/apache-druid-0.15.0-incubating/var/sv/coordinator-overlord.log]: bin/run-druid coordinator-overlord conf/druid/single-server/micro-quickstart[Thu Aug 15 19:51:07 2019] Running command[broker], logging to[/mnt/homework/apache-druid-0.15.0-incubating/var/sv/broker.log]: bin/run-druid broker conf/druid/single-server/micro-quickstart[Thu Aug 15 19:51:07 2019] Running command[router], logging to[/mnt/homework/apache-druid-0.15.0-incubating/var/sv/router.log]: bin/run-druid router conf/druid/single-server/micro-quickstart[Thu Aug 15 19:51:07 2019] Running command[historical], logging to[/mnt/homework/apache-druid-0.15.0-incubating/var/sv/historical.log]: bin/run-druid historical conf/druid/single-server/micro-quickstart[Thu Aug 15 19:51:07 2019] Running command[middleManager], logging to[/mnt/homework/apache-druid-0.15.0-incubating/var/sv/middleManager.log]: bin/run-druid middleManager conf/druid/single-server/micro-quickstart[Thu Aug 15 19:51:08 2019] Command[zk] exited (pid = 25982, exited = 1)[Thu Aug 15 19:51:08 2019] Command[zk] failed, see logfile for more details: /mnt/homework/apache-druid-0.15.0-incubating/var/sv/zk.log[Thu Aug 15 19:51:11 2019] Running command[zk], logging to[/mnt/homework/apache-druid-0.15.0-incubating/var/sv/zk.log]: bin/run-zk conf

I'm going to make a mistake when I execute this order. The requested URL/mnt/homework/apache-druid-0.15.0-incubating/var/sv/zk.log was not found on this server. The main reason is that the official website requires zookeeper to be placed in the root directory of druid as a zk folder.

Since I'm here zookeeper's installation is in a sibling directory with druid and other components. So a soft link is created in the druid installation directory, pointing to zk

cd /home/homework/druidln -s /home/homework/zookeeper zk

In this case, druid can be started.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report