Changeset 31223 for other-projects


Ignore:
Timestamp:
2016-12-12T23:28:08+13:00 (7 years ago)
Author:
davidb
Message:

Exception printStackTrace

File:
1 edited

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        }
Note: See TracChangeset for help on using the changeset viewer.