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
db06cf50
Commit
db06cf50
authored
Jun 30, 2025
by
fangxingjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6f9c3a4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
templates.py
Pyspark_job/utils/templates.py
+1
-1
No files found.
Pyspark_job/utils/templates.py
View file @
db06cf50
...
@@ -94,7 +94,7 @@ class Templates(object):
...
@@ -94,7 +94,7 @@ class Templates(object):
self
.
test_flag
=
'normal'
self
.
test_flag
=
'normal'
self
.
beginning_offsets_dict
=
{}
# history消费时, 初始的偏移量
self
.
beginning_offsets_dict
=
{}
# history消费时, 初始的偏移量
# redis连接对象--用来锁定--解决并发
# redis连接对象--用来锁定--解决并发
self
.
client
=
redis
.
Redis
(
host
=
'192.168.10.224'
,
port
=
6379
,
db
=
9
,
password
=
'
yswg2023
'
)
self
.
client
=
redis
.
Redis
(
host
=
'192.168.10.224'
,
port
=
6379
,
db
=
9
,
password
=
'
xA9!wL3pZ@q2
'
)
def
create_spark_object
(
self
,
app_name
=
None
):
def
create_spark_object
(
self
,
app_name
=
None
):
if
self
.
topic_name
!=
''
:
if
self
.
topic_name
!=
''
:
...
...
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