DeviceMonitor init failed because of NPE. (#608)
This commit is contained in:
parent
979c22a430
commit
2cc47ccfa2
@ -151,7 +151,7 @@ object DeviceInfo {
|
||||
val deviceNameToDeviceInfo = new util.HashMap[String, DeviceInfo]()
|
||||
val mountPointToDeviceInfo = new util.HashMap[String, DeviceInfo]()
|
||||
|
||||
val dfResult = runCommand("df -h").trim
|
||||
val dfResult = runCommand("df -ah").trim
|
||||
logger.info(s"df result $dfResult")
|
||||
// (/dev/vdb, /mnt/disk1)
|
||||
val fsMounts = dfResult
|
||||
|
||||
@ -35,7 +35,7 @@ import com.aliyun.emr.rss.common.protocol.StorageInfo
|
||||
import com.aliyun.emr.rss.common.util.Utils
|
||||
|
||||
class DeviceMonitorSuite extends AnyFunSuite {
|
||||
val dfCmd = "df -h"
|
||||
val dfCmd = "df -ah"
|
||||
val dfOut =
|
||||
"""
|
||||
|Filesystem Size Used Avail Use% Mounted on
|
||||
|
||||
Loading…
Reference in New Issue
Block a user