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
4d099971
Commit
4d099971
authored
Apr 01, 2026
by
hejiangming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周增长数据导出到周趋势表 增大内存
parent
9b73754f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
dim_st_detail_week.py
Pyspark_job/sqoop_export/dim_st_detail_week.py
+2
-1
No files found.
Pyspark_job/sqoop_export/dim_st_detail_week.py
View file @
4d099971
...
...
@@ -134,7 +134,8 @@ if __name__ == '__main__':
# 第2步:Spark SQL 从 dim_st_detail_week 写入 dwt_st_base_report
print
(
"================================写入周趋势数据到Hive================================"
)
spark
=
SparkUtil
.
get_spark_session
(
f
"export_dim_st_detail_week_trend:{site_name} {date_type} {date_info}"
)
# V3 分配了资源 dim_st_detail_week的周数据量比较大默认的可能读写资源不够 卡住
spark
=
SparkUtil
.
get_spark_sessionV3
(
f
"export_dim_st_detail_week_trend:{site_name} {date_type} {date_info}"
)
dwt_hive_tb
=
"dwt_st_base_report"
dwt_hdfs_path
=
f
"/home/big_data_selection/dwt/{dwt_hive_tb}/site_name={site_name}/date_type=week/date_info={date_info}"
print
(
f
"清除hdfs目录中数据:{dwt_hdfs_path}"
)
...
...
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