jiangchunyang created PULSAR-23:
-----------------------------------

             Summary: [Bug] Pulsar2-11.0 pulsar-client AuthenticationSasl.class 
can not be used in java8
                 Key: PULSAR-23
                 URL: https://issues.apache.org/jira/browse/PULSAR-23
             Project: Pulsar
          Issue Type: Bug
         Environment: pulsar version : 2.11.0
java version : 1.8
            Reporter: jiangchunyang


h3. Version

pulsar version : 2.11.0
java version : 1.8
h3. Minimal reproduce step

My purpose is to use flink to consume the topic data set in pulsar, because our 
cluster uses kerberos for authentication, so when I use :
configuration.set(PulsarOptions.PULSAR_AUTH_PLUGIN_CLASS_NAME, 
org.apache.pulsar.client.impl.auth.AuthenticationSasl .class.getName());,

a compilation error occurs:

 
{code:java}
Cannot access org.apache.pulsar.client.impl.auth.AuthenticationSasl - Stack 
Overflow
   Bad class file: 
/C:/Users/admin/.m2/repository/org/apache/pulsar/pulsar-client-auth-sasl/2.11.0/pulsar-client-auth-sasl-2.11.0.jar!
 /org/apache/pulsar/client/impl/auth/AuthenticationSasl.class
     Class file has wrong version 61.0, should be 52.0
     Please delete the file or make sure the file is in the correct classpath 
subdirectory. {code}
 

But when I use the 2.10.0 version of pulsar, it will be compiled normally, so I 
think that the compilation of pulsar2.11 version is carried out using java17, 
and it is not available in pulsar-client as the official website said compile 
with java8

 

github the same issues location: https://github.com/apache/pulsar/issues/19982



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to