sekikn commented on PR #19281:
URL: https://github.com/apache/pulsar/pull/19281#issuecomment-1396502041

   Originally I tried to upgrade Alluxio to 2.9.0, which is the latest version 
at this writing, but [Alluxio's metrics refers to the `sun.management` package 
since that 
version](https://github.com/Alluxio/alluxio/blob/v2.9.0/core/common/src/main/java/alluxio/metrics/MetricsSystem.java#L165)
 and I came across the following error during using it.
   
   ```
   2023-01-19T09:47:18,396+0900 [public/default/alluxio-sink-0] ERROR 
org.apache.pulsar.functions.instance.JavaInstanceRunnable - 
[public/default/alluxio-sink:0] Uncaught exception in Java Instance
   java.lang.IllegalAccessError: class alluxio.metrics.MetricsSystem (in 
unnamed module @0x8c05339) cannot access class 
sun.management.ManagementFactoryHelper (in module java.management) because 
module java.management does not export sun.management to unnamed module 
@0x8c05339
           at 
alluxio.metrics.MetricsSystem.getDirectBufferPool(MetricsSystem.java:165) ~[?:?]
           at alluxio.metrics.MetricsSystem.<clinit>(MetricsSystem.java:157) 
~[?:?]
           at 
alluxio.client.file.FileSystemContext.initContext(FileSystemContext.java:316) 
~[?:?]
           at 
alluxio.client.file.FileSystemContext.init(FileSystemContext.java:305) ~[?:?]
           at 
alluxio.client.file.FileSystemContext.create(FileSystemContext.java:256) ~[?:?]
           at 
alluxio.client.file.FileSystemContext.create(FileSystemContext.java:225) ~[?:?]
           at 
alluxio.client.file.FileSystemContext.create(FileSystemContext.java:207) ~[?:?]
           at 
alluxio.client.file.FileSystem$Factory.create(FileSystem.java:138) ~[?:?]
           at 
org.apache.pulsar.io.alluxio.sink.AlluxioSink.open(AlluxioSink.java:101) ~[?:?]
           at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.setupOutput(JavaInstanceRunnable.java:857)
 ~[org.apache.pulsar-pulsar-functions-instance-2.11.0.jar:2.11.0]
           at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.setup(JavaInstanceRunnable.java:224)
 ~[org.apache.pulsar-pulsar-functions-instance-2.11.0.jar:2.11.0]
           at 
org.apache.pulsar.functions.instance.JavaInstanceRunnable.run(JavaInstanceRunnable.java:259)
 ~[org.apache.pulsar-pulsar-functions-instance-2.11.0.jar:2.11.0]
           at java.lang.Thread.run(Thread.java:833) ~[?:?]
   ```
   
   Probably I have to add the `--add-opens 
java.management/sun.management=ALL-UNNAMED` runtime option somewhere, but I'm 
not sure where it is yet. So let me upgrade it to 2.9.0+ in another PR.


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

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to