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

Changed to using ClusterFileIO supporting methods

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

    r31088 r31222  
    4545
    4646   
    47     protected static FileSystem getFileSystemInstance(String input_dir)
     47    public static FileSystem getFileSystemInstance(String input_dir)
    4848    {
    49         FileSystem fs = null;
     49        FileSystem fs = null;
    5050
    51         try {
    52         Configuration conf = new Configuration();
    53         URI uri = new URI(input_dir);
    54         fs = FileSystem.newInstance(uri,conf);
    55         }
    56         catch (URISyntaxException e) {
    57         e.printStackTrace();   
    58         }
    59         catch (IOException e) {
    60         e.printStackTrace();
    61         }
     51        try {
     52            Configuration conf = new Configuration();
     53            URI uri = new URI(input_dir);
     54            fs = FileSystem.newInstance(uri,conf);
     55        }
     56        catch (URISyntaxException e) {
     57            e.printStackTrace();   
     58        }
     59        catch (IOException e) {
     60            e.printStackTrace();
     61        }
    6262
    6363        return fs;
Note: See TracChangeset for help on using the changeset viewer.