Closed nodece closed 3 years ago
It seems pulsar was killed by memory limit, In my mac, I can reproduce the issue.
I get into docker ,and run the command , I will see Killed
Please set the docker memory size
The pulsar will run and print some error.
2:50:57.513 [main] ERROR org.apache.bookkeeper.common.component.AbstractLifecycleComponent - Failed to start Component: storage-service
java.util.ServiceConfigurationError: io.grpc.ManagedChannelProvider: Error accessing configuration file
at java.util.ServiceLoader.fail(ServiceLoader.java:582) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1173) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1206) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1221) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265) ~[?:?]
at java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300) ~[?:?]
at java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385) ~[?:?]
at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:67) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ServiceProviders.load(ServiceProviders.java:42) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ManagedChannelProvider.<clinit>(ManagedChannelProvider.java:42) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ManagedChannelBuilder.forTarget(ManagedChannelBuilder.java:76) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at org.apache.bookkeeper.clients.utils.GrpcChannels.createChannelBuilder(GrpcChannels.java:66) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.clients.impl.internal.LocationClientImpl.<init>(LocationClientImpl.java:67) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.clients.impl.internal.StorageServerClientManagerImpl.<init>(StorageServerClientManagerImpl.java:76) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.StorageServer.lambda$buildStorageServer$6(StorageServer.java:346) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.storage.StorageContainerStoreBuilder.build(StorageContainerStoreBuilder.java:162) ~[org.apache.bookkeeper-stream-storage-service-impl-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.service.StorageService.doStart(StorageService.java:46) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:83) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.LifecycleComponentStack.lambda$start$4(LifecycleComponentStack.java:144) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406) [com.google.guava-guava-30.1-jre.jar:?]
at org.apache.bookkeeper.common.component.LifecycleComponentStack.start(LifecycleComponentStack.java:144) [org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.StreamStorageLifecycleComponent.doStart(StreamStorageLifecycleComponent.java:50) [org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:83) [org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.runStreamStorage(LocalBookkeeperEnsemble.java:365) [org.apache.pulsar-pulsar-zookeeper-utils-2.8.0.jar:2.8.0]
at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.startStandalone(LocalBookkeeperEnsemble.java:447) [org.apache.pulsar-pulsar-zookeeper-utils-2.8.0.jar:2.8.0]
at org.apache.pulsar.PulsarStandalone.start(PulsarStandalone.java:264) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
at org.apache.pulsar.PulsarStandaloneStarter.main(PulsarStandaloneStarter.java:121) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
Caused by: java.net.MalformedURLException: no !/ found in url spec:file:/pulsar/lib/io.grpc-grpc-okhttp-1.33.0.jar!/META-INF/services/io.grpc.ManagedChannelProvider
at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:172) ~[?:?]
at java.net.JarURLConnection.<init>(JarURLConnection.java:158) ~[?:?]
at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) ~[?:?]
at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) ~[?:?]
at java.net.URL.openConnection(URL.java:1099) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1163) ~[?:?]
... 25 more
12:50:57.581 [main] ERROR org.apache.bookkeeper.common.component.AbstractLifecycleComponent - Failed to start Component: stream-storage
java.util.ServiceConfigurationError: io.grpc.ManagedChannelProvider: Error accessing configuration file
at java.util.ServiceLoader.fail(ServiceLoader.java:582) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1173) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1206) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1221) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265) ~[?:?]
at java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300) ~[?:?]
at java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385) ~[?:?]
at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:67) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ServiceProviders.load(ServiceProviders.java:42) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ManagedChannelProvider.<clinit>(ManagedChannelProvider.java:42) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ManagedChannelBuilder.forTarget(ManagedChannelBuilder.java:76) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at org.apache.bookkeeper.clients.utils.GrpcChannels.createChannelBuilder(GrpcChannels.java:66) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.clients.impl.internal.LocationClientImpl.<init>(LocationClientImpl.java:67) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.clients.impl.internal.StorageServerClientManagerImpl.<init>(StorageServerClientManagerImpl.java:76) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.StorageServer.lambda$buildStorageServer$6(StorageServer.java:346) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.storage.StorageContainerStoreBuilder.build(StorageContainerStoreBuilder.java:162) ~[org.apache.bookkeeper-stream-storage-service-impl-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.service.StorageService.doStart(StorageService.java:46) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:83) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.LifecycleComponentStack.lambda$start$4(LifecycleComponentStack.java:144) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406) ~[com.google.guava-guava-30.1-jre.jar:?]
at org.apache.bookkeeper.common.component.LifecycleComponentStack.start(LifecycleComponentStack.java:144) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.StreamStorageLifecycleComponent.doStart(StreamStorageLifecycleComponent.java:50) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:83) [org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.runStreamStorage(LocalBookkeeperEnsemble.java:365) [org.apache.pulsar-pulsar-zookeeper-utils-2.8.0.jar:2.8.0]
at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.startStandalone(LocalBookkeeperEnsemble.java:447) [org.apache.pulsar-pulsar-zookeeper-utils-2.8.0.jar:2.8.0]
at org.apache.pulsar.PulsarStandalone.start(PulsarStandalone.java:264) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
at org.apache.pulsar.PulsarStandaloneStarter.main(PulsarStandaloneStarter.java:121) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
Caused by: java.net.MalformedURLException: no !/ found in url spec:file:/pulsar/lib/io.grpc-grpc-okhttp-1.33.0.jar!/META-INF/services/io.grpc.ManagedChannelProvider
at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:172) ~[?:?]
at java.net.JarURLConnection.<init>(JarURLConnection.java:158) ~[?:?]
at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) ~[?:?]
at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) ~[?:?]
at java.net.URL.openConnection(URL.java:1099) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1163) ~[?:?]
... 25 more
12:50:57.584 [main] ERROR org.apache.pulsar.PulsarStandaloneStarter - Failed to start pulsar service.
java.util.ServiceConfigurationError: io.grpc.ManagedChannelProvider: Error accessing configuration file
at java.util.ServiceLoader.fail(ServiceLoader.java:582) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1173) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1206) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1221) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265) ~[?:?]
at java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300) ~[?:?]
at java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385) ~[?:?]
at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:67) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ServiceProviders.load(ServiceProviders.java:42) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ManagedChannelProvider.<clinit>(ManagedChannelProvider.java:42) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at io.grpc.ManagedChannelBuilder.forTarget(ManagedChannelBuilder.java:76) ~[io.grpc-grpc-api-1.33.0.jar:1.33.0]
at org.apache.bookkeeper.clients.utils.GrpcChannels.createChannelBuilder(GrpcChannels.java:66) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.clients.impl.internal.LocationClientImpl.<init>(LocationClientImpl.java:67) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.clients.impl.internal.StorageServerClientManagerImpl.<init>(StorageServerClientManagerImpl.java:76) ~[org.apache.bookkeeper-stream-storage-java-client-base-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.StorageServer.lambda$buildStorageServer$6(StorageServer.java:346) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.storage.StorageContainerStoreBuilder.build(StorageContainerStoreBuilder.java:162) ~[org.apache.bookkeeper-stream-storage-service-impl-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.service.StorageService.doStart(StorageService.java:46) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:83) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.LifecycleComponentStack.lambda$start$4(LifecycleComponentStack.java:144) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406) ~[com.google.guava-guava-30.1-jre.jar:?]
at org.apache.bookkeeper.common.component.LifecycleComponentStack.start(LifecycleComponentStack.java:144) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.stream.server.StreamStorageLifecycleComponent.doStart(StreamStorageLifecycleComponent.java:50) ~[org.apache.bookkeeper-stream-storage-server-4.14.1.jar:4.14.1]
at org.apache.bookkeeper.common.component.AbstractLifecycleComponent.start(AbstractLifecycleComponent.java:83) ~[org.apache.bookkeeper-bookkeeper-common-4.14.1.jar:4.14.1]
at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.runStreamStorage(LocalBookkeeperEnsemble.java:365) ~[org.apache.pulsar-pulsar-zookeeper-utils-2.8.0.jar:2.8.0]
at org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble.startStandalone(LocalBookkeeperEnsemble.java:447) ~[org.apache.pulsar-pulsar-zookeeper-utils-2.8.0.jar:2.8.0]
at org.apache.pulsar.PulsarStandalone.start(PulsarStandalone.java:264) ~[org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
at org.apache.pulsar.PulsarStandaloneStarter.main(PulsarStandaloneStarter.java:121) [org.apache.pulsar-pulsar-broker-2.8.0.jar:2.8.0]
Caused by: java.net.MalformedURLException: no !/ found in url spec:file:/pulsar/lib/io.grpc-grpc-okhttp-1.33.0.jar!/META-INF/services/io.grpc.ManagedChannelProvider
at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:172) ~[?:?]
at java.net.JarURLConnection.<init>(JarURLConnection.java:158) ~[?:?]
at sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:81) ~[?:?]
at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41) ~[?:?]
at java.net.URL.openConnection(URL.java:1099) ~[?:?]
at java.util.ServiceLoader$LazyClassPathLookupIterator.parse(ServiceLoader.java:1163) ~[?:?]
... 25 more
@leizhiyuan You are right that pulsar was killed by memory limit.
Describe the bug
I tried to run pulsar standalone 2.8.0 in docker, I found that this container will exit automatically. pulsar standalone 2.7.0 is work.
docker command:
docker logs:
Desktop (please complete the following information):