Show
Ignore:
Timestamp:
26.10.2016 14:01:01 (3 years ago)
Author:
davidb
Message:

Change to using URI not fileIn directly

Files:
1 modified

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        }