Skip to content

Commit 78460ee

Browse files
committed
adds printing to stderr subsection to "tips and tricks"
1 parent f9f979c commit 78460ee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README_Hadoop_Streaming.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,13 @@ if __name__ == "__main__":
289289
## Tips and tricks
290290
These are some pro-tips for working with MapReduce programs written in Python for the Hadoop Streaming interface.
291291

292+
### Printing to `stderr`
293+
To avoid interfering with pipeline output in `stdout`, direct debugging print messages to `stderr`:
294+
295+
```python
296+
print("finding bugs... ~(^._.)", file=sys.stderr)
297+
```
298+
292299
### Debugging
293300
We encounter a problem if we add a `breakpoint()` in `map.py`.
294301
```python

0 commit comments

Comments
 (0)