Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abel_cjy
Amazon-Selection-Data
Commits
e37ab9a7
Commit
e37ab9a7
authored
Jun 13, 2026
by
hejiangming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
bef91688
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
dws_st_theme.py
Pyspark_job/sqoop_export/dws_st_theme.py
+1
-1
No files found.
Pyspark_job/sqoop_export/dws_st_theme.py
View file @
e37ab9a7
...
@@ -28,7 +28,7 @@ if __name__ == '__main__':
...
@@ -28,7 +28,7 @@ if __name__ == '__main__':
# 获取数据库连接
# 获取数据库连接
engine
=
DBUtil
.
get_db_engine
(
db_type
,
site_name
)
engine
=
DBUtil
.
get_db_engine
(
db_type
,
site_name
)
# 导出前校验 Hive 分区是否有数据,避免空分区触发交换导致 PG 数据被清空
# 导出前校验 Hive 分区是否有数据,避免空分区触发交换导致 PG 数据被清空
hive_partition_path
=
f
"/home/big_data_selection/dw
t
/dws_st_theme/site_name={site_name}/date_type={date_type}/date_info={date_info}"
hive_partition_path
=
f
"/home/big_data_selection/dw
s
/dws_st_theme/site_name={site_name}/date_type={date_type}/date_info={date_info}"
hive_files
=
HdfsUtils
.
read_list
(
hive_partition_path
)
hive_files
=
HdfsUtils
.
read_list
(
hive_partition_path
)
if
not
hive_files
:
if
not
hive_files
:
print
(
f
"[ERROR] Hive 分区无数据文件,路径:{hive_partition_path},跳过导出,请先检查 DWT 计算任务是否正常写入!"
)
print
(
f
"[ERROR] Hive 分区无数据文件,路径:{hive_partition_path},跳过导出,请先检查 DWT 计算任务是否正常写入!"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment