The solution for the error is received:
1. Simply reduce the numIterations parameter for the algorithm in the engine.json file in your prediction engine.
or If this does not work, refer to another solution below.
2.Add checkpointing, which prevents the recursion used by the codebase from creating overflows. First create a new directory for storing breakpoints. Then use the SparkContext this directory for verification testing. Here is an example in Python:
sc.setCheckpointDir ('breakpoint /') You may also need to add a breakpoint to ALS, but I could not determine if this has a value. To add a breakpoint (perhaps not necessary), simply do:
ALS.checkpointInterval = 2
source share