panzhi33 commented on issue #2764:
URL: https://github.com/apache/rocketmq/issues/2764#issuecomment-809999787


   > > > 
这么说是我没有JDK的原因是吗这个机子,我看看这个怎么研究下指向,的确是宿主机没有安装jdk想着镜像中存在了就没必要了安装了个docker就开始了
   > > > 有报错的,是这个,无法连接的错误
   > > > ```java
   > > > java.lang.RuntimeException: 
org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to 
<192.168.31.246:10911> failed
   > > >        at 
com.google.common.base.Throwables.propagate(Throwables.java:160)
   > > >        at 
org.apache.rocketmq.console.task.DashboardCollectTask.fetchBrokerRuntimeStats(DashboardCollectTask.java:219)
   > > >        at 
org.apache.rocketmq.console.task.DashboardCollectTask.fetchBrokerRuntimeStats(DashboardCollectTask.java:218)
   > > >        at 
org.apache.rocketmq.console.task.DashboardCollectTask.fetchBrokerRuntimeStats(DashboardCollectTask.java:218)
   > > >        at 
org.apache.rocketmq.console.task.DashboardCollectTask.collectBroker(DashboardCollectTask.java:184)
   > > >        at 
org.apache.rocketmq.console.task.DashboardCollectTask$$FastClassBySpringCGLIB$$c818b8cd.invoke(<generated>)
   > > >        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
   > > >        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721)
   > > >        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
   > > >        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
   > > >        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
   > > >        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656)
   > > >        at 
org.apache.rocketmq.console.task.DashboardCollectTask$$EnhancerBySpringCGLIB$$9a10db13.collectBroker(<generated>)
   > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   > > >        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   > > >        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   > > >        at java.lang.reflect.Method.invoke(Method.java:498)
   > > >        at 
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
   > > >        at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
   > > >        at 
org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
   > > >        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   > > >        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   > > >        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
   > > >        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
   > > >        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   > > >        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   > > >        at java.lang.Thread.run(Thread.java:745)
   > > > ```
   > > > 
   > > > 
   > > > 请问我使用的是官方的镜像吗?因为这样的话还得每次都挂载一个jdk的目录进去是否是很鸡肋?
   > > 
   > > 
   > > rocketmqinc/rocketmq 这个是官方的镜像的
   > 
   > 好的,我使用的就是这个镜像
   > 
   > 那请问我必须按照这种的去给docker的容器中cp一份jar文件是吗,我看到了别人的解决方式是: 
https://blog.csdn.net/qq_18855485/article/details/99647626
   > 
   > 这样的方式在容器删除掉或者别的机制后,岂不是得在脑子里记着给容器中cp一份,还是推荐使用物理机来管理,而不是容器~
   
   当前是没有办法,也可以直接在容器里面改脚本,然后重启容器


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to