hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Prakash <ravihad...@gmail.com>
Subject Re: Unable to append to a file in HDFS
Date Mon, 30 Oct 2017 20:08:42 GMT
Hi Tarik!

The lease is owned by a client. If you launch 2 client programs, they will
be viewed as separate (even though the user is same). Are you sure you
closed the file when you first wrote it? Did the client program which wrote
the file, exit cleanly? In any case, after the namenode lease hard timeout
<https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/LeaseManager.java#L82>,
the lease will be recovered, and you ought to be able to append to it. Is
that not what you are seeing?

HTH
Ravi

On Mon, Oct 30, 2017 at 11:04 AM, Tarik Courdy <tarik.courdy@gmail.com>
wrote:

> Good morning -
>
> I have a file in hdfs that I can write to once but when I try to append to
> it I receive an error stating that someone else owns the file lease.
>
> I am the only one trying to append to this file.  I have also made sure
> that dfs.support.append has been set to true.  Additionally, I have also
> tried setting the the dfs.replication to 1 since I read this had helped
> someone else with this issue.
>
> However, neither of these have allowed me to append to the file.
>
> My HDFS setup consists of a name node, a secondary name node, and 2 data
> nodes.
>
> Any suggestions that you might be able to provide would be greatly
> appreciated.
>
> Thank you for your time.
>
> -Tarik
>

Mime
View raw message