Skip to content

Commit

Permalink
#5 refactor find common friends
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugSy committed Jan 11, 2018
1 parent 8178d43 commit 0f0e46e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.mapreduce.demo.commonfriends;
package com.mapreduce.demo.commonfriends.firstStep;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.mapreduce.demo.commonfriends;
package com.mapreduce.demo.commonfriends.firstStep;

import org.apache.hadoop.io.ArrayWritable;
import org.apache.hadoop.io.LongWritable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.mapreduce.demo.commonfriends;
package com.mapreduce.demo.commonfriends.firstStep;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.mapreduce.demo.commonfriends.second;
package com.mapreduce.demo.commonfriends.secondStep;

import com.mapreduce.demo.commonfriends.CmFrientsMapper;
import com.mapreduce.demo.commonfriends.CmFrientsReducer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.mapreduce.demo.commonfriends.second;
package com.mapreduce.demo.commonfriends.secondStep;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;

public class FindMapper extends Mapper<LongWritable, Text, Text, Text> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.mapreduce.demo.commonfriends.second;
package com.mapreduce.demo.commonfriends.secondStep;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
Expand Down

0 comments on commit 0f0e46e

Please sign in to comment.