From 8826cba4b92532cb622baffbb206d826661a5cfc Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 16 Feb 2026 11:37:31 +0100 Subject: feat: CM1 BDA --- BDA/tpsuite.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 BDA/tpsuite.py (limited to 'BDA/tpsuite.py') diff --git a/BDA/tpsuite.py b/BDA/tpsuite.py new file mode 100644 index 0000000..c8447f2 --- /dev/null +++ b/BDA/tpsuite.py @@ -0,0 +1,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') -- cgit v1.2.3