| 1 | cp -rf Example/itri/ /tmp |
| 2 | bin/hadoop dfs -put /tmp/itri/income/ income |
| 3 | bin/hadoop jar ItriMenu.jar Itri1LoadFile |
| 4 | |
| 5 | {{{ |
| 6 | #text |
| 7 | create new table: itri |
| 8 | Put data :"GunLong" to Table: itri's Detail:Name |
| 9 | Put data :"01" to Table: itri's Detail:Locate |
| 10 | Put data :"20" to Table: itri's Products:P1 |
| 11 | Put data :"40" to Table: itri's Products:P2 |
| 12 | Put data :"30" to Table: itri's Products:P3 |
| 13 | Put data :"50" to Table: itri's Products:P4 |
| 14 | |
| 15 | Put data :"Esing" to Table: itri's Detail:Name |
| 16 | Put data :"02" to Table: itri's Detail:Locate |
| 17 | Put data :"50" to Table: itri's Products:P1 |
| 18 | |
| 19 | Put data :"SunDon" to Table: itri's Detail:Name |
| 20 | Put data :"03" to Table: itri's Detail:Locate |
| 21 | Put data :"40" to Table: itri's Products:P1 |
| 22 | Put data :"30" to Table: itri's Products:P2 |
| 23 | |
| 24 | Put data :"StarBucks" to Table: itri's Detail:Name |
| 25 | Put data :"04" to Table: itri's Detail:Locate |
| 26 | Put data :"50" to Table: itri's Products:P1 |
| 27 | Put data :"50" to Table: itri's Products:P2 |
| 28 | Put data :"20" to Table: itri's Products:P3 |
| 29 | }}} |
| 30 | |
| 31 | bin/hadoop jar ItriMenu.jar Itri2Count |
| 32 | {{{ |
| 33 | #!text |
| 34 | 11/04/25 12:15:04 INFO input.FileInputFormat: Total input paths to process : 2 |
| 35 | 11/04/25 12:15:04 INFO mapred.JobClient: Running job: job_201104250959_0004 |
| 36 | 11/04/25 12:15:05 INFO mapred.JobClient: map 0% reduce 0% |
| 37 | 11/04/25 12:15:12 INFO mapred.JobClient: map 100% reduce 0% |
| 38 | 11/04/25 12:15:21 INFO mapred.JobClient: map 100% reduce 100% |
| 39 | }}} |
| 40 | |
| 41 | bin/hadoop jar ItriMenu.jar Itri3CalculateM |
| 42 | {{{ |
| 43 | #!text |
| 44 | 11/04/25 12:16:18 INFO mapred.JobClient: map 0% reduce 0% |
| 45 | 11/04/25 12:16:27 INFO mapred.JobClient: map 100% reduce 0% |
| 46 | 11/04/25 12:16:36 INFO mapred.JobClient: map 100% reduce 100% |
| 47 | }}} |
| 48 | |
| 49 | bin/hadoop jar ItriMenu.jar Itri4SortTurnover |
| 50 | |
| 51 | bin/hadoop jar ItriMenu.jar Itri5ShowReport 120 |
| 52 | {{{ |
| 53 | #!text |
| 54 | SunDon 's turnover is 120 $. |
| 55 | GunLong 's turnover is 140 $. |
| 56 | StarBucks 's turnover is 170 $. |
| 57 | }}} |