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

Franjo Markovic commented on HADOOP-10133:
------------------------------------------

Yes, both variables had been set. 
I have not been working on this for a while (gave up on windows version, as 
both cygwin and "direct" version had a host of different issues).
This particular issue I was able to pinpoint as a problem in variable 
declarations/initialization in util.Shell.java.
This line:
private static String HADOOP_HOME_DIR = checkHadoopHome();      
is missing a "final" keyword, as "final" variables are initialized before 
non-final ones, resulting that (in this case) HADOOP_HOME_DIR was still Null at 
the time of WINUTILS variable initialization.

Interesting thing though is that this particular issue does not appear on 
non-cygwin setup - must have had some extra patch somewhere.


> winutils detection on windows-cygwin fails
> ------------------------------------------
>
>                 Key: HADOOP-10133
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10133
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.2.0
>         Environment: windows 7, cygwin
>            Reporter: Franjo Markovic
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> java.io.IOException: Could not locate executable null\bin\winutils.exe in the 
> Hadoop binaries.
> at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:278)
>  at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:300)
> at org.apache.hadoop.util.Shell.<clinit>(Shell.java:293)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to