Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
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
wangpeng
dinky
Commits
2cde200a
Unverified
Commit
2cde200a
authored
Sep 02, 2022
by
aiwenmo
Committed by
GitHub
Sep 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Feature-987][admin] ClusterConfig and jar add upload file (#988)
Co-authored-by:
wenmo
<
32723967+wenmo@users.noreply.github.com
>
parent
4f04d9ad
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
21 deletions
+8
-21
pom.xml
dlink-admin/pom.xml
+3
-16
UploadFileConstant.java
.../src/main/java/com/dlink/constant/UploadFileConstant.java
+1
-1
FileUploadController.java
.../main/java/com/dlink/controller/FileUploadController.java
+2
-2
pom.xml
dlink-client/dlink-client-hadoop/pom.xml
+1
-1
dlink_history.sql
dlink-doc/sql/dlink_history.sql
+1
-1
ClusterConfigurationForm.tsx
...sterConfiguration/components/ClusterConfigurationForm.tsx
+0
-0
index.tsx
dlink-web/src/pages/Jar/index.tsx
+0
-0
No files found.
dlink-admin/pom.xml
View file @
2cde200a
...
...
@@ -197,22 +197,9 @@
</dependency>
<!-- hadoop -->
<dependency>
<groupId>
org.apache.hadoop
</groupId>
<artifactId>
hadoop-hdfs
</artifactId>
<version>
3.3.2
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.apache.hadoop
</groupId>
<artifactId>
hadoop-hdfs-client
</artifactId>
<version>
3.3.2
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.apache.hadoop
</groupId>
<artifactId>
hadoop-common
</artifactId>
<version>
3.3.2
</version>
<scope>
provided
</scope>
<groupId>
com.dlink
</groupId>
<artifactId>
dlink-client-hadoop
</artifactId>
<scope>
${scope.runtime}
</scope>
</dependency>
</dependencies>
...
...
dlink-admin/src/main/java/com/dlink/constant/UploadFileConstant.java
View file @
2cde200a
...
...
@@ -45,7 +45,7 @@ public class UploadFileConstant {
// Upload file's dir constant----------------------------------------------------------------------------------------
static
{
// Get admin jar's parent absolute path
DLINK_HOME_DIR
=
new
ApplicationHome
(
UploadFileConstant
.
class
).
getSource
().
getParent
();
DLINK_HOME_DIR
=
new
ApplicationHome
(
UploadFileConstant
.
class
).
getSource
().
getParent
()
+
"/../"
;
}
public
static
final
String
DLINK_HOME_DIR
;
...
...
dlink-admin/src/main/java/com/dlink/controller/FileUploadController.java
View file @
2cde200a
...
...
@@ -27,7 +27,7 @@ import org.apache.commons.lang3.StringUtils;
import
javax.annotation.Resource
;
import
org.springframework.web.bind.annotation.P
u
tMapping
;
import
org.springframework.web.bind.annotation.P
os
tMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestPart
;
...
...
@@ -55,7 +55,7 @@ public class FileUploadController {
* @param fileType Please refer {@link UploadFileConstant}, default is -1. If not provide, please provide the 'dir' value
* @return {@link Result}
*/
@P
u
tMapping
@P
os
tMapping
public
Result
upload
(
@RequestPart
(
"files"
)
MultipartFile
[]
files
,
@RequestParam
(
value
=
"dir"
,
defaultValue
=
""
,
required
=
false
)
String
dir
,
@RequestParam
(
value
=
"fileType"
,
defaultValue
=
"-1"
,
required
=
false
)
Byte
fileType
)
{
...
...
dlink-client/dlink-client-hadoop/pom.xml
View file @
2cde200a
...
...
@@ -30,7 +30,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<!--<scope.type>provided</scope.type>-->
<hadoop.version>
3.
1.0
</hadoop.version>
<hadoop.version>
3.
3.2
</hadoop.version>
<scope.type>
compile
</scope.type>
</properties>
...
...
dlink-doc/sql/dlink_history.sql
View file @
2cde200a
...
...
@@ -709,7 +709,7 @@ CREATE TABLE `dlink_fragment` (
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'全局变量'
;
-- 0.
7.7-SNAPSHOT 2022-08-2
2
-- 0.
6.7-SNAPSHOT 2022-09-0
2
-- -----------------------
-- DROP TABLE IF EXISTS `dlink_upload_file_record`;
CREATE
TABLE
`dlink_upload_file_record`
(
...
...
dlink-web/src/pages/ClusterConfiguration/components/ClusterConfigurationForm.tsx
View file @
2cde200a
This diff is collapsed.
Click to expand it.
dlink-web/src/pages/Jar/index.tsx
View file @
2cde200a
This diff is collapsed.
Click to expand it.
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