summaryrefslogtreecommitdiff
path: root/BDA/tpsuite.py
diff options
context:
space:
mode:
Diffstat (limited to 'BDA/tpsuite.py')
-rw-r--r--BDA/tpsuite.py13
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')