From 5e5585a7e0e4bc4b5c9f3fb503b53db8242d2986 Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Fri, 31 Oct 2014 11:54:18 -0700 Subject: [PATCH] HADOOP-11253. Hadoop streaming test TestStreamXmlMultipleRecords fails on Windows. Contributed by Varun Vasudev. --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../apache/hadoop/streaming/TestStreamXmlMultipleRecords.java | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index fb78ffdf6d9..d3631f3c13e 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -523,6 +523,9 @@ Release 2.6.0 - UNRELEASED HADOOP-11198. Fix typo in javadoc for FileSystem#listStatus(). (Li Lu via wheat9) + HADOOP-11253. Hadoop streaming test TestStreamXmlMultipleRecords fails on + Windows. (Varun Vasudev via wheat9) + BREAKDOWN OF HDFS-6134 AND HADOOP-10150 SUBTASKS AND RELATED JIRAS HADOOP-10734. Implement high-performance secure random number sources. diff --git a/hadoop-tools/hadoop-streaming/src/test/java/org/apache/hadoop/streaming/TestStreamXmlMultipleRecords.java b/hadoop-tools/hadoop-streaming/src/test/java/org/apache/hadoop/streaming/TestStreamXmlMultipleRecords.java index cd64c82a9b0..4d9017bb15c 100644 --- a/hadoop-tools/hadoop-streaming/src/test/java/org/apache/hadoop/streaming/TestStreamXmlMultipleRecords.java +++ b/hadoop-tools/hadoop-streaming/src/test/java/org/apache/hadoop/streaming/TestStreamXmlMultipleRecords.java @@ -53,9 +53,9 @@ public class TestStreamXmlMultipleRecords extends TestStreaming private Configuration conf = null; private String myPerlMapper = - "perl -n -a -e 'print join(\"\\n\", map { \"$_\\t1\" } @F), \"\\n\";'"; + "perl -n -a -e 'print join(qq(\\n), map { qq($_\\t1) } @F), qq(\\n);'"; private String myPerlReducer = - "perl -n -a -e '$freq{$F[0]}++; END { print \"is\\t$freq{is}\\n\"; }'"; + "perl -n -a -e '$freq{$F[0]}++; END { print qq(is\\t$freq{is}\\n); }'"; public TestStreamXmlMultipleRecords() throws IOException { super();