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/tp.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 BDA/tp.py (limited to 'BDA/tp.py') diff --git a/BDA/tp.py b/BDA/tp.py new file mode 100644 index 0000000..9ace7e3 --- /dev/null +++ b/BDA/tp.py @@ -0,0 +1,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) + -- cgit v1.2.3