Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How do you println an accumulator in pyspark?

How do you println an accumulator in pyspark?

New Contributor

I'd like to print out an accumulator using println, however it does not work the same way as passing the println functioniinto a foreach loop for a RDD. I can print with print, but I'd really like to use the println function if possible.

1 REPLY 1

Re: How do you println an accumulator in pyspark?

@Don Jernigan

Any specific reason that you want to use println rather than print ?

I don't see any documentation regarding println in pyspark