Hey folks, anyone else had an issue with running an M/R script in 2.1? I have a script working perfectly fine in 2.0, but when chaning NApiVersion to 2.1 it runs only the getInputData stage and then says Complete.. no errors no nothing, returns the same result from the search in the getInputData stage as it does when in 2.0, just stops after that.. Never had this issue before and have other M/R scripts working fine in the same environment in 2.1..
u
クリスピポテト
03/06/2020, 8:32 AM
Try tracing the information through the get input data summary and map summary object on your summarize state. You might be able to figure it out from there. Also are you using global variables?
n
Nikola Gavric
03/06/2020, 8:49 AM
@クリスピポテト smart, will try, nope no global vars
d
D17339
03/06/2020, 10:10 AM
I feel 2.1 is still in BETA stage
💯 1
n
Nikola Gavric
03/06/2020, 10:52 AM
Update: Works fine if you return an array like [1, 2, 3] from the getInputData stage, then the reduce stage is triggered.. So there's something 2.1 doesn't like about what my search results return I guess.. but 2.0 doesn't mind.. feels a bit buggy. Will investigate further with summerize when I have some time and update here again.
b
battk
03/06/2020, 10:58 AM
does your map/reduce log the errors in the summarize step?
n
Nikola Gavric
03/06/2020, 11:09 AM
@battk not yet, gonna do it ASAP, will update here with my findings.