You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Sanjay Radia (Created) (JIRA)" <ji...@apache.org> on 2012/03/29 09:09:30 UTC

[jira] [Created] (HADOOP-8223) Initial patch for branch-1-win

Initial patch for branch-1-win
------------------------------

                 Key: HADOOP-8223
                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
             Project: Hadoop Common
          Issue Type: Sub-task
            Reporter: Sanjay Radia




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Sanjay Radia (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjay Radia updated HADOOP-8223:
---------------------------------

    Attachment: hadoop-8223-2.patch

Change Variable name from DISABLEWINDOWS to DISABLEWINDOWS_TEMPORARILY  - this should be more obvious to readers
                
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223-2.patch, hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Sanjay Radia (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241468#comment-13241468 ] 

Sanjay Radia commented on HADOOP-8223:
--------------------------------------

Doug, in several cases at the end you have to execute a shell command on windows or unix (or native code) because the operation  is not implementable in pure java. Do you mean more like the approach of DU.java (to get disk usage)? With Du.java the the mainline code just calls Du.java but Du.java calls the unix shell or the windows cmd.
                
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Sanjay Radia (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241601#comment-13241601 ] 

Sanjay Radia commented on HADOOP-8223:
--------------------------------------

The plan (as mentioned in HADOOP-8079) is to commit to branch and over time clean up the work based on feedback and reviews.
Doug I would like to move your comment/discussion to the main Jira (Hadoop-8079) so that it does not get lost when we I close this jira after committing the patch.
                
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223-2.patch, hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Doug Cutting (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241385#comment-13241385 ] 

Doug Cutting commented on HADOOP-8223:
--------------------------------------

Duplicating all of the command line logic will make things harder to maintain.

I wonder if it's time to revisit an approach like that of HADOOP-61, to move as much of the command line logic as possible out of shell scripts and into Java?
                
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Doug Cutting (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241572#comment-13241572 ] 

Doug Cutting commented on HADOOP-8223:
--------------------------------------

Sanjay, yes, in some cases we do need OS-specific code.  But we should minimize it and avoid duplication of logic when possible.  This patch duplicates a lot of logic in the startup scripts that might instead be moved from scripts into Java.
                
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223-2.patch, hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Sanjay Radia (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjay Radia updated HADOOP-8223:
---------------------------------

    Attachment: hadoop-8223.patch

A slightly cleaned up version of David's patch from Hadoop-8079
                
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Alexander Stojanovic (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241856#comment-13241856 ] 

Alexander Stojanovic commented on HADOOP-8223:
----------------------------------------------

@Doug Your points are valid ones. We have been thinking about a holistic approach to this that works in a cross-platform manner. Windows (sans Cygwin) has Powershell and Windows Command Shell as scripting/automation environments. I would love to see a discussion as Sanjay points out on the main Jira (Hadoop-8079) around this. We are totally open to how we might as a community refactor the work between pure Java and native platform scripting environments. 
                
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223-2.patch, hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (HADOOP-8223) Initial patch for branch-1-win

Posted by "Sanjay Radia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-8223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanjay Radia resolved HADOOP-8223.
----------------------------------

          Resolution: Fixed
    Target Version/s: HADOOP-1-Windows
    
> Initial patch for branch-1-win
> ------------------------------
>
>                 Key: HADOOP-8223
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8223
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: native
>            Reporter: Sanjay Radia
>         Attachments: hadoop-8223-2.patch, hadoop-8223.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira