我们有 hadoop
具有3个数据节点的群集
我们从一开始就看到以下警告 namenode
我们将副本配置为3英寸 HDFS
配置
但没有找到正确的解决方法- Failed to place enough replicas: expected size is 1 but only 0
找了一会儿
2020-05-11 19:22:46,578 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,578 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,580 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,581 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,581 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,581 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,580 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,582 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,582 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
2020-05-11 19:22:46,582 WARN protocol.BlockStoragePolicy (BlockStoragePolicy.java:chooseStorageTypes(162)) - Failed to place enough replicas: expected size is 1 but only 0 storage types can be selected (replication=3, selected=[], unavailable=[DISK], removed=[DISK], policy=BlockStoragePolicy{HOT:7, storageTypes=[DISK], creationFallbacks=[], replicationFallbacks=[ARCHIVE]})
你知道这种行为的原因是什么吗?
暂无答案!
目前还没有任何答案,快来回答吧!