You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2006/11/28 20:59:21 UTC

[jira] Created: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

new dfsadmin command to wait until safe mode is exited
------------------------------------------------------

                 Key: HADOOP-756
                 URL: http://issues.apache.org/jira/browse/HADOOP-756
             Project: Hadoop
          Issue Type: Improvement
          Components: dfs
    Affects Versions: 0.8.0
            Reporter: Owen O'Malley
         Assigned To: Sameer Paranjpye
            Priority: Minor


I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

Re: [jira] Created: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by Eric Baldeschwieler <er...@yahoo-inc.com>.
Maybe just poll to see if it is in safe mode?  Slightly more versatile.

On Nov 28, 2006, at 11:59 AM, Owen O'Malley (JIRA) wrote:

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                  Key: HADOOP-756
>                  URL: http://issues.apache.org/jira/browse/HADOOP-756
>              Project: Hadoop
>           Issue Type: Improvement
>           Components: dfs
>     Affects Versions: 0.8.0
>             Reporter: Owen O'Malley
>          Assigned To: Sameer Paranjpye
>             Priority: Minor
>
>
> I would like to have a dfsadmin command that waits until dfs leaves  
> safemode. I want to be able to have my start up scripts wait until  
> dfs is up before starting my jobtracker.
>
> -- 
> 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
>
>


[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455715 ] 
            
Raghu Angadi commented on HADOOP-756:
-------------------------------------

5 second sleep is very long. Also no do we need to throw an exception when interrupted? 

I would write  :-)
while (  !( done = isDone() )  )  {
     sleep(100);
} 
  

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12454398 ] 
            
dhruba borthakur commented on HADOOP-756:
-----------------------------------------

A simple polling loop (outside of HDFS) can achieve this goal too.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Attachment: safemodewait.patch

Code review requested.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>         Attachments: safemodewait.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455510 ] 
            
Owen O'Malley commented on HADOOP-756:
--------------------------------------

True, but unless this is a tight inner loop the performance isn't worth the increase in mental complexity of having a non-standard loop body. 

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455382 ] 
            
dhruba borthakur commented on HADOOP-756:
-----------------------------------------

Ok, then i will create a new dfsadmin. Currently we have a command of the following type:

bin/hadoop dfsadmin -safemode [get][set][clear]

I am going to add another option:

bin/hadoop dfsadmin -safemode [get][set][clear][wait]

The [wait] option will cause the command to block till HDFS exists safemode. Internally, the DFSAdmin class will use a while-sleep-poll loop to wait.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Status: Patch Available  (was: Open)

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455758 ] 
            
dhruba borthakur commented on HADOOP-756:
-----------------------------------------

I think the 5 second sleep is appropriate. A smaller timeperiod will need the namenode to do more wasted work (because of an RPC call).

Regarding the "exception during interrupt", the higher level functions catches the interrupt and prints out an error message. This lets the user know that the call terminated because of an interrupt (and not because the namenode exited safemode). 

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455745 ] 
            
Hadoop QA commented on HADOOP-756:
----------------------------------

+1, http://issues.apache.org/jira/secure/attachment/12346438/safemodewait1.patch applied and successfully tested against trunk revision r481432

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12456181 ] 
            
Konstantin Shvachko commented on HADOOP-756:
--------------------------------------------

I think it is better if DFSAdmin prints something when the wait is over.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455469 ] 
            
Owen O'Malley commented on HADOOP-756:
--------------------------------------

It looks good except that the code is a little strange:

boolean done = false;
while(!done) {
  done = ...;
}

is better than:
while (true) {
  boolean done = ...;
  if (done) { break; }
  ...
}


> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

Doug Cutting updated HADOOP-756:
--------------------------------

           Status: Resolved  (was: Patch Available)
    Fix Version/s: 0.10.0
       Resolution: Fixed

I just committed this.  Thanks, Dhruba.


> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>             Fix For: 0.10.0
>
>         Attachments: safemodewait2.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Attachment:     (was: safemodewait.patch)

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Attachment: safemodewait1.patch

Incorporated code review comments.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Attachment: safemodewait2.patch

Incorporated review comments from Konstantin.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait2.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Raghu Angadi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455760 ] 
            
Raghu Angadi commented on HADOOP-756:
-------------------------------------

Correct,  I was not thinking of an RPC call.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455245 ] 
            
dhruba borthakur commented on HADOOP-756:
-----------------------------------------

Hi Owen, 

Can you pl give me some background regarding this issue? Can we achieve your required objective by implementing a simple polling loop outside HDFS?

thanks,
dhruba

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455759 ] 
            
Owen O'Malley commented on HADOOP-756:
--------------------------------------

I think the 5 seconds is great.



> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Attachment: safemodewait.patch

Earlier file was corrupted as part of upload. Please review this one.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>         Attachments: safemodewait.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455498 ] 
            
Konstantin Shvachko commented on HADOOP-756:
--------------------------------------------

while(!done) { 
calculates conditional expression once, while 
while (true) { ... if (done)
does it twice.


> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Attachment:     (was: safemodewait1.patch)

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Assigned: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur reassigned HADOOP-756:
---------------------------------------

    Assignee: dhruba borthakur  (was: Sameer Paranjpye)

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Updated: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-756?page=all ]

dhruba borthakur updated HADOOP-756:
------------------------------------

    Attachment:     (was: safemodewait.patch)

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: dhruba borthakur
>            Priority: Minor
>         Attachments: safemodewait1.patch
>
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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

        

[jira] Commented: (HADOOP-756) new dfsadmin command to wait until safe mode is exited

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HADOOP-756?page=comments#action_12455362 ] 
            
Owen O'Malley commented on HADOOP-756:
--------------------------------------

Of course you could write a loop in each script that needs to do this, but it seems like a pretty common wish. You don't really want to start up map/reduce clusters until the underlying hdfs is ready. It should be a couple of lines to add the functionality.

> new dfsadmin command to wait until safe mode is exited
> ------------------------------------------------------
>
>                 Key: HADOOP-756
>                 URL: http://issues.apache.org/jira/browse/HADOOP-756
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.8.0
>            Reporter: Owen O'Malley
>         Assigned To: Sameer Paranjpye
>            Priority: Minor
>
> I would like to have a dfsadmin command that waits until dfs leaves safemode. I want to be able to have my start up scripts wait until dfs is up before starting my jobtracker.

-- 
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