[ http://issues.apache.org/jira/browse/HADOOP-286?page=comments#action_12432939 ] Yoram Arnon commented on HADOOP-286: ------------------------------------
+1 for not requesting a lease unless a write operation is required (i.e. the patch). > copyFromLocal throws LeaseExpiredException > ------------------------------------------ > > Key: HADOOP-286 > URL: http://issues.apache.org/jira/browse/HADOOP-286 > Project: Hadoop > Issue Type: Bug > Components: dfs > Affects Versions: 0.3.0 > Environment: redhar linux > Reporter: Runping Qi > Attachments: Lease.patch > > > Loading local files to dfs through hadoop dfs -copyFromLocal failed due to > the following exception: > copyFromLocal: org.apache.hadoop.dfs.LeaseExpiredException: No lease on > output_crawled.1.txt > at > org.apache.hadoop.dfs.FSNamesystem.getAdditionalBlock(FSNamesystem.java:414) > at org.apache.hadoop.dfs.NameNode.addBlock(NameNode.java:190) > at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:243) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:231) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira