Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
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
data-hook
gic-cloud
Commits
39dd3ad1
Commit
39dd3ad1
authored
Apr 26, 2023
by
fudahua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-2023-04' into 'developer'
Fix 2023 04 See merge request
!101
parents
d1c8e7fa
539b6e82
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+5
-4
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
39dd3ad1
...
...
@@ -921,6 +921,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
logger
.
info
(
"不存在"
);
return
;
}
boolean
delHiveFile
=
true
;
Integer
queryDataType
=
task
.
getQueryDataType
();
FlatQueryTaskCondition
condition
=
JSON
.
parseObject
(
task
.
getDownloadCondition
(),
FlatQueryTaskCondition
.
class
);
if
(!
task
.
getStatus
().
equals
(
DownloadTaskStatus
.
BUILDING
))
{
...
...
@@ -932,8 +933,6 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
//下载文件
String
dirName
=
HDFSUtil
.
getInstance
().
getHdfsName
(
task
.
getId
());
String
path
=
HDFSUtil
.
getInstance
().
getHdfsPath
(
task
.
getId
());
HDFSUtil
.
getInstance
().
getHdfsName
(
task
.
getId
());
try
{
StopWatch
stopWatch
=
StopWatch
.
create
(
"down"
);
stopWatch
.
start
();
...
...
@@ -969,6 +968,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
if
(
task
.
getAmount
()!=
total
.
intValue
())
{
String
msg
=
"取数任务:"
+
task
.
getId
()+
"下载数量对不上: 数量: "
+
task
.
getAmount
()+
"->"
+
total
;
DingWarningUtil
.
sendCountWarning
(
msg
);
delHiveFile
=
false
;
}
stopWatch
.
start
();
//是否压缩
...
...
@@ -995,8 +995,6 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
task
.
setOverTime
(
new
Date
());
task
.
setFilePath
(
cloudFileUrl
);
}
catch
(
Exception
e
)
{
logger
.
info
(
"异常:{}"
,
e
);
task
.
setStatus
(
DownloadTaskStatus
.
ERROR
);
...
...
@@ -1004,6 +1002,9 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
DownloadTaskServiceImpl
.
getInstance
().
updateDownloadTask
(
task
);
//删除文件
delFileOrDirByTaskId
(
task
.
getId
());
if
(
delHiveFile
)
{
HDFSUtil
.
getInstance
().
deleteFile
(
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