[
https://issues.apache.org/jira/browse/HDFS-11620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15954882#comment-15954882
]
Mukul Kumar Singh commented on HDFS-11620:
------------------------------------------
An initial look in the code points to the following lines in the code
{code}
cluster.waitOzoneReady();
if (waitForChillModeFinish) {
cluster.waitTobeOutOfChillMode();
}
{code}
We are waiting for the ozone to be ready however, we are not waiting for the
cluster to process the first heartbeat.
The first heartbeat will update the space remaining in the cluster in the stats.
Hence we need to add the following call.
----> cluster.waitForHeartbeatProcessed();
> Ozone: Allocate container for MiniOzone cluster can fails because of
> insufficient space
> ---------------------------------------------------------------------------------------
>
> Key: HDFS-11620
> URL: https://issues.apache.org/jira/browse/HDFS-11620
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: ozone
> Reporter: Mukul Kumar Singh
> Assignee: Mukul Kumar Singh
>
> Allocate container for MiniOzone cluster can fails because of insufficient
> space
> {code}
> org.apache.hadoop.ipc.RemoteException: Unable to find enough nodes that meet
> the space requirement in healthy node set. Nodes required: 1 Found: 0
> at
> org.apache.hadoop.ozone.scm.container.placement.algorithms.SCMCommonPolicy.chooseDatanodes(SCMCommonPolicy.java:131)
> at
> org.apache.hadoop.ozone.scm.container.placement.algorithms.SCMContainerPlacementRandom.chooseDatanodes(SCMContainerPlacementRandom.java:68)
> at
> org.apache.hadoop.ozone.scm.container.ContainerMapping.allocateContainer(ContainerMapping.java:220)
> at
> org.apache.hadoop.ozone.scm.StorageContainerManager.allocateContainer(StorageContainerManager.java:355)
> at
> org.apache.hadoop.ozone.protocolPB.StorageContainerLocationProtocolServerSideTranslatorPB.allocateContainer(StorageContainerLocationProtocolServerSideTranslatorPB.java:107)
> at
> org.apache.hadoop.ozone.protocol.proto.StorageContainerLocationProtocolProtos$StorageContainerLocationProtocolService$2.callBlockingMethod(StorageContainerLocationProtocolProtos.java:4498)
> at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:522)
> at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:991)
> at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:867)
> at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:813)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:422)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1965)
> at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2659)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]