def get_filename_label_pair(filenames_data_rdd,labels_rdd):
    """
        This function matches the filename with label
        
        --input-------------------------------------
        filenames_data_rdd : [<hash1>, <hash2>, ...]
        labels_rdd : [label1, label2, ...]
        
        --output------------------------------------
        filename_label_pair : [(<hash1>,<label1>), (<hash2>,<label2>), ...]
    """
    
    id_filenames_rdd = filenames_data_rdd.zipWithIndex().map(lambda x: (x[1],x[0]))
    id_label_rdd = labels_rdd.zipWithIndex().map(lambda x: (x[1],x[0]))
    filename_label_pair = id_filenames_rdd.join(id_label_rdd).map(lambda x: x[1])
    return filename_label_pair