|
@@ -651,30 +651,30 @@ export HIVE_AUX_JARS_PATH=/opt/modules/atlas-2.2.0/hook/hive
|
|
|
1. 在`hdfs`中新建文件夹
|
|
|
|
|
|
```shell
|
|
|
- hadoop fs -mkdir /tmp/altas_data
|
|
|
+ hadoop fs -mkdir /tmp/atlas_data
|
|
|
```
|
|
|
|
|
|
2. 将这两张表的数据导出到`hdfs`中
|
|
|
|
|
|
```shell
|
|
|
- hbase org.apache.hadoop.hbase.mapreduce.Export apache_atlas_entity_audit hdfs://lab1:8020/tmp/hbase/altas_data/apache_atlas_entity_audit
|
|
|
+ hbase org.apache.hadoop.hbase.mapreduce.Export apache_atlas_entity_audit hdfs://lab1:8020/tmp/hbase/atlas_data/apache_atlas_entity_audit
|
|
|
|
|
|
- hbase org.apache.hadoop.hbase.mapreduce.Export apache_atlas_janus hdfs://lab1:8020/tmp/hbase/altas_data/apache_atlas_janus
|
|
|
+ hbase org.apache.hadoop.hbase.mapreduce.Export apache_atlas_janus hdfs://lab1:8020/tmp/hbase/atlas_data/apache_atlas_janus
|
|
|
```
|
|
|
|
|
|
3. 新建本地文件夹`altas_data`,将导出的文件保存到该文件夹内
|
|
|
|
|
|
```shell
|
|
|
- hadoop fs -get /tmp/hbase/altas_data/apache_atlas_entity_audit ./
|
|
|
+ hadoop fs -get /tmp/hbase/atlas_data/apache_atlas_entity_audit ./
|
|
|
|
|
|
- hadoop fs -get /tmp/hbase/altas_data/apache_atlas_janus ./
|
|
|
+ hadoop fs -get /tmp/hbase/atlas_data/apache_atlas_janus ./
|
|
|
```
|
|
|
|
|
|
4. 将这两份文件上传至目标机器的`hdfs`中
|
|
|
|
|
|
```shell
|
|
|
# 将上述的两个文件夹,放入lab2j
|
|
|
- hdfs dfs -put ./altas_data/ hdfs://lab1:8020/tmp/
|
|
|
+ hdfs dfs -put ./atlas_data/ hdfs://lab1:8020/tmp/
|
|
|
```
|
|
|
|
|
|
5. 查看`hbase`表结构并在目标机器中创建这两张表,注意需要删除原表结构中的`TTL => 'FOREVER'`
|
|
@@ -690,7 +690,7 @@ export HIVE_AUX_JARS_PATH=/opt/modules/atlas-2.2.0/hook/hive
|
|
|
6. 将导出的数据导入到新建的`hbase`表中
|
|
|
|
|
|
```shell
|
|
|
- hbase org.apache.hadoop.hbase.mapreduce.Import apache_atlas_janus hdfs://lab1:8020/tmp/atlas_data/apache_atlas_entity_audit
|
|
|
+ hbase org.apache.hadoop.hbase.mapreduce.Import apache_atlas_entity_audit hdfs://lab1:8020/tmp/atlas_data/apache_atlas_entity_audit
|
|
|
|
|
|
hbase org.apache.hadoop.hbase.mapreduce.Import apache_atlas_janus hdfs://lab1:8020/tmp/atlas_data/apache_atlas_janus
|
|
|
```
|
|
@@ -767,3 +767,4 @@ echo 1 > /proc/sys/vm/overcommit_memory
|
|
|
| solr | 7.7.3 |
|
|
|
| atlas | 2.2.0 |
|
|
|
|
|
|
+
|