Changeset 30940


Ignore:
Timestamp:
10/26/16 14:01:01 (4 years ago)
Author:
davidb
Message:

Change to using URI not fileIn directly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/ClusterFileIO.java

    r30938 r30940  
    55import java.io.BufferedReader;
    66import java.io.BufferedWriter;
    7 import java.io.FileInputStream;
    87import java.io.FileOutputStream;
    98import java.io.IOException;
     
    8180       
    8281        if (isHDFS(fileIn)) {
    83             //URI uri = URI.create (fileIn);
     82            URI uri = URI.create (fileIn);
    8483            //Configuration conf = new Configuration();
    8584            //FileSystem file = FileSystem.get(uri, conf);
    8685            //FSDataInputStream fin = file.open(new Path(uri));
    8786           
    88             FSDataInputStream fin = _fs.open(new Path(fileIn));
    89    
     87            //FSDataInputStream fin = _fs.open(new Path(fileIn));
     88            FSDataInputStream fin = _fs.open(new Path(uri));
     89           
    9090            bis = new BufferedInputStream(fin);
    9191        }
Note: See TracChangeset for help on using the changeset viewer.