Sunday, April 28, 2019

Python tips

Read from hdfs

- https://stackoverflow.com/questions/12485718/python-read-file-as-stream-from-hdfs
- https://creativedata.atlassian.net/wiki/spaces/SAP/pages/61177860/Python+-+Read+Write+files+from+HDFS



To run one script from another
 ( https://stackoverflow.com/questions/3781851/run-a-python-script-from-another-python-script-passing-in-arguments
 )
os.system("script.py inputs")
execfile("./filename.py")

No comments:

Post a Comment

Loud fan of desktop

 Upon restart the fan of the desktop got loud again. I cleaned the desktop from the dust but it was still loud (Lower than the first sound) ...