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/tpsuite.py | |
| parent | 1a1b7b78abd3c06b1fa0a9294d66339852733c70 (diff) | |
feat: CM1 BDA
Diffstat (limited to 'BDA/tpsuite.py')
| -rw-r--r-- | BDA/tpsuite.py | 13 |
1 files changed, 13 insertions, 0 deletions
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') |
