Changeset 27 for sample/hadoop-0.16/tw/org/nchc/demo/LogFetcher.java
- Timestamp:
- Jul 3, 2008, 5:25:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sample/hadoop-0.16/tw/org/nchc/demo/LogFetcher.java
r25 r27 1 /** 2 * Program: LogFetcher.java 3 * Editor: Waue Chen 4 * From : NCHC. Taiwn 5 * Last Update Date: 07/02/2008 6 */ 1 7 /** 2 8 * Copyright 2007 The Apache Software Foundation … … 95 101 } 96 102 } 103 // do it to resolve warning : FileSystem.listPaths 97 104 static public Path[] listPaths(FileSystem fsm,Path path) throws IOException 98 105 { … … 114 121 jobConf.setJobName("apache log fetcher"); 115 122 jobConf.set(TABLE, table); 116 // my convert function from 0.16 to 0.17 123 // Path[] in = FileSystem.listPaths(fs, InputDir); 117 124 Path[] in = listPaths(fs, InputDir); 118 125 if (fs.isFile(InputDir)) { … … 123 130 jobConf.addInputPath(in[i]); 124 131 } else { 125 // my convert function from 0.16 to 0.17 132 // Path[] sub = FileSystem.listPaths(fs, in[i]); 126 133 Path[] sub = listPaths(fs, in[i]); 127 134 for (int j = 0; j < sub.length; j++) {
Note: See TracChangeset
for help on using the changeset viewer.