pyspark unusual ValueError: too many values to unpack

ValueError: too many values to unpack

This is a python errors,

For example when the assignment:

a, b = (1,2,3) # appears ValueError: too many values ​​to unpack

And my spark a map code before using reduceByKey (lambda x: (x [0] + "|" + x [1])) in the second column missed assignments 1, so do not pass argument, causing the error

Guess you like

Origin blog.csdn.net/u010720408/article/details/94393164