第一步安裝好hadoop集群配置
安裝 python hdfs 客戶端
修改hdfs 根目錄權限
pip install hdfs
hdfs dfs -chmod 777 /
# pip install hdfs
from hdfs import Client
# 連接ip
client = Client("http://192.168.206.100:9870/", root="/")
# 在根目錄下創建mydir目錄
client.makedirs
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/423356.html
標籤:其他
上一篇:pandas創建內容全是0的dataframe、pandas基于隨機整數、隨機浮點數創建dataframe(random numbers)
下一篇:【FXCG】今日市場分析
