Skip to content Skip to sidebar Skip to footer

Why Am I Getting These Strange Connection Errors When Reading Or Writing To Hadoop File System With A Python Script?

I wrote a python code to read and write to a hadoop file system with IP hdfs_ip. It takes 3 arguments - local_file_path remote_file_path read_or_write When I want to run it, I w

Solution 1:

I got the same error when substituting urllib for requests module. The problem is that the exception trace is conceptually in the wrong order. The real problem is the last exception in the trace.

More about this here: https://github.com/requests/requests/issues/2510

In your case a connection error has been raised in python_hdfs.py This is the real problem

Post a Comment for "Why Am I Getting These Strange Connection Errors When Reading Or Writing To Hadoop File System With A Python Script?"