You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2009/08/31 21:47:32 UTC

[jira] Commented: (MAPREDUCE-941) vaidya script calls awk instead of nawk

    [ https://issues.apache.org/jira/browse/MAPREDUCE-941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749592#action_12749592 ] 

Allen Wittenauer commented on MAPREDUCE-941:
--------------------------------------------

Two ways to fix this for Solaris:

a) change the script to use nawk

b) make sure /usr/xpg4/bin or /usr/xpg6/bin (POSIX subsystems) appears in the path prior to /usr/bin 

> vaidya script calls awk instead of nawk
> ---------------------------------------
>
>                 Key: MAPREDUCE-941
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-941
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>         Environment: Solaris
>            Reporter: Allen Wittenauer
>            Priority: Trivial
>
> The vaidya script uses this construction:
> awk 'BEGIN { RS = "" ; FS = "\n" } ; { print $1 }'
> Under "old awk", this fails.  Under "new awk", this works.  Depending upon the OS, awk may point to either old or new awk.  In the Solaris case, awk defaults to oawk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.