Changes between Version 1 and Version 2 of ProductEmp


Ignore:
Timestamp:
Jan 16, 2012, 10:49:15 PM (12 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProductEmp

    v1 v2  
    209209
    210210                // (0). 設定系統環境參數
    211                 String local_store_product_list = "/tmp/ProductEmp/conf/store.txt";
    212                 String local_input_dir = "/tmp/ProductEmp/input";
    213                 String hdfs_input_dir = "/tmp/ProductEmp/hdfs";
    214                 String hdfs_output_dir = "/tmp/ProductEmp/out";
    215                 String local_download_out_file = "/tmp/ProductEmp/result/tmp.log";
    216                 String local_db_file = "/tmp/ProductEmp/www-web/db.js";
    217 
    218                 /*
    219                  * // 參數設定功能,暫不開放 String[] argc = { local_input_dir, hdfs_output_dir,
    220                  * local_store_product_list }; args = argc;
    221                  *
    222                  * if (args.length != 3) { System.err
    223                  * .println("Usage: hadoop jar ProductEmp.jar <input> <output> <store.txt>"
    224                  * ); System.exit(2); }
    225                  */
     211
     212          /*  // for linux
     213            String local_store_product_list = "/tmp/ProductEmp/conf/store.txt";
     214            String local_input_dir = "/tmp/ProductEmp/input";
     215            String hdfs_input_dir = "/tmp/ProductEmp/hdfs";
     216            String hdfs_output_dir = "/tmp/ProductEmp/out";
     217            String local_download_out_file = "/tmp/ProductEmp/result/tmp.log";
     218            String local_db_file = "/tmp/ProductEmp/www-web/db.js";
     219        */
     220          // for windows
     221            String local_store_product_list = "C:\\hadoop4win\\tmp\\ProductEmp\\conf\\store.txt";
     222            String local_input_dir = "C:\\hadoop4win\\tmp\\ProductEmp\\input";
     223            String hdfs_input_dir = "C:\\hadoop4win\\tmp\\ProductEmp\\hdfs";
     224            String hdfs_output_dir = "C:\\hadoop4win\\tmp\\ProductEmp\\out";
     225            String local_download_out_file = "C:\\hadoop4win\\tmp\\ProductEmp\\result\\tmp.log";
     226            String local_db_file = "C:\\hadoop4win\\tmp\\ProductEmp\\www-web\\db.js";
     227         
     228
     229
    226230
    227231                // (1). 設定hadoop 參數