1.需求
過濾輸入的log日志,包含atguigu的網站輸出到e:/atguigu.log,不包含atguigu的網站輸出到e:/other.log。
(1)輸入資料
(2)期望輸出資料
2.需求分析
3.案例實操
(1)編寫filtermapper類
view code
(2)編寫filterreducer類
(3)自定義一個outputformat類
(4)編寫recordwriter類
(5)編寫filterdriver類
1.需求
過濾輸入的log日志,包含atguigu的網站輸出到e:/atguigu.log,不包含atguigu的網站輸出到e:/other.log。
(1)輸入資料
(2)期望輸出資料
2.需求分析
3.案例實操
(1)編寫filtermapper類
view code
(2)編寫filterreducer類
(3)自定義一個outputformat類
(4)編寫recordwriter類
(5)編寫filterdriver類