and it works fine. However, when I SSH into a machine and I want to perform a hadoop command,
v = subprocess.check_output("hadoop fs -ls /path/to/file* | grep -oE '/(.*)'")
I get
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'check_output'
Not quite sure why. I think it might be my lack of understanding of subprocess. How can i fix this error?