Druid Uses BOS as Deep Storage
Druid
Apache Druid is a high-performance real-time analytics database. Designed specifically for workflows that require rapid data querying and ingestion, it excels in instant data visibility, ad-hoc queries, operational analysis, and high concurrency workloads.
The BOS-HDFS plugin allows BOS to serve as deep storage for storing data.
Install
1. Prepare environment
Download and install Druid (installation steps omitted).
Download the required jar packages from BOS-HDFS and copy them to the extensions/druid-hdfs-storage directory under the Druid installation path.
2. Modify configuration
Modify the conf/druid/_common/common.runtime.properties file to enable access to BOS via HDFS.
1druid.extensions.loadList=["druid-hdfs-storage"]
2druid.storage.type=hdfs
3druid.storage.storageDirectory=bos://{bucket}/druid-path
Create a new HDFS configuration file named hdfs-site.xml in the conf/druid/_common/ directory, and configure the BOS access parameters.
1<?xml version="1.0" encoding="UTF-8"?>
2<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
3<!--
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7 http://www.apache.org/licenses/LICENSE-2.0
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 See the License for the specific language governing permissions and
12 limitations under the License. See accompanying LICENSE file.
13-->
14<!-- Put site-specific property overrides in this file. -->
15<configuration>
16 <property>
17 <name>fs.bos.access.key</name>
18 <value>{Your AK}</value>
19 </property>
20 <property>
21 <name>fs.bos.secret.access.key</name>
22 <value>{Your SK}</value>
23 </property>
24 <property>
25 <name>fs.bos.endpoint</name>
26 <value>http://bj.bcebos.com</value>
27 </property>
28 <property>
29 <name>fs.bos.impl</name>
30 <value>org.apache.hadoop.fs.bos.BaiduBosFileSystem</value>
31 </property>
32 <property>
33 <name>fs.AbstractFileSystem.bos.impl</name>
34 <value>org.apache.hadoop.fs.bos.BOS</value>
35 </property>
36</configuration>
For more configurable properties, see BOS-HDFS.
Use
Activate Druid-related services to leverage BOS as deep storage for data storage needs.
