[
https://issues.apache.org/jira/browse/HADOOP-2302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Devaraj Das updated HADOOP-2302:
--------------------------------
Resolution: Fixed
Release Note:
Provides a way to compare keys using numerical comparison. The key
specification of the form -k pos1[,pos2], is supported, where,
* pos is of the form f[.c][opts], where f is the number of the key field
to use, and c is the number of the first character from the beginning of the
field. Fields and character posns are numbered starting with 1; a character
position of zero in pos2 indicates the field's last character. If '.c' is
omitted from pos1, it defaults to 1 (the beginning of the field); if omitted
from pos2, it defaults to 0 (the end of the field). opts are ordering options.
The supported options are:
* -n, (Sort numerically)
* -r, (Reverse the result of comparison)
Multiple key specifications can be provided to sort on multiple key fields (in
order). The key fields are assumed to be separated using
map.output.key.field.separator. Specifying only -n as an option will make the
comparator treat the all key bytes as one field.
Hadoop Flags: [Reviewed]
Status: Resolved (was: Patch Available)
I just committed this.
> Streaming should provide an option for numerical sort of keys
> --------------------------------------------------------------
>
> Key: HADOOP-2302
> URL: https://issues.apache.org/jira/browse/HADOOP-2302
> Project: Hadoop Core
> Issue Type: Improvement
> Components: contrib/streaming
> Reporter: Lohit Vijayarenu
> Assignee: Devaraj Das
> Fix For: 0.19.0
>
> Attachments: 2302-new.patch, 2302-new.patch, 2302-new1.patch,
> 2302-new2.patch, 2302.1.patch, 2302.3.patch
>
>
> It would be good to have an option for numerical sort of keys for streaming.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.