import pyarrow


def get_hdfs_connector(host: str, port: int, user: str):
    """ Initialise a connector to HDFS

    Parameters
    ----------
    host: str
        IP address for the host machine
    port: int
        Port to access HDFS data.
    user: str
        Username on Hadoop.

    Returns
    ----------
    fs: pyarrow.hdfs.HadoopFileSystem
    """
    return pyarrow.hdfs.connect(host=host, port=port, user=user)