{"record":{"id":"3dc9f83ca83da9fa","repo":"apache/flink","slug":"could-not-deserialize-hadoop-configuration-the-se","errorCode":null,"errorMessage":"Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match.","messagePattern":"Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match\\.","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/util/SerializableHadoopConfigWrapper.java","lineNumber":73,"sourceCode":"        // corrupts the serialization stream\n        final DataOutputSerializer ser = new DataOutputSerializer(256);\n        hadoopConfig.write(ser);\n        out.writeInt(ser.length());\n        out.write(ser.getSharedBuffer(), 0, ser.length());\n    }\n\n    private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n        in.defaultReadObject();\n\n        final byte[] data = new byte[in.readInt()];\n        in.readFully(data);\n        final DataInputDeserializer deser = new DataInputDeserializer(data);\n        this.hadoopConfig = new Configuration();\n\n        try {\n            this.hadoopConfig.readFields(deser);\n        } catch (IOException e) {\n            throw new IOException(\n                    \"Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match.\",\n                    e);\n        }\n    }\n}\n","sourceCodeStart":55,"sourceCodeEnd":79,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-orc/src/main/java/org/apache/flink/orc/util/SerializableHadoopConfigWrapper.java#L55-L79","documentation":"Error \"Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match.\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match.","solutions":["Address the cause reported by the error message: Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Could not deserialize Hadoop Configuration, the serialized and de-serialized don't match.\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}