Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to restart coordinator server after stop it #11858

Closed
VincentMLiu opened this issue Nov 6, 2018 · 2 comments
Closed

Not able to restart coordinator server after stop it #11858

VincentMLiu opened this issue Nov 6, 2018 · 2 comments

Comments

@VincentMLiu
Copy link

VincentMLiu commented Nov 6, 2018

Presto version: 0.211
Java version: OpenJDK 1.8.0_161
I had follow the installing instruction to run Presto on my own servers, the cluster was successfully started at first time. After that, I had added elasticsearch-jars into plugin dir in order to build es connectors. Then I stopped the coordinator server and another two worker nodes, but the coordinator server is not able to start again.
I use "./launcher run" to show the ERROR as bellow:
`2018-11-06T11:30:31.102+0800 INFO main Bootstrap node.bind-ip null null
2018-11-06T11:30:31.102+0800 INFO main Bootstrap node.external-address null null
2018-11-06T11:30:31.102+0800 INFO main Bootstrap node.id null ffffffff-ffff-ffff-ffff-fffffffffff1
2018-11-06T11:30:31.102+0800 INFO main Bootstrap node.internal-address null null
2018-11-06T11:30:31.102+0800 INFO main Bootstrap node.pool general general
2018-11-06T11:30:32.353+0800 WARN main io.airlift.jmx.JmxAgent Cannot determine if JMX agent is already running (not an Oracle JVM?). Will try to start it manually.
2018-11-06T11:30:32.383+0800 WARN main io.airlift.jmx.JmxAgent Cannot determine if JMX agent is already running (not an Oracle JVM?). Will try to start it manually.
2018-11-06T11:30:32.411+0800 ERROR main com.facebook.presto.server.PrestoServer Unable to create injector, see the following errors:

  1. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用(this means 'address already in use')
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78)
    Caused by: java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:162)
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:70)
    at io.airlift.http.server.HttpServerInfo$$FastClassByGuice$$bd4c327f.newInstance()
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:101)
    at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:245)
    at com.google.inject.internal.Initializer.injectAll(Initializer.java:140)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
    at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:115)
    at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)
    Caused by: java.net.BindException: 地址已在使用
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:158)
    ... 31 more

  2. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78) (via modules: com.facebook.presto.server.ServerMainModule -> com.facebook.presto.server.CoordinatorModule -> io.airlift.configuration.ConditionalModule -> io.airlift.discovery.server.EmbeddedDiscoveryModule)
    Caused by: java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:162)
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:48)
    at io.airlift.http.server.HttpServerInfo$$FastClassByGuice$$bd4c327f.newInstance()
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:101)
    at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:245)
    at com.google.inject.internal.Initializer.injectAll(Initializer.java:140)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
    at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:115)
    at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)
    Caused by: java.net.BindException: 地址已在使用
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:158)
    ... 31 more

  3. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78) (via modules: com.facebook.presto.server.ServerMainModule -> com.facebook.presto.server.CoordinatorModule)
    Caused by: java.io.UncheckedIOException (same stack trace as error Add byte[] backed tuple and block implementations #2)

  4. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78)
    Caused by: java.io.UncheckedIOException (same stack trace as error Add byte[] backed tuple and block implementations #2)

  5. Error injecting constructor, java.net.BindException: 地址已在使用 (Bind failed)
    at io.airlift.jmx.JmxAgent8.(JmxAgent8.java:49)
    at io.airlift.jmx.JmxModule.configure(JmxModule.java:51)
    while locating io.airlift.jmx.JmxAgent8
    while locating io.airlift.jmx.JmxAgent
    for the 1st parameter of io.airlift.jmx.JmxModule$JmxAnnouncementProvider.setJmxAgent(JmxModule.java:68)
    while locating io.airlift.jmx.JmxModule$JmxAnnouncementProvider
    while locating io.airlift.discovery.client.ServiceAnnouncement annotated with @com.google.inject.internal.Element(setName=,uniqueId=328, type=MULTIBINDER, keyType=)
    while locating java.util.Set<io.airlift.discovery.client.ServiceAnnouncement>
    for the 2nd parameter of io.airlift.discovery.client.Announcer.(Announcer.java:68)
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:63)
    while locating io.airlift.discovery.client.Announcer
    for the 2nd parameter of io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    at io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    while locating io.airlift.discovery.client.MergingServiceSelectorFactory
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:72)
    while locating io.airlift.discovery.client.ServiceSelectorFactory
    for the 1st parameter of io.airlift.discovery.client.ServiceSelectorProvider.setServiceSelectorFactory(ServiceSelectorProvider.java:50)
    at io.airlift.event.client.HttpEventModule.configure(HttpEventModule.java:43)
    Caused by: java.net.BindException: 地址已在使用 (Bind failed)
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
    at java.net.ServerSocket.bind(ServerSocket.java:375)
    at java.net.ServerSocket.bind(ServerSocket.java:329)
    at io.airlift.jmx.NetUtils.findUnusedPort(NetUtils.java:33)
    at io.airlift.jmx.JmxAgent8.(JmxAgent8.java:59)
    at io.airlift.jmx.JmxAgent8$$FastClassByGuice$$52a284ee.newInstance()
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:124)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:60)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.RealMultibinder$RealMultibinderProvider.doProvision(RealMultibinder.java:198)
    at com.google.inject.internal.RealMultibinder$RealMultibinderProvider.doProvision(RealMultibinder.java:151)
    at com.google.inject.internal.InternalProviderInstanceBindingImpl$Factory.get(InternalProviderInstanceBindingImpl.java:113)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ProviderMethod.doProvision(ProviderMethod.java:173)
    at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.provision(InternalProviderInstanceBindingImpl.java:185)
    at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.get(InternalProviderInstanceBindingImpl.java:162)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:101)
    at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:245)
    at com.google.inject.internal.Initializer.injectAll(Initializer.java:140)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
    at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:115)
    at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)

  6. Error injecting constructor, java.net.BindException: 地址已在使用 (Bind failed)
    at io.airlift.jmx.JmxAgent8.(JmxAgent8.java:49)
    at io.airlift.jmx.JmxModule.configure(JmxModule.java:51)
    while locating io.airlift.jmx.JmxAgent8
    while locating io.airlift.jmx.JmxAgent
    for the 1st parameter of io.airlift.jmx.JmxModule$JmxAnnouncementProvider.setJmxAgent(JmxModule.java:68)
    while locating io.airlift.jmx.JmxModule$JmxAnnouncementProvider
    while locating io.airlift.discovery.client.ServiceAnnouncement annotated with @com.google.inject.internal.Element(setName=,uniqueId=328, type=MULTIBINDER, keyType=)
    while locating java.util.Set<io.airlift.discovery.client.ServiceAnnouncement>
    for the 2nd parameter of io.airlift.discovery.client.Announcer.(Announcer.java:68)
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:63)
    while locating io.airlift.discovery.client.Announcer
    for the 2nd parameter of io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    at io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    while locating io.airlift.discovery.client.MergingServiceSelectorFactory
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:72)
    while locating io.airlift.discovery.client.ServiceSelectorFactory
    for the 1st parameter of io.airlift.discovery.client.ServiceSelectorProvider.setServiceSelectorFactory(ServiceSelectorProvider.java:50)
    at com.facebook.presto.server.ServerMainModule.setup(ServerMainModule.java:251)
    Caused by: java.net.BindException (same stack trace as error add tuple builder #5)
    6 errors
    com.google.inject.CreationException: Unable to create injector, see the following errors:

  7. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78)
    Caused by: java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:162)
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:70)
    at io.airlift.http.server.HttpServerInfo$$FastClassByGuice$$bd4c327f.newInstance()
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:101)
    at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:245)
    at com.google.inject.internal.Initializer.injectAll(Initializer.java:140)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
    at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:115)
    at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)
    Caused by: java.net.BindException: 地址已在使用
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:158)
    ... 31 more

  8. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78) (via modules: com.facebook.presto.server.ServerMainModule -> com.facebook.presto.server.CoordinatorModule -> io.airlift.configuration.ConditionalModule -> io.airlift.discovery.server.EmbeddedDiscoveryModule)
    Caused by: java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:162)
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:48)
    at io.airlift.http.server.HttpServerInfo$$FastClassByGuice$$bd4c327f.newInstance()
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:101)
    at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:245)
    at com.google.inject.internal.Initializer.injectAll(Initializer.java:140)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
    at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:115)
    at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)
    Caused by: java.net.BindException: 地址已在使用
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at io.airlift.http.server.HttpServerInfo.createChannel(HttpServerInfo.java:158)
    ... 31 more

  9. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78) (via modules: com.facebook.presto.server.ServerMainModule -> com.facebook.presto.server.CoordinatorModule)
    Caused by: java.io.UncheckedIOException (same stack trace as error Add byte[] backed tuple and block implementations #2)

  10. Error injecting constructor, java.io.UncheckedIOException: java.net.BindException: 地址已在使用
    at io.airlift.http.server.HttpServerInfo.(HttpServerInfo.java:46)
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:66)
    while locating io.airlift.http.server.HttpServerInfo
    for the 1st parameter of io.airlift.http.server.LocalAnnouncementHttpServerInfo.(LocalAnnouncementHttpServerInfo.java:31)
    while locating io.airlift.http.server.LocalAnnouncementHttpServerInfo
    at io.airlift.http.server.HttpServerModule.configure(HttpServerModule.java:78)
    while locating io.airlift.discovery.client.AnnouncementHttpServerInfo
    for the 1st parameter of io.airlift.discovery.client.DiscoveryBinder$HttpAnnouncementProvider.setAnnouncementHttpServerInfo(DiscoveryBinder.java:121)
    at io.airlift.discovery.client.DiscoveryBinder.bindServiceAnnouncement(DiscoveryBinder.java:78)
    Caused by: java.io.UncheckedIOException (same stack trace as error Add byte[] backed tuple and block implementations #2)

  11. Error injecting constructor, java.net.BindException: 地址已在使用 (Bind failed)
    at io.airlift.jmx.JmxAgent8.(JmxAgent8.java:49)
    at io.airlift.jmx.JmxModule.configure(JmxModule.java:51)
    while locating io.airlift.jmx.JmxAgent8
    while locating io.airlift.jmx.JmxAgent
    for the 1st parameter of io.airlift.jmx.JmxModule$JmxAnnouncementProvider.setJmxAgent(JmxModule.java:68)
    while locating io.airlift.jmx.JmxModule$JmxAnnouncementProvider
    while locating io.airlift.discovery.client.ServiceAnnouncement annotated with @com.google.inject.internal.Element(setName=,uniqueId=328, type=MULTIBINDER, keyType=)
    while locating java.util.Set<io.airlift.discovery.client.ServiceAnnouncement>
    for the 2nd parameter of io.airlift.discovery.client.Announcer.(Announcer.java:68)
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:63)
    while locating io.airlift.discovery.client.Announcer
    for the 2nd parameter of io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    at io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    while locating io.airlift.discovery.client.MergingServiceSelectorFactory
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:72)
    while locating io.airlift.discovery.client.ServiceSelectorFactory
    for the 1st parameter of io.airlift.discovery.client.ServiceSelectorProvider.setServiceSelectorFactory(ServiceSelectorProvider.java:50)
    at io.airlift.event.client.HttpEventModule.configure(HttpEventModule.java:43)
    Caused by: java.net.BindException: 地址已在使用 (Bind failed)
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
    at java.net.ServerSocket.bind(ServerSocket.java:375)
    at java.net.ServerSocket.bind(ServerSocket.java:329)
    at io.airlift.jmx.NetUtils.findUnusedPort(NetUtils.java:33)
    at io.airlift.jmx.JmxAgent8.(JmxAgent8.java:59)
    at io.airlift.jmx.JmxAgent8$$FastClassByGuice$$52a284ee.newInstance()
    at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:114)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:124)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:60)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.RealMultibinder$RealMultibinderProvider.doProvision(RealMultibinder.java:198)
    at com.google.inject.internal.RealMultibinder$RealMultibinderProvider.doProvision(RealMultibinder.java:151)
    at com.google.inject.internal.InternalProviderInstanceBindingImpl$Factory.get(InternalProviderInstanceBindingImpl.java:113)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:113)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:91)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:306)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.ProviderMethod.doProvision(ProviderMethod.java:173)
    at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.provision(InternalProviderInstanceBindingImpl.java:185)
    at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.get(InternalProviderInstanceBindingImpl.java:162)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:62)
    at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
    at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:148)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
    at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:65)
    at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:82)
    at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:147)
    at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:101)
    at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:245)
    at com.google.inject.internal.Initializer.injectAll(Initializer.java:140)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:176)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
    at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:115)
    at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)

  12. Error injecting constructor, java.net.BindException: 地址已在使用 (Bind failed)
    at io.airlift.jmx.JmxAgent8.(JmxAgent8.java:49)
    at io.airlift.jmx.JmxModule.configure(JmxModule.java:51)
    while locating io.airlift.jmx.JmxAgent8
    while locating io.airlift.jmx.JmxAgent
    for the 1st parameter of io.airlift.jmx.JmxModule$JmxAnnouncementProvider.setJmxAgent(JmxModule.java:68)
    while locating io.airlift.jmx.JmxModule$JmxAnnouncementProvider
    while locating io.airlift.discovery.client.ServiceAnnouncement annotated with @com.google.inject.internal.Element(setName=,uniqueId=328, type=MULTIBINDER, keyType=)
    while locating java.util.Set<io.airlift.discovery.client.ServiceAnnouncement>
    for the 2nd parameter of io.airlift.discovery.client.Announcer.(Announcer.java:68)
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:63)
    while locating io.airlift.discovery.client.Announcer
    for the 2nd parameter of io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    at io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:120)
    while locating io.airlift.discovery.client.MergingServiceSelectorFactory
    at io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:72)
    while locating io.airlift.discovery.client.ServiceSelectorFactory
    for the 1st parameter of io.airlift.discovery.client.ServiceSelectorProvider.setServiceSelectorFactory(ServiceSelectorProvider.java:50)
    at com.facebook.presto.server.ServerMainModule.setup(ServerMainModule.java:251)
    Caused by: java.net.BindException (same stack trace as error add tuple builder #5)
    6 errors
    at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
    at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:178)
    at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
    at com.google.inject.Guice.createInjector(Guice.java:87)
    at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)
    at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:115)
    at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:67)
    `

I had tryed 'netstat -a|grep ', but the result never show any connection on this .

@dain
Copy link
Contributor

dain commented Nov 6, 2018

The JVM is not able to bind to the listener ports for HTTP and JMX, which most likely means there is still a Presto server running on that machine. I'd make sure there are no other Java (or "presto") programs running on the machine. netstat -an | grep {your_port} should work to find the bind process.

@VincentMLiu
Copy link
Author

The JVM is not able to bind to the listener ports for HTTP and JMX, which most likely means there is still a Presto server running on that machine. I'd make sure there are no other Java (or "presto") programs running on the machine. netstat -an | grep {your_port} should work to find the bind process.

Thanks, dain. I tried this command 'netstat -an | grep {port}' but results shows nothing, I also tried other commands like "ps -ef|grep presto" or "jps -lm|grep presto", they all appear nothing relevant to presto.

Finally, I removed all jars I added in plugin dir, and delete new catalog properties, then the presto server successfully started. I think there are something wrong in the connector I added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants