def put(local_path, hdfs_path):
    """Put a file on hdfs

    :param local_path: Source (str)
    :param hdfs_path: Destination (str)
    :raises: IOError: If unsuccessful
    """
    cmd = "hadoop fs -put %s %s" % (local_path, hdfs_path)
    rcode, stdout, stderr = _checked_hadoop_fs_command(cmd)