lhotari opened a new pull request #10559:
URL: https://github.com/apache/pulsar/pull/10559


   ### Motivation
   
   When running Pulsar SQL on JDK11, there's a failure in startup 
(`log/server.log`):
   ```
   2021-05-12T12:13:54.813Z        ERROR   main    
io.prestosql.server.PrestoServer        Unable to create injector, see the 
following errors:
   
   1) Error injecting constructor, java.io.IOException: java.io.IOException: 
Can not attach to current VM (try adding '-Djdk.attach.allowAttachSelf=true' to 
the JVM config)
     at io.airlift.jmx.JmxAgent9.<init>(JmxAgent9.java:47)
     at io.airlift.jmx.JmxModule.configure(JmxModule.java:55)
     while locating io.airlift.jmx.JmxAgent9
     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=339, 
type=MULTIBINDER, keyType=)
     while locating 
java.util.Set<io.airlift.discovery.client.ServiceAnnouncement>
       for the 2nd parameter of 
io.airlift.discovery.client.Announcer.<init>(Announcer.java:68)
     at 
io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:64)
     while locating io.airlift.discovery.client.Announcer
       for the 2nd parameter of 
io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:122)
     at 
io.airlift.discovery.client.DiscoveryModule.createMergingServiceSelectorFactory(DiscoveryModule.java:122)
     while locating io.airlift.discovery.client.MergingServiceSelectorFactory
     at 
io.airlift.discovery.client.DiscoveryModule.configure(DiscoveryModule.java:73)
     while locating io.airlift.discovery.client.ServiceSelectorFactory
       for the 1st parameter of 
io.airlift.discovery.client.ServiceSelectorProvider.setServiceSelectorFactory(ServiceSelectorProvider.java:50)
     at io.prestosql.server.ServerMainModule.setup(ServerMainModule.java:218)
   ```
   
   ### Modifications
   
   * Add `-Djdk.attach.allowAttachSelf=true` to `conf/presto/jvm.config`


-- 
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