#for hadoop
2 my $hadoopcmd=`which hadoop`;#此处返回的结果带"\n"要注意。
3 chomp $hadoopcmd;
print STDERR "$hadoopcmd\n";
#for hadoop
2 my $hadoopcmd=`which hadoop`;#此处返回的结果带"\n"要注意。
3 chomp $hadoopcmd;
print STDERR "$hadoopcmd\n";
转载于:https://www.cnblogs.com/finallyliuyu/archive/2012/07/12/2587892.html