[ 
https://issues.apache.org/jira/browse/HADOOP-9831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Nauroth updated HADOOP-9831:
----------------------------------

    Attachment: HADOOP-9831.1.patch

Here is a patch to update hadoop.cmd to expose the checknative command.

I also noticed that we have a problem with Unix line endings in cmd scripts.  
This can cause cmd to give errors like this:

{code}
The system cannot find the batch label specified - make_command_arguments 
{code}

To fix this, I've updated .gitattributes to use crlf line endings for cmd 
scripts.  We were already doing this for *.bat, but I needed to add *.cmd.

Note that if you want to test this locally, then I think you'll need to commit 
the .gitattributes to your own personal branch first, and then run the 
following to reset line endings in your working copy:

{code}
git rm -rf --cached . && git reset HEAD --hard
{code}

Make sure that you don't have any other code changes in progress before running 
that command.  It will delete your changes.
                
> Make checknative shell command accessible on Windows.
> -----------------------------------------------------
>
>                 Key: HADOOP-9831
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9831
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: bin
>    Affects Versions: 3.0.0, 2.1.1-beta
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>            Priority: Minor
>         Attachments: HADOOP-9831.1.patch
>
>
> The checknative command was implemented in HADOOP-9162 and HADOOP-9164 to 
> print information about availability of native libraries.  We already have 
> the native code to do this on Windows.  We just need to update hadoop.cmd to 
> expose the checknative command and pass through to the correct command class.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to