I have been unable to resolve this issue. I admit the code needs to be optimized and is the root cause of the issue. But, if possible, I need to do something to just get it to run now. The underlying pipeline table needs to be rebuilt. once the table is created, I will have the time to clean up and optimize the code. 

Is there a way to increase the memory allocated to the JVM to just get the job to complete?