Changes between Initial Version and Version 1 of waue/2009/1026


Ignore:
Timestamp:
Oct 26, 2009, 7:25:04 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/1026

    v1 v1  
     1
     2 * ICAS.java 完成 上傳檔案到hdfs的程式
     3
     4{{{
     5        static boolean upload2HDFS() {
     6                Configuration conf = new Configuration();
     7                String hdfs_src = fa_in;
     8                String local_src = rdc_out + "/parsed";
     9                Path dstPath = new Path(hdfs_src);
     10                try {
     11                        FileSystem dstFs = dstPath.getFileSystem(conf);
     12                        dstFs.copyFromLocalFile(false, new Path(local_src), new Path(
     13                                        hdfs_src));
     14                        return true;
     15                } catch (IOException e) {
     16                        e.printStackTrace();
     17                        return false;
     18                }
     19        }
     20}}}
     21
     22 * RawDataCheck.java 四個功能皆完成