| 643 | |
| 644 | == 2012-07-21 == |
| 645 | |
| 646 | * 目前遇到的狀況已經有人反映在 [https://issues.apache.org/jira/browse/HADOOP-7682 HADOOP-7682] |
| 647 | * [解法] 參考 http://en.wikisource.org/wiki/User:Fkorning/Code/Hadoop-on-Cygwin 或 http://sourceforge.net/p/win-hadoop/wiki/Home/ |
| 648 | |
| 649 | * 學習用 log4j 進行除錯 |
| 650 | * 編輯 ${HADOOP_HOME}/conf/log4j.properties |
| 651 | * [1] [http://stackoverflow.com/questions/4821134/hadoop-enable-logging Hadoop enable logging] |
| 652 | {{{ |
| 653 | log4j.logger.org.apache.hadoop = DEBUG |
| 654 | }}} |
| 655 | * [2] 或把 hadoop.root.logger 從 INFO 改成 DEBUG |
| 656 | {{{ |
| 657 | hadoop.root.logger=DEBUG,console |
| 658 | }}} |
| 659 | * [3] 這次我想看的主要是 TaskTracker 的 BUG,也可以只打開以下的參數 (原 log4j.properties 內容已有這行,刪除註解即可) |
| 660 | {{{ |
| 661 | log4j.logger.org.apache.hadoop.mapred.TaskTracker=DEBUG |
| 662 | }}} |
| 663 | |