配置文件config.py中存在一个配置项HDFS_IP
class Config:
HDFS_IP = "http://127.0.0.1:50070"
如何才能在普通的函数中取得该值
def get_hdfs():
hdfs_client=Client('http://127.0.0.1:50070')
return hdfs_client
在此处如何载入HDFS_IP配置参数。
配置文件config.py中存在一个配置项HDFS_IP
class Config:
HDFS_IP = "http://127.0.0.1:50070"
如何才能在普通的函数中取得该值
def get_hdfs():
hdfs_client=Client('http://127.0.0.1:50070')
return hdfs_client
在此处如何载入HDFS_IP配置参数。