Changeset 31222 for other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/ClusterFileIO.java
- Timestamp:
- 2016-12-12T23:22:33+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
r31088 r31222 45 45 46 46 47 p rotectedstatic FileSystem getFileSystemInstance(String input_dir)47 public static FileSystem getFileSystemInstance(String input_dir) 48 48 { 49 49 FileSystem fs = null; 50 50 51 52 Configuration conf = new Configuration();53 URI uri = new URI(input_dir);54 fs = FileSystem.newInstance(uri,conf);55 56 57 e.printStackTrace();58 59 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 } 62 62 63 63 return fs;
Note:
See TracChangeset
for help on using the changeset viewer.