From 41ceaa5552199afc759dcf282a582ad0aee824e4 Mon Sep 17 00:00:00 2001 From: Matt Post Date: Thu, 6 Sep 2012 11:31:21 -0400 Subject: [PATCH] Hadoop CDPATH bugfix submitted by Lane Schwartz. --- scripts/training/pipeline.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/training/pipeline.pl b/scripts/training/pipeline.pl index 10903b3de..f22d836af 100755 --- a/scripts/training/pipeline.pl +++ b/scripts/training/pipeline.pl @@ -32,6 +32,11 @@ BEGIN use CachePipe; # use Thread::Pool; +# Hadoop uses a stupid hacker trick to change directories, but (per Lane Schwartz) if CDPATH +# contains ".", it triggers the printing of the directory, which kills the stupid hacker trick. +# Thus we undefine CDPATH to ensure this doesn't happen. +delete $ENV{CDPATH}; + my $HADOOP = $ENV{HADOOP}; my $THRAX = "$JOSHUA/thrax";