hadoop streaming - How to read file stored in hdfs using python Open() method? -


I would like to read a file from HDFS with the PDF Open method. Although this is not working, somebody gave me a way to read the HDFS file using the Open () method in Python.

  for the line in the open ("hdfs: // nameenode: 54311 / user / hasoop / filename.txt"):  

Returns the error

"IOError: [Errno 2] There is no such file or directory: 'hdfs: // namenode: 54311 /user/hadoop/filename.txt'"

Created in the form of it open ("http://example.com/index. Html ") will also be an error.

Your question has been answered well in the recommended duplicate.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -