这里是以Atlas2.2.0解析为主

打开源码之后展示出来的效果这样,这里面我们看的是addons(插件),主要研究的是导入hive元数据的原理。在这里我们需要明白的是在导入hive元数据的时候分为两个阶段:全量导入和增量导入。这两种导入的方式是按照两套代码进行的。

在我们进行全量导入的时候,我们只需要执行import-hive.sh文件,即可进行全量的导入。
Import-hive.sh文件中的源码
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITH