title: Implementing cross join in hadoop
body: <p>I am trying to implement cross join using hadoop in java. Both sides of the join are large enough that I can't keep any of them in memory. I have tried several things and although I realize that PIG/hive might be easier I would like to implement it native java.</p>
  
  <p>I think <code>CompositeInputFormat</code> might be the way to do this but I haven't been able to find any sample code. </p>
  
  <p>I have tried to send tagged data to <code>SequenceFileInputFormat</code> and tired to use the <code>Reducer</code> to join the data but it didn't work either. ( I can provide more details, if this is the right way ).</p>
  
  <p>Is there some sample code that I can have a look at?</p>