1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 05:51:54 +00:00
This commit is contained in:
Newnius 2020-07-06 10:51:53 +08:00
parent a8045aaefb
commit 2dd87ca6c8

View File

@ -74,6 +74,10 @@ func InstanceOfConfiguration() *Configuration {
if len(value) != 0 {
configurationInstance.HDFSBaseDir = value
}
value = os.Getenv("DFSBaseDir")
if len(value) != 0 {
configurationInstance.DFSBaseDir = value
}
value = os.Getenv("EnableShareRatio")
if len(value) != 0 {
if val, err := strconv.ParseFloat(value, 32); err == nil {