from hdfs import InsecureClient client = InsecureClient('http://localhost:9870') # Affichage with open('arbres.csv') as reader: for line in reader: print(line) # ls for file in client.list('/user/root/dossier'): print(file) client.delete('arbres.csv')