Hadoop - composite key

前端 未结 2 1573
盖世英雄少女心
盖世英雄少女心 2020-12-14 22:39

Suppose I have a tab delimited file containing user activity data formatted like this:

timestamp  user_id  page_id  action_id

I want to wri

2条回答
  •  被撕碎了的回忆
    2020-12-14 22:56

    You could write your own class that implements Writable and WritableComparable that would compare your two fields.

    Pierre-Luc Bertrand

提交回复
热议问题