Help Center> MapReduce Service> FAQ> Job Development> What Should I Do When a Flink Job Fails to Be Executed and Error Message "java.lang.NoSuchFieldError: SECURITY_SSL_ENCRYPT_ENABLED" Is Displayed?

What Should I Do When a Flink Job Fails to Be Executed and Error Message "java.lang.NoSuchFieldError: SECURITY_SSL_ENCRYPT_ENABLED" Is Displayed?

Symptom

A Flink job fails to be executed and the following error message is displayed:

Caused by: java.lang.NoSuchFieldError: SECURITY_SSL_ENCRYPT_ENABLED

Solution

The third-party dependency package in the code conflicts with the cluster package. As a result, the Flink job fails to be submitted to the MRS cluster. You need to modify the dependency package, add the dfs.client.failover.proxy.provider.hacluster parameter to the hdfs-site.xml file, and set its value to org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider to adapt to the open-source HDFS dependency package. After the parameter is added, run the job again.