You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by 吕鹏 <lv...@gmail.com> on 2011/06/26 10:33:15 UTC

Lock in_use.lock failed when using nfs in namenode

Hi
    I want to use nfs to save a copy of the data in namenode, and the nfs
dir /mnt/nfs/dfs/ can be read and written. Things seem to be right, but when
i format the hdfs, "ERROR common.Storage: Cannot create lock on
/mnt/nfs/dfs/name/in_use.lock" occur.
   how to solve the problem?

Peng

Re: Lock in_use.lock failed when using nfs in namenode

Posted by Harsh J <ha...@cloudera.com>.
Hey Peng,

Have a look at this conversation (Reply by Allen, specifically):
http://search-hadoop.com/m/jMq8W145e04

Basically, you may have to run the lockd service, which NFS requires
to lock files (server and client machines both need it).

On Sun, Jun 26, 2011 at 2:03 PM, 吕鹏 <lv...@gmail.com> wrote:
> Hi
>     I want to use nfs to save a copy of the data in namenode, and the nfs
> dir /mnt/nfs/dfs/ can be read and written. Things seem to be right, but when
> i format the hdfs, "ERROR common.Storage: Cannot create lock on
> /mnt/nfs/dfs/name/in_use.lock" occur.
>    how to solve the problem?
> Peng



-- 
Harsh J