TDH 更新Inceptor UDF步骤

更新Inceptor UDF步骤


1. 在终端窗口1,上传UDF Jar包aa-inceptor-function-0.0.1-SNAPSHOT.jar到192.168.1.1服务器的 /tmp/backUdfJar  目录
2. 在终端窗口1,查询Inceptor server镜像
[root@test-tdh01 backUdfJar]# docker images | grep inceptor
test-tdh01:5000/transwarp/inceptor    transwarp-6.0.2-final     64c28fe2025c        10 minutes ago      3.84GB

镜像名为: test-tdh01:5000/transwarp/inceptor:transwarp-6.0.2-final

备份当前镜像 
docker tag 64c28fe2025c test-tdh01:5000/transwarp/inceptor:transwarp-6.0.2-final_Backup

3. 在终端窗口1,进入容器
[root@test-tdh01 ~]# docker run -ti -v /tmp/backUdfJar:/tmp/new  test-tdh01:5000/transwarp/inceptor:transwarp-6.0.2-final bash
[root@7896d4e8f158 ~]# 

4. 在终端窗口1,容器中执行命令,替换jar包
[root@7896d4e8f158 ~]# mv /tmp/new/aa-inceptor-function-0.0.1-SNAPSHOT.jar  /usr/lib/inceptor/lib

5. 在终端窗口1,容器中验证是否替换成功,核对时间和包大小
[root@7896d4e8f158 ~]# ll /usr/lib/inceptor/lib/ | grep aa-inceptor
-rw-r--r-- 1 root root    31007 Apr  8 15:12 aa-inceptor-function-0.0.1-SNAPSHOT.jar

6. 保留终端窗口1,另起一个终端窗口2,终端窗口2中执行命令,可以找出上面第3步运行的docer id
[root@test-tdh01 ~]# docker ps | grep inceptor
7896d4e8f158        test-tdh01:5000/transwarp/inceptor:transwarp-6.0.2-final   "bash"                   3 minutes ago       Up 3 minutes                            youthful_goldberg

找出docer id为:7896d4e8f158

7. 终端窗口2,更新docker镜像
docker commit  -a  “inceptor-udfs”  7896d4e8f158 test-tdh01:5000/transwarp/inceptor:transwarp-6.0.2-final

8. 终端窗口2,提交修改的image到仓库中
docker push test-tdh01:5000/transwarp/inceptor:transwarp-6.0.2-final

9. 在终端窗口1,退出容器
[root@7896d4e8f158 ~]# exit
exit
[root@test-tdh01 ~]# 

10. 登录http://192.168.1.1:8180 页面,重启Inceptor服务

11. 注册函数,UDF函数生效
--删除永久函数
drop permanent function betaUDF;
drop permanent function chkunitrdNavUDF;
...
--注册永久函数
create permanent function betaUDF as 'com.xc.function.BetaUDF' ;
create permanent function chkunitrdNavUDF as 'com.xc.function.ChkUnitrdNavUDF' ;
...

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值