def open(hdfs_path, mode="<STR_LIT:r>", buff_size=<NUM_LIT:0>, replication=<NUM_LIT:0>, blocksize=<NUM_LIT:0>,<EOL>user=None, encoding=None, errors=None):
host, port, path_ = path.split(hdfs_path, user)<EOL>fs = hdfs(host, port, user)<EOL>return fs.open_file(path_, mode, buff_size, replication, blocksize,<EOL>encoding, errors)<EOL>
Open a file, returning an :class:`~.file.hdfs_file` object.

``hdfs_path`` and ``user`` are passed to :func:`~path.split`,
while the other args are passed to the :class:`~.file.hdfs_file`
constructor.