org.apache.flink.runtime.blob.BlobCacheCorruptionTest Java Examples
The following examples show how to use
org.apache.flink.runtime.blob.BlobCacheCorruptionTest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HDFSTest.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
/** * Tests that with {@link HighAvailabilityMode#ZOOKEEPER} distributed corrupted JARs are * recognised during the download via a BLOB cache. */ @Test public void testBlobCacheCorruptedFile() throws Exception { org.apache.flink.configuration.Configuration config = new org.apache.flink.configuration.Configuration(); config.setString(HighAvailabilityOptions.HA_MODE, "ZOOKEEPER"); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporaryFolder.newFolder().getAbsolutePath()); config.setString(HighAvailabilityOptions.HA_STORAGE_PATH, hdfsURI); BlobStoreService blobStoreService = BlobUtils.createBlobStoreFromConfig(config); try { BlobCacheCorruptionTest .testGetFailsFromCorruptFile(new JobID(), config, blobStoreService, exception); } finally { blobStoreService.closeAndCleanupAllData(); } }
Example #2
Source File: HDFSTest.java From flink with Apache License 2.0 | 6 votes |
/** * Tests that with {@link HighAvailabilityMode#ZOOKEEPER} distributed corrupted JARs are * recognised during the download via a BLOB cache. */ @Test public void testBlobCacheCorruptedFile() throws Exception { org.apache.flink.configuration.Configuration config = new org.apache.flink.configuration.Configuration(); config.setString(HighAvailabilityOptions.HA_MODE, "ZOOKEEPER"); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporaryFolder.newFolder().getAbsolutePath()); config.setString(HighAvailabilityOptions.HA_STORAGE_PATH, hdfsURI); BlobStoreService blobStoreService = BlobUtils.createBlobStoreFromConfig(config); try { BlobCacheCorruptionTest .testGetFailsFromCorruptFile(new JobID(), config, blobStoreService, exception); } finally { blobStoreService.closeAndCleanupAllData(); } }
Example #3
Source File: HDFSTest.java From flink with Apache License 2.0 | 6 votes |
/** * Tests that with {@link HighAvailabilityMode#ZOOKEEPER} distributed corrupted JARs are * recognised during the download via a BLOB cache. */ @Test public void testBlobCacheCorruptedFile() throws Exception { org.apache.flink.configuration.Configuration config = new org.apache.flink.configuration.Configuration(); config.setString(HighAvailabilityOptions.HA_MODE, "ZOOKEEPER"); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporaryFolder.newFolder().getAbsolutePath()); config.setString(HighAvailabilityOptions.HA_STORAGE_PATH, hdfsURI); BlobStoreService blobStoreService = BlobUtils.createBlobStoreFromConfig(config); try { BlobCacheCorruptionTest .testGetFailsFromCorruptFile(new JobID(), config, blobStoreService, exception); } finally { blobStoreService.closeAndCleanupAllData(); } }