blobStoreService = new FileSystemBlobStore(flinkFileSystem, haDataDirectory.toString());
blobStoreService = new FileSystemBlobStore(flinkFileSystem, haDataDirectory.toString());
blobStoreService = new FileSystemBlobStore(flinkFileSystem, haDataDirectory.toString());
private static BlobStoreService createFileSystemBlobStore(Configuration configuration) throws IOException { String storagePath = configuration.getValue( HighAvailabilityOptions.HA_STORAGE_PATH); if (isNullOrWhitespaceOnly(storagePath)) { throw new IllegalConfigurationException("Configuration is missing the mandatory parameter: " + HighAvailabilityOptions.HA_STORAGE_PATH); } final Path path; try { path = new Path(storagePath); } catch (Exception e) { throw new IOException("Invalid path for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final FileSystem fileSystem; try { fileSystem = path.getFileSystem(); } catch (Exception e) { throw new IOException("Could not create FileSystem for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final String clusterId = configuration.getValue(HighAvailabilityOptions.HA_CLUSTER_ID); storagePath += "/" + clusterId; return new FileSystemBlobStore(fileSystem, storagePath); }
private static BlobStoreService createFileSystemBlobStore(Configuration configuration) throws IOException { String storagePath = configuration.getValue( HighAvailabilityOptions.HA_STORAGE_PATH); if (isNullOrWhitespaceOnly(storagePath)) { throw new IllegalConfigurationException("Configuration is missing the mandatory parameter: " + HighAvailabilityOptions.HA_STORAGE_PATH); } final Path path; try { path = new Path(storagePath); } catch (Exception e) { throw new IOException("Invalid path for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final FileSystem fileSystem; try { fileSystem = path.getFileSystem(); } catch (Exception e) { throw new IOException("Could not create FileSystem for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final String clusterId = configuration.getValue(HighAvailabilityOptions.HA_CLUSTER_ID); storagePath += "/" + clusterId; return new FileSystemBlobStore(fileSystem, storagePath); }
private static BlobStoreService createFileSystemBlobStore(Configuration configuration) throws IOException { String storagePath = configuration.getValue( HighAvailabilityOptions.HA_STORAGE_PATH); if (isNullOrWhitespaceOnly(storagePath)) { throw new IllegalConfigurationException("Configuration is missing the mandatory parameter: " + HighAvailabilityOptions.HA_STORAGE_PATH); } final Path path; try { path = new Path(storagePath); } catch (Exception e) { throw new IOException("Invalid path for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final FileSystem fileSystem; try { fileSystem = path.getFileSystem(); } catch (Exception e) { throw new IOException("Could not create FileSystem for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final String clusterId = configuration.getValue(HighAvailabilityOptions.HA_CLUSTER_ID); storagePath += "/" + clusterId; return new FileSystemBlobStore(fileSystem, storagePath); }
private static BlobStoreService createFileSystemBlobStore(Configuration configuration) throws IOException { String storagePath = configuration.getValue( HighAvailabilityOptions.HA_STORAGE_PATH); if (isNullOrWhitespaceOnly(storagePath)) { throw new IllegalConfigurationException("Configuration is missing the mandatory parameter: " + HighAvailabilityOptions.HA_STORAGE_PATH); } final Path path; try { path = new Path(storagePath); } catch (Exception e) { throw new IOException("Invalid path for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final FileSystem fileSystem; try { fileSystem = path.getFileSystem(); } catch (Exception e) { throw new IOException("Could not create FileSystem for highly available storage (" + HighAvailabilityOptions.HA_STORAGE_PATH.key() + ')', e); } final String clusterId = configuration.getValue(HighAvailabilityOptions.HA_CLUSTER_ID); storagePath += "/" + clusterId; return new FileSystemBlobStore(fileSystem, storagePath); }