Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Python by shubhankar ( 8 years ago )
>>> sc.textFile("D:/files", 5).collect()
[u'Can a kangaroo jump higher than a house? ', u'', u'Of course, a house doesn\ufffdt jump at all.', u'I was hiking once with my girlfriend. ', u'Suddenly a huge brown bear was charging at us, ', u'really mad. We must have come close to her cubs. ', u'Luckily I had my 9mm pistol with me. One shot to my ', u"girlfriend's kneecap was all it took. ", u'I could walk away at a comfortable pace. ', u'']
>>> sc.wholeTextFiles("D:/files", 5).collect()
[(u'file:/D:/files/file1.txt', u'Can a kangaroo jump higher than a house? \r\n\r\nOf course, a house doesn\ufffdt jump at all.'), (u'file:/D:/files/file2.txt', u"I was hiking once with my girlfriend. \r\nSuddenly a huge brown bear was charging at us, \r\nreally mad. We must have come close to her cubs. \r\nLuckily I had my 9mm pistol with me. One shot to my \r\ngirlfriend's kneecap was all it took. \r\nI could walk away at a comfortable pace. \r\n\r\n")]
>>>

 

Revise this Paste

Children: 92610
Your Name: Code Language: