@Override public FileSystem create(URI fsUri) throws IOException { if (exceptionCause == null) { throw new UnsupportedFileSystemSchemeException(exceptionMessage); } else { throw new UnsupportedFileSystemSchemeException(exceptionMessage, exceptionCause); } } }
@Test public void testExplicitlySetToOther() throws Exception { final Configuration conf = new Configuration(); conf.setString(CoreOptions.DEFAULT_FILESYSTEM_SCHEME, "otherFS://localhost:1234/"); FileSystem.initialize(conf); URI justPath = new URI(tempFolder.newFile().toURI().getPath()); assertNull(justPath.getScheme()); try { FileSystem.get(justPath); fail("should have failed with an exception"); } catch (UnsupportedFileSystemSchemeException e) { assertTrue(e.getMessage().contains("otherFS")); } }
throw new UnsupportedFileSystemSchemeException( "Could not find a file system implementation for scheme '" + uri.getScheme() + "'. The scheme is not directly supported by Flink and no Hadoop file " +
throw new UnsupportedFileSystemSchemeException( "Hadoop File System abstraction does not support scheme '" + scheme + "'. " + "Either no file system implementation exists for that scheme, " + throw new UnsupportedFileSystemSchemeException("Cannot support file system for '" + fsUri.getScheme() + "' via Hadoop, because Hadoop is not in the classpath, or some classes " + "are missing from the classpath.", e);
@Override public FileSystem create(URI fsUri) throws IOException { if (exceptionCause == null) { throw new UnsupportedFileSystemSchemeException(exceptionMessage); } else { throw new UnsupportedFileSystemSchemeException(exceptionMessage, exceptionCause); } } }
@Override public FileSystem create(URI fsUri) throws IOException { if (exceptionCause == null) { throw new UnsupportedFileSystemSchemeException(exceptionMessage); } else { throw new UnsupportedFileSystemSchemeException(exceptionMessage, exceptionCause); } } }
throw new UnsupportedFileSystemSchemeException( "Could not find a file system implementation for scheme '" + uri.getScheme() + "'. The scheme is not directly supported by Flink and no Hadoop file " +
throw new UnsupportedFileSystemSchemeException( "Hadoop File System abstraction does not support scheme '" + scheme + "'. " + "Either no file system implementation exists for that scheme, " + throw new UnsupportedFileSystemSchemeException("Cannot support file system for '" + fsUri.getScheme() + "' via Hadoop, because Hadoop is not in the classpath, or some classes " + "are missing from the classpath.", e);
throw new UnsupportedFileSystemSchemeException( "Could not find a file system implementation for scheme '" + uri.getScheme() + "'. The scheme is not directly supported by Flink and no Hadoop file " +
throw new UnsupportedFileSystemSchemeException( "Hadoop File System abstraction does not support scheme '" + scheme + "'. " + "Either no file system implementation exists for that scheme, " + throw new UnsupportedFileSystemSchemeException("Cannot support file system for '" + fsUri.getScheme() + "' via Hadoop, because Hadoop is not in the classpath, or some classes " + "are missing from the classpath.", e);