hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11456) Correction to BUILDING.txt:Building for Windows - Make & Perl
Date Mon, 05 Jan 2015 11:56:35 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14264518#comment-14264518
] 

Steve Loughran commented on HADOOP-11456:
-----------------------------------------

We should also state that the cygwin versions work too. Looking at my [[slider notes for windows
dev|https://svn.apache.org/repos/asf/incubator/slider/site/trunk/content/developing/windows.md]]:

{code}

1. Follow the Hadoop `BUILDING.TXT` instructions. 
1. install cygwin64 with its `sh` command.
1. Get the cygwin64 bin dir on the PATH (remember, ";" as separators)
1. find where the `CL` C/C++ compiler is and make sure it is on the PATH
1. get the (native) [CMake 2.8+](http://www.cmake.org/) command on the path, 
not any cygwin one.


Things to install in cygwin
* `sh`
* `ls`
* `rm`
* `cp`
* `gzip`
* `tar`
* `awk`
* `grep`
* `xargs`


## Avoid

* having cygwin `cmake` on your path; it must be the native cmake

### env variables

    CYGWIN=nodosfilewarning 
    PATH = cmake bin, cygwin bin, python bin, hadoop_home bin (see below)
    
example:

    C:\bin\cygwin64\bin;C:\bin\Python27\;C:\Windows\system32;C:\Windows;
    C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
    c:\java\jdk7\bin;C:\Program Files\Microsoft Windows Performance Toolkit\;
    C:\apps\maven\bin;C:\apps\Git\cmd;c:\bin;
    C:\Program Files (x86)\MSBuild\12.0\Bin;
    C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;
    C:\bin\cmake-2.8\bin;C:\bin\hadoop\bin;C:\bin\OpenSSL\bin
    

### Commands to test CLI setup

    cmake --version
    openssl version
    python --version
    git --version
    tar --version

    java -version
    mvn --version

    msbuild /version
    cl /help

and for hadoop, once installed

    winutils sysinfo
    hadoop version
    hadoop checknative 
    
{code}

Most of these instructions could be moved over to the BUILDING.TXT doc....

> Correction to BUILDING.txt:Building for Windows - Make & Perl
> -------------------------------------------------------------
>
>                 Key: HADOOP-11456
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11456
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 2.6.0, 2.5.2
>            Reporter: Rick Kellogg
>         Attachments: HADOOP-COMMON-11456-1.patch
>
>
> Both Perl and Make are required tools for building on Windows as well.
> Make is referenced in the hadoop-hdfs-project\hadoop-hdfs pom.xml (among others).
> Perl is referenced in the hadoop-project-dist pom.xml file for processing the changes
log.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message