[
https://issues.apache.org/jira/browse/HADOOP-12116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14600059#comment-14600059
]
Li Lu commented on HADOOP-12116:
--------------------------------
Let me elaborate a little bit more on this issue. We discovered this problem
when testing rolling upgrades. When running a hadoop streaming job which runs
"hdfs dfs -stat", if HADOOP_HOME is set to the old version of Hadoop but the
current hdfs script is from the new version, we're losing all CLASSPATH and
cannot find any classes. The reason for this is we did not set $cygwin in old
scripts, so $cygwin remains unset when the new script evaluates "if $cygwin;
then". Therefore, we'll set cygwin classpaths for all cases which will set
classpath to empty (since we do not have cygwin).
Given this fact, [~vinodkv], do you agree that we need to include this fix in
2.7.1? Thanks!
> Fix unrecommended syntax usages in hadoop/hdfs/yarn script for cygwin in
> branch-2
> ---------------------------------------------------------------------------------
>
> Key: HADOOP-12116
> URL: https://issues.apache.org/jira/browse/HADOOP-12116
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Li Lu
> Assignee: Li Lu
> Attachments: HADOOP-12116-branch-2.001.patch
>
>
> We're using syntax like "if $cygwin; then" which may be errorounsly evaluated
> into true if cygwin is unset. We need to fix this in branch-2.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)