diff options
| author | Martial Simon <msimon_fr@hotmail.com> | 2026-02-16 11:37:31 +0100 |
|---|---|---|
| committer | Martial Simon <msimon_fr@hotmail.com> | 2026-02-16 11:37:31 +0100 |
| commit | 8826cba4b92532cb622baffbb206d826661a5cfc (patch) | |
| tree | 8e6fb0b9407ad61d94ba75c83f9dcce140725644 /BDA/tp.py | |
| parent | 1a1b7b78abd3c06b1fa0a9294d66339852733c70 (diff) | |
feat: CM1 BDA
Diffstat (limited to 'BDA/tp.py')
| -rw-r--r-- | BDA/tp.py | 7 |
1 files changed, 7 insertions, 0 deletions
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) + |
