我正在尝试使用hadoop和模块hdfs(python的不安全客户机)获取vm上可用磁盘空间的信息。
我们的目标是
hdfs dfs -df
hdfs dfs -df -h
以获取磁盘的使用百分比。
我有这样的脚本连接到hadoop虚拟机
from hdfs import InsecureClient
client = InsecureClient(URL:PORT, user=user)
#
client = Client(URL:PORT, proxy=proxy)
但我找不到方法来检索这类信息。。。有人有主意吗?谢谢你的时间
暂无答案!
目前还没有任何答案,快来回答吧!