- Timestamp:
- 2016-12-12T23:28:08+13:00 (7 years ago)
- 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 45 45 46 46 47 public static FileSystem getFileSystemInstance(String input_ dir)47 public static FileSystem getFileSystemInstance(String input_file_or_dir) 48 48 { 49 49 FileSystem fs = null; … … 51 51 try { 52 52 Configuration conf = new Configuration(); 53 URI uri = new URI(input_ dir);53 URI uri = new URI(input_file_or_dir); 54 54 fs = FileSystem.newInstance(uri,conf); 55 55 } … … 78 78 79 79 try { 80 exists = fs.exists(new Path(file)); 80 Path path = new Path(file); 81 exists = fs.exists(path); 81 82 } catch (IllegalArgumentException e) { 83 e.printStackTrace(); 82 84 exists = false; 83 85 } catch (IOException e) { 86 e.printStackTrace(); 84 87 exists = false; 85 88 }
Note:
See TracChangeset
for help on using the changeset viewer.