[B]Superset版本适配改造(一)1.0.7+
# 背景说明
Bigtop 作为大数据组件统一集成框架,核心的入口配置文件为 bigtop.bom
,
它是所有组件版本、下载、tar 包结构和安装逻辑的元信息清单
,可类比为“大数据发行版的物料清单”
BOM 文件作用
BOM(Bill of Materials)不仅准确描述每个组件的基础版本、下载源、压缩包名、tarball 路径及其解压方式,还承载了所有后续 Gradle 编译、RPM 包打包等自动化的最基础数据支撑。
# 第一步:新增 Superset 的 BOM 配置段
Superset 作为可视化入口组件,需要单独配置 BOM,示例代码如下,路径通常位于:
bigtop/bigtop.bom
1
请参考下方 Superset 4.1.2 的配置写法:
'superset' {
name = 'superset'
rpm_pkg_suffix = "_" + bigtop.base_version.replace(".", "_")
relNotes = 'superset v4.1.2'
version { base = '4.1.2'; pkg = base; release = 1 }
tarball {
source = "${version.base}.tar.gz"
destination = "${name}-${version.base}.tar.gz"
}
url {
site = bigtop.gh_proxy + "https://github.com/apache/superset/archive/refs/tags/"
archive = site
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
笔记
其中 source
字段要与实际上传到 /opt/modules/bigtop/dl/
下的 tar 包名称严格一致,否则会报找不到源包路径。