Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: FileBasedSink$Writer failed to close channel #28887

Closed
1 of 16 tasks
gabrywu opened this issue Oct 9, 2023 · 0 comments
Closed
1 of 16 tasks

[Feature Request]: FileBasedSink$Writer failed to close channel #28887

gabrywu opened this issue Oct 9, 2023 · 0 comments

Comments

@gabrywu
Copy link
Member

gabrywu commented Oct 9, 2023

What would you like to happen?

org.apache.hadoop.hdfs.DataStreamer throws a warning message: DataStreamer Exception java.lang.IllegalStateException: Trying to access closed classloader. Please check if you store classloaders directly or indirectly in static fields. If the stacktrace suggests that the leak occurs in a third party library and cannot be fixed immediately, you can disable this check with the configuration 'classloader.check-leaked-classloader'.
at org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.ensureInner(FlinkUserCodeClassLoaders.java:164) ~[flink-dist_2.12-1.13.5.jar:1.13.5]
at org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.loadClass(FlinkUserCodeClassLoaders.java:172) ~[flink-dist_2.12-1.13.5.jar:1.13.5]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_362]
at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_362]
at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2625) ~[flink-shaded-hadoop-2-uber-3.3.3.1.0.11-10.0.jar:3.3.3.1.0.11-10.0]
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2590) ~[flink-shaded-hadoop-2-uber-3.3.3.1.0.11-10.0.jar:3.3.3.1.0.11-10.0]
at org.apache.hadoop.crypto.CryptoCodec.getCodecClasses(CryptoCodec.java:126) ~[flink-shaded-hadoop-2-uber-3.3.3.1.0.11-10.0.jar:3.3.3.1.0.11-10.0]
at org.apache.hadoop.crypto.CryptoCodec.getInstance(CryptoCodec.java:61) ~[flink-shaded-hadoop-2-uber-3.3.3.1.0.11-10.0.jar:3.3.3.1.0.11-10.0]

And then org.apache.beam.sdk.io.FileBasedSink$Writer will failed to close channel, which throws errors

org.apache.beam.sdk.io.FileBasedSink$Writer [] - Closing channel for /path/.temp-beam/39e45b649fb492e2-cf6a-471d-932b-fc33858aa49d failed.
java.io.IOException: java.lang.IllegalStateException: Trying to access closed classloader. Please check if you store classloaders directly or indirectly in static fields. If the stacktrace suggests that the leak occurs in a third party library and cannot be fixed immediately, you can disable this check with the configuration 'classloader.check-leaked-classloader'.
at org.apache.hadoop.hdfs.ExceptionLastSeen.set(ExceptionLastSeen.java:45) ~[flink-shaded-hadoop-2-uber-3.3.3.1.0.11-10.0.jar:3.3.3.1.0.11-10.0]
at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:823) ~[flink-shaded-hadoop-2-uber-3.3.3.1.0.11-10.0.jar:3.3.3.1.0.11-10.0]
Caused by: java.lang.IllegalStateException: Trying to access closed classloader. Please check if you store classloaders directly or indirectly in static fields. If the stacktrace suggests that the leak occurs in a third party library and cannot be fixed immediately, you can disable this check with the configuration 'classloader.check-leaked-classloader'.

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@gabrywu gabrywu changed the title [Feature Request]: HadoopFileSystem using incorrect user when kerberos enabled [Feature Request]: FileBasedSink$Writer failed to close channel Oct 9, 2023
@gabrywu gabrywu closed this as completed Oct 12, 2023
@github-actions github-actions bot added this to the 2.52.0 Release milestone Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant