INSERT INTO `dlink_history` VALUES (43, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31632\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31632\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"1024m\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 21:14:41', '2023-12-28 21:15:41', 3);
INSERT INTO `dlink_history` VALUES (44, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31509\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31509\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"taskmanager.memory.process.size\": \"1024m\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"1024m\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 21:16:25', '2023-12-28 21:17:25', 3);
INSERT INTO `dlink_history` VALUES (45, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30917\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30917\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"-Dkubernetes.cluster-id\": \"flink-application-cluster\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"-Denv.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"-Denv.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"taskmanager.memory.process.size\": \"1024m\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"-Dkubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"taskmanager.memory.framework.heap.size\": \"1024m\", \"-Dkubernetes.container.image.pull-policy\": \"Always\", \"-Dkubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 21:54:17', '2023-12-28 21:55:17', 3);
INSERT INTO `dlink_history` VALUES (46, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30712\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30712\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"taskmanager.memory.process.size\": \"1024m\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"1024m\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 21:55:47', '2023-12-28 21:56:47', 3);
INSERT INTO `dlink_history` VALUES (47, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31766\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31766\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"taskmanager.memory.process.size\": \"1024m\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"1024m\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 21:59:52', '2023-12-28 22:00:52', 3);
INSERT INTO `dlink_history` VALUES (48, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'org.apache.flink.client.deployment.ClusterDeploymentException: The Flink cluster mysql-to-es already exists.\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployApplicationCluster(KubernetesClusterDescriptor.java:181)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:102)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"1024m\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 22:02:06', '2023-12-28 22:02:06', 3);
INSERT INTO `dlink_history` VALUES (49, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: mysql-to-es-rest.flink-test/172.17.240.112:8081\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: mysql-to-es-rest.flink-test/172.17.240.112:8081\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"1024m\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 22:02:30', '2023-12-28 22:03:32', 3);
INSERT INTO `dlink_history` VALUES (50, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'${hostname}\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'${username}\',\r\n    \'password\' = \'${password}\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: mysql-to-es-rest.flink-test/172.17.135.119:8081\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: mysql-to-es-rest.flink-test/172.17.135.119:8081\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 22:06:53', '2023-12-28 22:08:14', 3);
INSERT INTO `dlink_history` VALUES (51, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'192.168.63.102\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'demo_db\',\r\n    \'password\' = \'Aa123456\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.lang.Exception: Unable to obtain jobId. Please contact management to troubleshoot the issue,Waiting time：30s,job name:mysql-to-es\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:132)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 22:12:23', '2023-12-28 22:13:58', 3);
INSERT INTO `dlink_history` VALUES (52, 1, 0, 1, NULL, NULL, 'Dave\'s Demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'org.apache.flink.client.deployment.ClusterDeploymentException: Could not create Kubernetes cluster \"Dave\'s Demo\".\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployClusterInternal(KubernetesClusterDescriptor.java:292)\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployApplicationCluster(KubernetesClusterDescriptor.java:211)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:102)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://172.17.0.1/apis/apps/v1/namespaces/flink-test/deployments. Message: Deployment.apps \"Dave\'s Demo\" is invalid: [metadata.name: Invalid value: \"Dave\'s Demo\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, \'-\' or \'.\', and must start and end with an alphanumeric character (e.g. \'example.com\', regex used for validation is \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\'), metadata.labels: Invalid value: \"Dave\'s Demo\": a valid label must be an empty string or consist of alphanumeric characters, \'-\', \'_\' or \'.\', and must start and end with an alphanumeric character (e.g. \'MyValue\',  or \'my_value\',  or \'12345\', regex used for validation is \'(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?\'), spec.selector.matchLabels: Invalid value: \"Dave\'s Demo\": a valid label must be an empty string or consist of alphanumeric characters, \'-\', \'_\' or \'.\', and must start and end with an alphanumeric character (e.g. \'MyValue\',  or \'my_value\',  or \'12345\', regex used for validation is \'(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?\'), spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app\":\"Dave\'s Demo\", \"component\":\"jobmanager\", \"type\":\"flink-native-kubernetes\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: invalid label selector]. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=metadata.name, message=Invalid value: \"Dave\'s Demo\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, \'-\' or \'.\', and must start and end with an alphanumeric character (e.g. \'example.com\', regex used for validation is \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\'), reason=FieldValueInvalid, additionalProperties={}), StatusCause(field=metadata.labels, message=Invalid value: \"Dave\'s Demo\": a valid label must be an empty string or consist of alphanumeric characters, \'-\', \'_\' or \'.\', and must start and end with an alphanumeric character (e.g. \'MyValue\',  or \'my_value\',  or \'12345\', regex used for validation is \'(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?\'), reason=FieldValueInvalid, additionalProperties={}), StatusCause(field=spec.selector.matchLabels, message=Invalid value: \"Dave\'s Demo\": a valid label must be an empty string or consist of alphanumeric characters, \'-\', \'_\' or \'.\', and must start and end with an alphanumeric character (e.g. \'MyValue\',  or \'my_value\',  or \'12345\', regex used for validation is \'(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?\'), reason=FieldValueInvalid, additionalProperties={}), StatusCause(field=spec.selector, message=Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app\":\"Dave\'s Demo\", \"component\":\"jobmanager\", \"type\":\"flink-native-kubernetes\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: invalid label selector, reason=FieldValueInvalid, additionalProperties={})], group=apps, kind=Deployment, name=Dave\'s Demo, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Deployment.apps \"Dave\'s Demo\" is invalid: [metadata.name: Invalid value: \"Dave\'s Demo\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, \'-\' or \'.\', and must start and end with an alphanumeric character (e.g. \'example.com\', regex used for validation is \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\'), metadata.labels: Invalid value: \"Dave\'s Demo\": a valid label must be an empty string or consist of alphanumeric characters, \'-\', \'_\' or \'.\', and must start and end with an alphanumeric character (e.g. \'MyValue\',  or \'my_value\',  or \'12345\', regex used for validation is \'(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?\'), spec.selector.matchLabels: Invalid value: \"Dave\'s Demo\": a valid label must be an empty string or consist of alphanumeric characters, \'-\', \'_\' or \'.\', and must start and end with an alphanumeric character (e.g. \'MyValue\',  or \'my_value\',  or \'12345\', regex used for validation is \'(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?\'), spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app\":\"Dave\'s Demo\", \"component\":\"jobmanager\", \"type\":\"flink-native-kubernetes\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: invalid label selector], metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:673)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:612)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:560)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:521)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:309)\n	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleCreate(BaseOperation.java:776)\n	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:351)\n	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:90)\n	at org.apache.flink.kubernetes.kubeclient.Fabric8FlinkKubeClient.createJobManagerComponent(Fabric8FlinkKubeClient.java:123)\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployClusterInternal(KubernetesClusterDescriptor.java:277)\n	... 92 more\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"Dave\'s Demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"Dave\'s Demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 22:22:13', '2023-12-28 22:22:13', 2);
INSERT INTO `dlink_history` VALUES (53, 1, 0, 1, NULL, NULL, 'Dave-Demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'org.apache.flink.client.deployment.ClusterDeploymentException: Could not create Kubernetes cluster \"Dave-Demo\".\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployClusterInternal(KubernetesClusterDescriptor.java:292)\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployApplicationCluster(KubernetesClusterDescriptor.java:211)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:102)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://172.17.0.1/apis/apps/v1/namespaces/flink-test/deployments. Message: Deployment.apps \"Dave-Demo\" is invalid: metadata.name: Invalid value: \"Dave-Demo\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, \'-\' or \'.\', and must start and end with an alphanumeric character (e.g. \'example.com\', regex used for validation is \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\'). Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=metadata.name, message=Invalid value: \"Dave-Demo\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, \'-\' or \'.\', and must start and end with an alphanumeric character (e.g. \'example.com\', regex used for validation is \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\'), reason=FieldValueInvalid, additionalProperties={})], group=apps, kind=Deployment, name=Dave-Demo, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Deployment.apps \"Dave-Demo\" is invalid: metadata.name: Invalid value: \"Dave-Demo\": a DNS-1123 subdomain must consist of lower case alphanumeric characters, \'-\' or \'.\', and must start and end with an alphanumeric character (e.g. \'example.com\', regex used for validation is \'[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\'), metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:673)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:612)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:560)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:521)\n	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:309)\n	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleCreate(BaseOperation.java:776)\n	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:351)\n	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:90)\n	at org.apache.flink.kubernetes.kubeclient.Fabric8FlinkKubeClient.createJobManagerComponent(Fabric8FlinkKubeClient.java:123)\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployClusterInternal(KubernetesClusterDescriptor.java:277)\n	... 92 more\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"Dave-Demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"Dave-Demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 22:22:33', '2023-12-28 22:22:33', 2);
INSERT INTO `dlink_history` VALUES (54, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.lang.Exception: Unable to obtain jobId. Please contact management to troubleshoot the issue,Waiting time：30s,job name:dave-demo\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:132)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"1\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-28 22:22:55', '2023-12-28 22:24:38', 2);
INSERT INTO `dlink_history` VALUES (55, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in path at index 69: local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar --output /opt/flink/log/task-output\n	at org.apache.flink.util.ExceptionUtils.rethrow(ExceptionUtils.java:319)\n	at org.apache.flink.util.function.FunctionUtils.lambda$uncheckedFunction$2(FunctionUtils.java:75)\n	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)\n	at java.util.Collections$2.tryAdvance(Collections.java:4719)\n	at java.util.Collections$2.forEachRemaining(Collections.java:4727)\n	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)\n	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)\n	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)\n	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\n	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)\n	at org.apache.flink.kubernetes.utils.KubernetesUtils.checkJarFileForApplicationMode(KubernetesUtils.java:413)\n	at org.apache.flink.kubernetes.KubernetesClusterDescriptor.deployApplicationCluster(KubernetesClusterDescriptor.java:206)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:102)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: java.net.URISyntaxException: Illegal character in path at index 69: local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar --output /opt/flink/log/task-output\n	at java.net.URI$Parser.fail(URI.java:2847)\n	at java.net.URI$Parser.checkChars(URI.java:3020)\n	at java.net.URI$Parser.parseHierarchical(URI.java:3104)\n	at java.net.URI$Parser.parse(URI.java:3052)\n	at java.net.URI.<init>(URI.java:588)\n	at org.apache.flink.client.program.PackagedProgramUtils.resolveURI(PackagedProgramUtils.java:243)\n	at org.apache.flink.kubernetes.utils.KubernetesUtils.lambda$checkJarFileForApplicationMode$2(KubernetesUtils.java:404)\n	at org.apache.flink.util.function.FunctionUtils.lambda$uncheckedFunction$2(FunctionUtils.java:73)\n	... 101 more\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar --output /opt/flink/log/task-output\", \"userJarParas\": [\"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 08:27:39', '2023-12-29 08:27:39', 2);
INSERT INTO `dlink_history` VALUES (56, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30796\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30796\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log/task-output--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"3600000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 08:28:48', '2023-12-29 08:29:52', 2);
INSERT INTO `dlink_history` VALUES (57, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:32328\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:32328\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log/task-output\", \"\", \"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 08:35:47', '2023-12-29 08:36:51', 2);
INSERT INTO `dlink_history` VALUES (58, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.lang.Exception: Unable to obtain jobId. Please contact management to troubleshoot the issue,Waiting time：30s,job name:dave-demo\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:132)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log/task-output\", \"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 08:37:19', '2023-12-29 08:38:54', 2);
INSERT INTO `dlink_history` VALUES (59, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31366\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:31366\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log\", \"\", \"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 08:43:59', '2023-12-29 08:45:01', 2);
INSERT INTO `dlink_history` VALUES (60, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.lang.Exception: Unable to obtain jobId. Please contact management to troubleshoot the issue,Waiting time：30s,job name:dave-demo\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:132)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$9a739ee2.submit(<generated>)\n	at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log\", \"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"xpay-env:logs\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 08:45:23', '2023-12-29 08:47:06', 2);
INSERT INTO `dlink_history` VALUES (61, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'192.168.63.102\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'demo_db\',\r\n    \'password\' = \'Aa123456\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9300\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.lang.Exception: Unable to obtain jobId. Please contact management to troubleshoot the issue,Waiting time：30s,job name:mysql-to-es\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:132)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$c080978b.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$91309f30.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log\", \"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"flink-env:test\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 09:47:31', '2023-12-29 09:49:19', 3);
INSERT INTO `dlink_history` VALUES (62, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'192.168.63.102\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'demo_db\',\r\n    \'password\' = \'Aa123456\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9200\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$c080978b.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$91309f30.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:32328\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:32328\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log\", \"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"flink-env:test\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 10:13:11', '2023-12-29 10:14:12', 3);
INSERT INTO `dlink_history` VALUES (63, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'192.168.63.102\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'demo_db\',\r\n    \'password\' = \'Aa123456\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9200\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$859a63c7.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30937\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30937\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log\", \"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"flink-env:test\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 10:43:54', '2023-12-29 10:44:59', 3);
INSERT INTO `dlink_history` VALUES (64, 1, 0, 1, NULL, NULL, 'mysql-to-es', '', 3, 'kubernetes-application', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'192.168.63.102\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'demo_db\',\r\n    \'password\' = \'Aa123456\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9200\',\r\n     \'index\' = \'enriched_orders_dave\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$e1b9d60e.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30302\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30302\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 3, \"address\": null, \"jarTask\": false, \"jobName\": \"mysql-to-es\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 1, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 3, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log\", \"--id\", \"3\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"mysql-to-es\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"flink-env:test\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 10:56:34', '2023-12-29 10:57:37', 3);
INSERT INTO `dlink_history` VALUES (65, 1, 0, 1, NULL, NULL, 'dave-demo', '', 3, 'kubernetes-application', 'CREATE TABLE orders (\r\n    order_uid  BIGINT,\r\n    product_id BIGINT,\r\n    price      DECIMAL(32, 2),\r\n    order_time TIMESTAMP(3)\r\n) WITH (\r\n    \'connector\' = \'datagen\'\r\n);\r\n\r\nSELECT * FROM orders;', 'java.util.concurrent.ExecutionException: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)\n	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1908)\n	at com.dlink.gateway.kubernetes.KubernetesApplicationGateway.submitJar(KubernetesApplicationGateway.java:105)\n	at com.dlink.job.JobManager.submitByGateway(JobManager.java:638)\n	at com.dlink.job.JobManager.executeSql(JobManager.java:490)\n	at com.dlink.service.impl.TaskServiceImpl.submitTask(TaskServiceImpl.java:253)\n	at com.dlink.service.impl.TaskServiceImpl$$FastClassBySpringCGLIB$$168bea78.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:89)\n	at com.dlink.aop.UdfClassLoaderAspect.round(UdfClassLoaderAspect.java:65)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)\n	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)\n	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.service.impl.TaskServiceImpl$$EnhancerBySpringCGLIB$$7060be83.submitTask(<generated>)\n	at com.dlink.controller.TaskController.submit(TaskController.java:127)\n	at com.dlink.controller.TaskController$$FastClassBySpringCGLIB$$a86993b6.invoke(<generated>)\n	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:57)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)\n	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)\n	at com.dlink.controller.TaskController$$EnhancerBySpringCGLIB$$e1b9d60e.submit(<generated>)\n	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n	at java.lang.reflect.Method.invoke(Method.java:498)\n	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\n	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)\n	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)\n	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)\n	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1071)\n	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)\n	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:696)\n	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n	at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:124)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)\n	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)\n	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)\n	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)\n	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:769)\n	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)\n	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)\n	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)\n	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)\n	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)\n	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)\n	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n	at java.lang.Thread.run(Thread.java:750)\nCaused by: org.apache.flink.util.concurrent.FutureUtils$RetryException: Could not complete the operation. Number of retries has been exhausted.\n	at org.apache.flink.util.concurrent.FutureUtils.lambda$retryOperationWithDelay$9(FutureUtils.java:395)\n	at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)\n	at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)\n	at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)\n	at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1990)\n	at org.apache.flink.runtime.rest.RestClient.lambda$submitRequest$1(RestClient.java:476)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:578)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:571)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:550)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:491)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setValue0(DefaultPromise.java:616)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.setFailure0(DefaultPromise.java:609)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:117)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:321)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:337)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	... 1 more\nCaused by: java.util.concurrent.CompletionException: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30778\n	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)\n	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)\n	at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:957)\n	at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:940)\n	... 19 more\nCaused by: org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /192.168.63.101:30778\nCaused by: java.net.ConnectException: Connection refused\n	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)\n	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)\n	at org.apache.flink.shaded.netty4.io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)\n	at org.apache.flink.shaded.netty4.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)\n	at org.apache.flink.shaded.netty4.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)\n	at org.apache.flink.shaded.netty4.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n	at java.lang.Thread.run(Thread.java:750)\n', NULL, '{\"step\": 2, \"type\": \"kubernetes-application\", \"jarId\": 0, \"config\": {}, \"taskId\": 2, \"address\": null, \"jarTask\": false, \"jobName\": \"dave-demo\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": null, \"useRemote\": true, \"useResult\": false, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": {\"type\": \"KUBERNETES_APPLICATION\", \"taskId\": 2, \"jarPaths\": null, \"appConfig\": {\"userJarPath\": \"local:///opt/flink/lib/dlink-app-1.15-0.7.5-jar-with-dependencies.jar\", \"userJarParas\": [\"--output\", \"/opt/flink/log\", \"--id\", \"2\", \"--driver\", \"com.mysql.cj.jdbc.Driver\", \"--url\", \"jdbc:mysql://192.168.63.102:3306/dinky?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true\", \"--username\", \"dinky\", \"--password\", \"Aa123456\", \"--dinkyAddr\"], \"userJarMainAppClass\": \"com.dlink.app.MainApp\"}, \"flinkConfig\": {\"jobId\": null, \"action\": null, \"jobName\": \"dave-demo\", \"savePoint\": null, \"configuration\": {\"fs.oss.endpoint\": \"https://oss-cn-hongkong.aliyuncs.com\", \"high-availability\": \"org.apache.flink.kubernetes.highavailability.KubernetesHaServicesFactory\", \"fs.oss.accessKeyId\": \"LTAI2pFx7EflElP7\", \"parallelism.default\": \"1\", \"kubernetes.namespace\": \"flink-test\", \"kubernetes.cluster-id\": \"flink-application-cluster\", \"fs.oss.accessKeySecret\": \"unsebaUQA23EqZyBq80rldSeHFDKuO\", \"env.java.opts.jobmanager\": \"-Duser.timezone=GMT+08\", \"env.java.opts.taskmanager\": \"-Duser.timezone=GMT+08\", \"kubernetes.jobmanager.cpu\": \"0.2\", \"kubernetes.container.image\": \"registry.zerofinance.net/library/dinky-flink-application:1.15.3\", \"kubernetes.taskmanager.cpu\": \"0.2\", \"high-availability.storageDir\": \"oss://flink-ha-test/native-recovery\", \"taskmanager.numberOfTaskSlots\": \"3\", \"jobmanager.memory.process.size\": \"1024m\", \"kubernetes.jobmanager.replicas\": \"1\", \"taskmanager.memory.process.size\": \"1024m\", \"resourcemanager.taskmanager-timeout\": \"86400000\", \"kubernetes.rest-service.exposed.type\": \"NodePort\", \"kubernetes.taskmanager.node-selector\": \"flink-env:test\", \"kubernetes.container.image.pull-policy\": \"Always\", \"taskmanager.memory.framework.heap.size\": \"\", \"kubernetes.container.image.pull-secrets\": \"registry-private-secret\"}, \"savePointType\": null}, \"clusterConfig\": {\"appId\": null, \"flinkLibPath\": null, \"yarnConfigPath\": null, \"flinkConfigPath\": \"/opt/dinky/conf\"}}, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 11:07:24', '2023-12-29 11:08:24', 2);
INSERT INTO `dlink_history` VALUES (66, 1, 2, NULL, NULL, '0488bc0ec0edac07e8138a16803506ed', 'udf_sub_test', 'flink-cluster-rest:8081', 2, 'kubernetes-session', 'create temporary function sb_j as \'com.test.SubFunction\';\r\n\r\n\r\nCREATE TABLE sourceTable (\r\n    id int,\r\n    java_c string\r\n) WITH (\r\n  \'connector\' = \'datagen\'\r\n);\r\n\r\nCREATE  TABLE sinkTable\r\nWITH (\r\n    \'connector\' = \'print\'\r\n)\r\nLIKE sourceTable (EXCLUDING ALL);\r\n\r\n\r\ninsert into sinkTable select id,sb_j(java_c) from sourceTable;\r\n', NULL, NULL, '{\"step\": null, \"type\": \"kubernetes-session\", \"jarId\": null, \"config\": {}, \"taskId\": 5, \"address\": \"flink-cluster-rest:8081\", \"jarTask\": false, \"jobName\": \"udf_sub_test\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": 100, \"useRemote\": true, \"useResult\": true, \"variables\": null, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": null, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": false, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": null}', '2023-12-29 11:33:56', '2023-12-29 11:34:03', 5);
INSERT INTO `dlink_history` VALUES (67, 1, 2, NULL, NULL, '89d5894a5258c212d7ea15affe0b1fe7', 'mysql-to-es-session', 'flink-cluster-rest:8081', 2, 'kubernetes-session', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'192.168.63.102\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'demo_db\',\r\n    \'password\' = \'Aa123456\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.103:9200\',\r\n     \'index\' = \'enriched_orders_dave_session\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', NULL, NULL, '{\"step\": null, \"type\": \"kubernetes-session\", \"jarId\": null, \"config\": {}, \"taskId\": 6, \"address\": \"flink-cluster-rest:8081\", \"jarTask\": false, \"jobName\": \"mysql-to-es-session\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": 100, \"useRemote\": true, \"useResult\": true, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": null, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 12:49:22', '2023-12-29 12:49:34', 6);
INSERT INTO `dlink_history` VALUES (68, 1, 2, NULL, NULL, 'ccded83cc23eaca491fcd3939f96ec02', 'mysql-to-es-session', 'flink-cluster-rest:8081', 2, 'kubernetes-session', 'SET execution.checkpointing.interval = 1h;\r\n\r\nCREATE FUNCTION ARRAY_AGGR AS \'com.zerofinance.function.ArrayAggr\';\r\n\r\nCREATE TABLE products (\r\n    id INT,\r\n    name STRING,\r\n    description STRING,\r\n    PRIMARY KEY (id) NOT ENFORCED\r\n  ) WITH (\r\n    \'connector\' = \'mysql-cdc\',\r\n    \'hostname\' = \'192.168.63.102\',\r\n    \'port\' = \'3306\',\r\n    \'username\' = \'demo_db\',\r\n    \'password\' = \'Aa123456\',\r\n    \'database-name\' = \'demo_db\',\r\n    \'table-name\' = \'products\'\r\n  );\r\n  \r\nCREATE TABLE orders (\r\n   order_id INT,\r\n   order_date TIMESTAMP(0),\r\n   customer_name STRING,\r\n   price DECIMAL(10, 5),\r\n   product_id INT,\r\n   order_status BOOLEAN,\r\n   PRIMARY KEY (order_id) NOT ENFORCED\r\n ) WITH (\r\n   \'connector\' = \'mysql-cdc\',\r\n   \'hostname\' = \'192.168.63.102\',\r\n   \'port\' = \'3306\',\r\n   \'username\' = \'demo_db\',\r\n   \'password\' = \'Aa123456\',\r\n   \'database-name\' = \'demo_db\',\r\n   \'table-name\' = \'orders\'\r\n );\r\n \r\nCREATE TABLE enriched_orders (\r\n   product_id INT,\r\n   product_name STRING,\r\n   product_description STRING,\r\n   order_array ARRAY<ROW<order_id INT,order_date TIMESTAMP(0),customer_name STRING,price DECIMAL(10, 5),order_status BOOLEAN>>,\r\n   PRIMARY KEY (product_id) NOT ENFORCED\r\n ) WITH (\r\n     \'connector\' = \'elasticsearch-7\',\r\n     \'hosts\' = \'http://192.168.63.102:9200\',\r\n     \'index\' = \'enriched_orders_dave_session\'\r\n );\r\n \r\nINSERT INTO enriched_orders\r\n  SELECT p.id AS product_id, p.name AS product_name, p.description AS product_description,\r\n (select ARRAY_AGGR(ROW(order_id,order_date,customer_name,price,order_status)) \r\n   from orders o \r\n   where o.product_id=p.id) as order_array\r\n FROM products AS p;', NULL, NULL, '{\"step\": null, \"type\": \"kubernetes-session\", \"jarId\": null, \"config\": {}, \"taskId\": 6, \"address\": \"flink-cluster-rest:8081\", \"jarTask\": false, \"jobName\": \"mysql-to-es-session\", \"pyFiles\": null, \"session\": null, \"jarFiles\": null, \"clusterId\": 2, \"maxRowNum\": 100, \"useRemote\": true, \"useResult\": true, \"variables\": {\"ods\": \"     \'hostname\' = \'192.168.63.102\'\\n    ,\'port\' = \'3306\'\\n    ,\'username\' = \'demo_db\'\\n    ,\'password\' = \'Aa123456\'\", \"hostname\": \"192.168.63.102\", \"password\": \"Aa123456\", \"username\": \"demo_db\"}, \"checkpoint\": 0, \"useSession\": false, \"parallelism\": 1, \"useChangeLog\": false, \"gatewayConfig\": null, \"savePointPath\": null, \"useAutoCancel\": false, \"useBatchModel\": false, \"useSqlFragment\": true, \"useStatementSet\": false, \"savePointStrategy\": \"NONE\", \"clusterConfigurationId\": 1}', '2023-12-29 12:54:43', '2023-12-29 12:54:48', 6);

-- ----------------------------
