Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
duckula
duckula-ops
提交
92f1382e
duckula-ops
项目概览
duckula
/
duckula-ops
通知
6
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
duckula-ops
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
92f1382e
编写于
7月 23, 2021
作者:
偏锋书生
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
处理按钮可用性
上级
2d1b8272
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
26 addition
and
6 deletion
+26
-6
src/main/java/net/wicp/tams/duckula/ops/pages/devops/DorisConfig.java
...a/net/wicp/tams/duckula/ops/pages/devops/DorisConfig.java
+8
-3
src/main/java/net/wicp/tams/duckula/ops/pages/devops/FlinkConfig.java
...a/net/wicp/tams/duckula/ops/pages/devops/FlinkConfig.java
+3
-2
src/main/resources/net/wicp/tams/duckula/ops/pages/devops/FlinkConfig.tml
...es/net/wicp/tams/duckula/ops/pages/devops/FlinkConfig.tml
+15
-1
未找到文件。
src/main/java/net/wicp/tams/duckula/ops/pages/devops/DorisConfig.java
浏览文件 @
92f1382e
...
...
@@ -176,9 +176,14 @@ public class DorisConfig extends ParentPageBean<DevopsDoris> {
String
.
format
(
"sh %s"
,
IOUtil
.
mergeFolderAndFilePath
(
"~/"
,
DevOpsType
.
doris
.
getRelaPathCheck
())));
log
.
info
(
result
.
getMessage
());
if
(
result
.
isSuc
())
{
devopsDoris
.
setIsInit
(
YesOrNo
.
yes
.
name
());
devopsDorisMapper
.
updateByPrimaryKeySelective
(
devopsDoris
);
return
TapestryAssist
.
getTextStreamResponse
(
Result
.
getSuc
());
// 检查完成,符合条件,可以开始安装部署Doris
// 检查完成,当前环境不符合条件,无法安装Doirs需联络客户或者运维解决上述问
if
(
result
.
getMessage
().
contains
(
"检查完成,符合条件,可以开始安装部署Doris"
))
{
devopsDoris
.
setIsInit
(
YesOrNo
.
yes
.
name
());
devopsDorisMapper
.
updateByPrimaryKeySelective
(
devopsDoris
);
}
return
TapestryAssist
.
getTextStreamResponse
(
Result
.
getError
(
result
.
getMessage
()));
}
else
{
return
TapestryAssist
.
getTextStreamResponse
(
Result
.
getError
(
result
.
getMessage
()));
}
...
...
src/main/java/net/wicp/tams/duckula/ops/pages/devops/FlinkConfig.java
浏览文件 @
92f1382e
...
...
@@ -107,7 +107,7 @@ public class FlinkConfig extends ParentPageBean<DevopsFlink> {
return
TapestryAssist
.
getTextStreamResponse
(
Result
.
getError
(
"不能安装,需要有且仅有一台主机为prod-bigdata-flink03的服务器"
));
}
// 1、OSS下载
String
localPath
=
PathType
.
getPath
(
DevOpsType
.
flink
.
getInstallDownFile
());
String
localPath
=
PathType
.
getPath
(
DevOpsType
.
flink
.
getInstallDownFile
()
,
true
);
DevopsFlink
flink03
=
select
.
get
(
0
);
SSHConnection
conn
=
SSHAssit
.
getConn
(
flink03
.
getIp
(),
flink03
.
getRootUser
(),
flink03
.
getRootPwd
());
...
...
@@ -183,7 +183,7 @@ public class FlinkConfig extends ParentPageBean<DevopsFlink> {
freeparam
.
append
(
String
.
format
(
" %s %s %s"
,
flink
.
getRootUser
(),
flink
.
getHostname
(),
flink
.
getRootPwd
()));
}
// 1、OSS下载
String
localPath
=
PathType
.
getPath
(
DevOpsType
.
flink
.
getCheckDownFile
());
String
localPath
=
PathType
.
getPath
(
DevOpsType
.
flink
.
getCheckDownFile
()
,
true
);
// 1、登陆
SSHConnection
conn
=
SSHAssit
.
getConn
(
devopsFlink
.
getIp
(),
devopsFlink
.
getRootUser
(),
devopsFlink
.
getRootPwd
());
// String fileName = localPath.substring(localPath.lastIndexOf("/") + 1);
...
...
@@ -222,6 +222,7 @@ public class FlinkConfig extends ParentPageBean<DevopsFlink> {
Conf
.
overProp
(
"common.os.ssh.timeout"
,
"30000"
);
SSHConnection
freeconn
=
SSHAssit
.
getConn
(
devopsFlink2
.
getIp
(),
22
,
devopsFlink2
.
getRootUser
(),
devopsFlink2
.
getRootPwd
(),
5
*
6000
);
freeconn
.
executeCommand
(
"rm -rf ~/flink/*log "
);
try
{
// free,由于需要ssh到别的服务器,拿到到返回的日志,采用先做,重定向到~/flink/freelog,再查日志文件的方式完成
Result
freeRs
=
freeconn
.
executeCommand
(
String
.
format
(
"sh %s %s &>~/flink/freelog"
,
...
...
src/main/resources/net/wicp/tams/duckula/ops/pages/devops/FlinkConfig.tml
浏览文件 @
92f1382e
<html
t:type=
"rjzjh/layoutQuery"
queryButs=
"[{'id':'checkBut','iconCls':'icon-attach','text':'初始化服务器','url':'checkHost','confirm':'你确定要初始化此服务器吗?'},{'id':'installBut','iconCls':'icon-attach','text':'安装','url':'installHost','confirm':'你确定要安装flink吗?'}]"
<html
t:type=
"rjzjh/layoutQuery"
selectHandle=
"selectGrid"
queryButs=
"[{'id':'checkBut','iconCls':'icon-attach','text':'初始化服务器','url':'checkHost','confirm':'你确定要初始化此服务器吗?'},{'id':'installBut','iconCls':'icon-attach','text':'安装','url':'installHost','confirm':'你确定要安装flink吗?'}]"
xmlns:t=
"http://tapestry.apache.org/schema/tapestry_5_4.xsd"
xmlns:r=
"tapestry-library:rjzjh"
xmlns:s=
"tapestry-library:tams"
...
...
@@ -20,6 +20,20 @@
alert
(
"
do update:
"
+
row
.
id
)
}
function
selectGrid
(
row
){
if
(
row
){
//有选择行,刚进页面时为undefined
_bindButEvent
(
'
checkBut
'
);
if
(
and
(
row
.
isInit
==
'
yes
'
,
row
.
hostname
==
'
prod-bigdata-flink03
'
)){
_bindButEvent
(
'
installBut
'
);
}
else
{
_unbindButEvent
(
'
installBut
'
);
}
}
else
{
_unbindButEvent
(
'
checkBut
'
);
_unbindButEvent
(
'
installBut
'
);
}
}
function
saveCheck
(){
alert
(
"
新增或修改前的检查,跟据业务需求写前端较验:
"
);
//var deployComValue= $.rjzjh.getcombogrid('deployId_save','deploy');
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录