summaryrefslogtreecommitdiff
path: root/BDA/tp.py
blob: 9ace7e3a89f136003882a2ab9b88de23e82d4e29 (plain)
1
2
3
4
5
6
7
from hdfs import InsecureClient
client = InsecureClient('http://localhost:9870')

with open('arbres.csv') as reader, client.write('/user/root/arbres.csv') as writer:
    for line in reader:
        writer.write(line)