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
84c71daf
Commit
84c71daf
authored
Apr 24, 2023
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 取数平台过滤项
parent
b6641bae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
HDFSUtil.java
...c/main/java/com/gic/cloud/data/hook/service/HDFSUtil.java
+3
-1
FlatQueryResultServiceImpl.java
...ud/data/hook/service/impl/FlatQueryResultServiceImpl.java
+3
-3
No files found.
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/HDFSUtil.java
View file @
84c71daf
...
@@ -47,7 +47,9 @@ public class HDFSUtil {
...
@@ -47,7 +47,9 @@ public class HDFSUtil {
*/
*/
public
boolean
downloadFile
(
String
srcPath
,
String
toPath
)
{
public
boolean
downloadFile
(
String
srcPath
,
String
toPath
)
{
try
{
try
{
fileSystem
.
copyToLocalFile
(
true
,
new
Path
(
srcPath
),
new
Path
(
toPath
));
Config
appConfig
=
ConfigService
.
getAppConfig
();
Integer
delFlag
=
appConfig
.
getIntProperty
(
"del.hive.flag"
,
1
);
fileSystem
.
copyToLocalFile
(
delFlag
.
intValue
()==
1
?
true
:
false
,
new
Path
(
srcPath
),
new
Path
(
toPath
));
return
true
;
return
true
;
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
logger
.
info
(
"下载失败:{}"
,
e
);
logger
.
info
(
"下载失败:{}"
,
e
);
...
...
gic-cloud-data-hook-service/src/main/java/com/gic/cloud/data/hook/service/impl/FlatQueryResultServiceImpl.java
View file @
84c71daf
...
@@ -978,15 +978,15 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
...
@@ -978,15 +978,15 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
task
.
setOverTime
(
new
Date
());
task
.
setOverTime
(
new
Date
());
task
.
setFilePath
(
cloudFileUrl
);
task
.
setFilePath
(
cloudFileUrl
);
//删除文件
delFileOrDirByTaskId
(
task
.
getId
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
info
(
"异常:{}"
,
e
);
logger
.
info
(
"异常:{}"
,
e
);
task
.
setStatus
(
DownloadTaskStatus
.
ERROR
);
task
.
setStatus
(
DownloadTaskStatus
.
ERROR
);
}
finally
{
}
finally
{
DownloadTaskServiceImpl
.
getInstance
().
updateDownloadTask
(
task
);
DownloadTaskServiceImpl
.
getInstance
().
updateDownloadTask
(
task
);
//删除文件
delFileOrDirByTaskId
(
task
.
getId
());
}
}
}
}
...
...
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