모두 합치기
HDFS에서 결과를 뽑아내야 한다. 다음과 같이 두 가지 명령을 실행시킨다.
hadoop fs -getmerge patterns/frequentpatterns fpatters.seq hadoop fs -get patterns/fList flist.seq
이제 DataReader 프로그램을 실행시켜 결과를 얻을 수 있다. 프로그램을 실행시키면 다음과 같은 결과가 나온다.
White Bread >> 2pct. Milk: support=0.051, conf=0.470, lift=3.947, conviction=1.662 Potato Chips >> 2pct. Milk: support=0.045, conf=0.409, lift=4.189, conviction=1.528 White Bread >> Tomatoes: support=0.040, conf=0.611, lift=5.134, conviction=2.265 White Bread >> Eggs: support=0.055, conf=0.449, lift=3.773, conviction=1.599 2pct. Milk >> Eggs: support=0.052, conf=0.425, lift=3.883, conviction=1.549
머하웃은 여러 아이템 집합을 처리하지 않는 것이 단점이다. 그렇지만 우리에게는 좋은 시작점이다.