[
https://issues.apache.org/jira/browse/HDFS-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13035043#comment-13035043
]
Ted Yu commented on HDFS-1332:
------------------------------
Here is the updated log from TestFileCreation for getAdditionalBlock():
{code}
2011-05-17 13:51:20,203 INFO ipc.Server (Server.java:run(1434)) - IPC Server
handler 2 on 61961, call addBlock(/filestatus.dat,
DFSClient_NONMAPREDUCE_-1833786488_1, null,
[Lorg.apache.hadoop.hdfs.protocol.DatanodeInfo;@59727745), rpc version=1,
client version=67, methodsFingerPrint=-1645111634 from 127.0.0.1:61967: error:
java.io.IOException: File /filestatus.dat could only be replicated to 0 nodes,
instead of 1, because there are 1 datanodes running.
{code}
> When unable to place replicas, BlockPlacementPolicy should log reasons nodes
> were excluded
> ------------------------------------------------------------------------------------------
>
> Key: HDFS-1332
> URL: https://issues.apache.org/jira/browse/HDFS-1332
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Reporter: Todd Lipcon
> Assignee: Ted Yu
> Priority: Minor
> Labels: newbie
> Fix For: 0.23.0
>
> Attachments: HDFS-1332-concise.patch
>
>
> Whenever the block placement policy determines that a node is not a "good
> target" it could add the reason for exclusion to a list, and then when we log
> "Not able to place enough replicas" we could say why each node was refused.
> This would help new users who are having issues on pseudo-distributed (eg
> because their data dir is on /tmp and /tmp is full). Right now it's very
> difficult to figure out the issue.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira