问题:
com.taobao.config.client.exception.ConfigClientException: cannot get serverlist, so exit jvm env=DEFAULT_ENVat com.taobao.config.client.ServerListManager.start(ServerListManager.java:116)at com.taobao.config.client.EnvironmentProbe.probe(EnvironmentProbe.java:29)at com.taobao.config.client.Initialization.<clinit>(Initialization.java:21)at com.taobao.config.client.SubscriberRegistrar.<clinit>(SubscriberRegistrar.java:157)at com.taobao.hsf.registry.cs.MTConfigServerRegistry.subscribe(MTConfigServerRegistry.java:306)at com.taobao.hsf.registry.cs.MTConfigServerRegistry.subscribeWithTenantId(MTConfigServerRegistry.java:286)at com.taobao.hsf.registry.cs.MTConfigServerRegistry.subscribe(MTConfigServerRegistry.java:267)at com.taobao.hsf.registry.RegistryInvocationHandler.refer(RegistryInvocationHandler.java:67)at com.taobao.hsf.registry.RegistryProtocolInterceptor.refer(RegistryProtocolInterceptor.java:78)at com.taobao.hsf.dpath.DPathProtocolInterceptor.refer(DPathProtocolInterceptor.java:49)at com.taobao.hsf.grouping.component.GroupingProtocolInterceptor.refer(GroupingProtocolInterceptor.java:68)at com.taobao.hsf.protocol.AbstractDelegateProtocolInterceptor.refer(AbstractDelegateProtocolInterceptor.java:36)at com.taobao.hsf.protocol.AbstractDelegateProtocolInterceptor.refer(AbstractDelegateProtocolInterceptor.java:36)at com.taobao.hsf.protocol.AbstractDelegateProtocolInterceptor.refer(AbstractDelegateProtocolInterceptor.java:36)at com.taobao.hsf.protocol.AbstractDelegateProtocolInterceptor.refer(AbstractDelegateProtocolInterceptor.java:36)at com.taobao.hsf.metadata.store.MetadataReportProtocolInterceptor.refer(MetadataReportProtocolInterceptor.java:57)at com.taobao.hsf.model.metadata.ServiceMetadata.refer(ServiceMetadata.java:399)at com.taobao.hsf.model.metadata.ServiceMetadata$3.call(ServiceMetadata.java:415)at com.taobao.hsf.model.metadata.ServiceMetadata$3.call(ServiceMetadata.java:412)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 com.taobao.hsf.threadpool.impl.SingleThreadScheduledExecutor$RunnableScheduleFutureDecorator.run(SingleThreadScheduledExecutor.java:155)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:748)
解决
host文件添加本机ip的映射:
127.0.0.1 jmenv.tbsite.net