summaryrefslogtreecommitdiff
path: root/BDA/tpsuite.py
blob: c8447f2d3f2d320920072bc418ed43ee2c9c1b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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')