Changeset 31223 for other-projects

Show
Ignore:
Timestamp:
12.12.2016 23:28:08 (3 years ago)
Author:
davidb
Message:

Exception printStackTrace

Files:
1 modified

Legend:

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

    r31222 r31223  
    4545 
    4646     
    47     public static FileSystem getFileSystemInstance(String input_dir) 
     47    public static FileSystem getFileSystemInstance(String input_file_or_dir) 
    4848    { 
    4949        FileSystem fs = null; 
     
    5151        try { 
    5252            Configuration conf = new Configuration(); 
    53             URI uri = new URI(input_dir); 
     53            URI uri = new URI(input_file_or_dir); 
    5454            fs = FileSystem.newInstance(uri,conf); 
    5555        }  
     
    7878         
    7979        try { 
    80             exists = fs.exists(new Path(file)); 
     80            Path path = new Path(file); 
     81            exists = fs.exists(path); 
    8182        } catch (IllegalArgumentException e) { 
     83            e.printStackTrace(); 
    8284            exists = false; 
    8385        } catch (IOException e) { 
     86            e.printStackTrace(); 
    8487            exists = false; 
    8588        }