31.10. Limitations when Executing Stored Scripts
It is not possible to use scripts that create a
DIST mode. Any attempts to execute these scripts will result in a
NotSerializableException, as the lambdas fail when attempting to be serialized. To workaround this issue it is recommended to manually iterate over data using an
Iterator, or to execute lambdas after the data has been transferred from the script to the originator node.