|
|
-
hdfs format command issue
Dhodapkar, Chinmay 2011-08-13, 15:41
I am trying to automate the installation/bringup of a complete hadoop/hbase cluster from a single script. I have run into a very small issue... Before bringing up the namenode, I have to format it with the usual "hadoop namenode -format"
Executing the above command prompts the user for Y/N?. Is there an option that can be passed to force the format without prompting? The aim is for the script to complete without any human intervention...
+
Dhodapkar, Chinmay 2011-08-13, 15:41
-
Re: hdfs format command issue
Giridharan Kesavan 2011-08-15, 00:42
this should help.
echo Y | ${hadoophdfshome}/bin/hdfs namenode -format
-giri
On Sat, Aug 13, 2011 at 8:41 AM, Dhodapkar, Chinmay <[EMAIL PROTECTED]>wrote:
> I am trying to automate the installation/bringup of a complete hadoop/hbase > cluster from a single script. I have run into a very small issue... > Before bringing up the namenode, I have to format it with the usual "hadoop > namenode -format" > > Executing the above command prompts the user for Y/N?. Is there an option > that can be passed to force the format without prompting? > The aim is for the script to complete without any human intervention... > > > >
+
Giridharan Kesavan 2011-08-15, 00:42
-
RE: hdfs format command issue
Dhodapkar, Chinmay 2011-08-16, 00:02
Perfect :)
-----Original Message----- From: Giridharan Kesavan [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 14, 2011 5:42 PM To: [EMAIL PROTECTED] Subject: Re: hdfs format command issue
this should help.
echo Y | ${hadoophdfshome}/bin/hdfs namenode -format
-giri
On Sat, Aug 13, 2011 at 8:41 AM, Dhodapkar, Chinmay <[EMAIL PROTECTED]>wrote:
> I am trying to automate the installation/bringup of a complete hadoop/hbase > cluster from a single script. I have run into a very small issue... > Before bringing up the namenode, I have to format it with the usual "hadoop > namenode -format" > > Executing the above command prompts the user for Y/N?. Is there an option > that can be passed to force the format without prompting? > The aim is for the script to complete without any human intervention... > > > >
+
Dhodapkar, Chinmay 2011-08-16, 00:02
-
Re: hdfs format command issue
Harsh J 2011-08-16, 04:58
Generally though, the coreutil 'yes' lets you accomplish these kind of tasks where you need to repeatedly put out a string in order to get through some interaction/etc..
On Tue, Aug 16, 2011 at 5:32 AM, Dhodapkar, Chinmay <[EMAIL PROTECTED]> wrote: > Perfect :) > > -----Original Message----- > From: Giridharan Kesavan [mailto:[EMAIL PROTECTED]] > Sent: Sunday, August 14, 2011 5:42 PM > To: [EMAIL PROTECTED] > Subject: Re: hdfs format command issue > > this should help. > > echo Y | ${hadoophdfshome}/bin/hdfs namenode -format > > -giri > > On Sat, Aug 13, 2011 at 8:41 AM, Dhodapkar, Chinmay > <[EMAIL PROTECTED]>wrote: > >> I am trying to automate the installation/bringup of a complete hadoop/hbase >> cluster from a single script. I have run into a very small issue... >> Before bringing up the namenode, I have to format it with the usual "hadoop >> namenode -format" >> >> Executing the above command prompts the user for Y/N?. Is there an option >> that can be passed to force the format without prompting? >> The aim is for the script to complete without any human intervention... >> >> >> >> >
-- Harsh J
+
Harsh J 2011-08-16, 04:58
|
|