private static void guardIfWindows(ThrowingConsumer<File, IOException> toRun, File file) throws IOException { if (!OperatingSystem.isWindows()) { toRun.accept(file);
@Before public void checkOperatingSystem() { // FLINK-5164 - see https://wiki.apache.org/hadoop/WindowsProblems Assume.assumeTrue("This test can't run successfully on Windows.", !OperatingSystem.isWindows()); }
@Before public void checkOperatingSystem() { // FLINK-5164 - see https://wiki.apache.org/hadoop/WindowsProblems Assume.assumeTrue("This test can't run successfully on Windows.", !OperatingSystem.isWindows()); }
@Before public void checkOperatingSystem() { // FLINK-5164 - see https://wiki.apache.org/hadoop/WindowsProblems Assume.assumeTrue("This test can't run successfully on Windows.", !OperatingSystem.isWindows()); }
@Before public void checkOperatingSystem() { // FLINK-5164 - see https://wiki.apache.org/hadoop/WindowsProblems Assume.assumeTrue("This test can't run successfully on Windows.", !OperatingSystem.isWindows()); }
@Before public void checkOperatingSystem() { // FLINK-5164 - see https://wiki.apache.org/hadoop/WindowsProblems Assume.assumeTrue("This test can't run successfully on Windows.", !OperatingSystem.isWindows()); }
@BeforeClass public static void checkOS() { Assume.assumeFalse("This test fails on Windows due to unclosed JarFiles, see FLINK-9844.", OperatingSystem.isWindows()); }
@BeforeClass public static void checkOS() { Assume.assumeTrue(!OperatingSystem.isWindows()); }
@BeforeClass public static void verifyOS() { Assume.assumeTrue("HDFS cluster cannot be started on Windows without extensions.", !OperatingSystem.isWindows()); }
@BeforeClass public static void verifyOS() { Assume.assumeTrue("HDFS cluster cannot be started on Windows without extensions.", !OperatingSystem.isWindows()); }
@BeforeClass public static void createHDFS() throws Exception { Assume.assumeTrue(!OperatingSystem.isWindows()); final File tempDir = CLASS_TEMP_DIR.newFolder(); org.apache.hadoop.conf.Configuration hdConf = new org.apache.hadoop.conf.Configuration(); hdConf.set(MiniDFSCluster.HDFS_MINIDFS_BASEDIR, tempDir.getAbsolutePath()); MiniDFSCluster.Builder builder = new MiniDFSCluster.Builder(hdConf); hdfsCluster = builder.build(); hdfsRootPath = new Path(hdfsCluster.getURI()); }
@BeforeClass public static void createHDFS() throws Exception { Assume.assumeTrue(!OperatingSystem.isWindows()); final File tempDir = TEMP_DIR.newFolder(); org.apache.hadoop.conf.Configuration hdConf = new org.apache.hadoop.conf.Configuration(); hdConf.set(MiniDFSCluster.HDFS_MINIDFS_BASEDIR, tempDir.getAbsolutePath()); MiniDFSCluster.Builder builder = new MiniDFSCluster.Builder(hdConf); hdfsCluster = builder.build(); hdfsRootPath = new Path(hdfsCluster.getURI()); }
@BeforeClass public static void createHDFS() throws Exception { Assume.assumeTrue(!OperatingSystem.isWindows()); final File tempDir = TEMP_DIR.newFolder(); org.apache.hadoop.conf.Configuration hdConf = new org.apache.hadoop.conf.Configuration(); hdConf.set(MiniDFSCluster.HDFS_MINIDFS_BASEDIR, tempDir.getAbsolutePath()); MiniDFSCluster.Builder builder = new MiniDFSCluster.Builder(hdConf); hdfsCluster = builder.build(); hdfsRootPath = new Path(hdfsCluster.getURI()); }
@Test public void testExcludeFilenameWithStart() { Assume.assumeTrue("Windows does not allow asterisks in file names.", !OperatingSystem.isWindows()); GlobFilePathFilter matcher = new GlobFilePathFilter( Collections.singletonList("**"), Collections.singletonList("\\*")); assertTrue(matcher.filterPath(new Path("*"))); assertFalse(matcher.filterPath(new Path("**"))); assertFalse(matcher.filterPath(new Path("other.txt"))); }
if (OperatingSystem.isWindows()) { // getMaxFileDescriptorCount method is not available on Windows return -1L;
if (OperatingSystem.isWindows()) { // getMaxFileDescriptorCount method is not available on Windows return -1L;
if (OperatingSystem.isWindows()) { // getMaxFileDescriptorCount method is not available on Windows return -1L;
final String[] SIGNALS = OperatingSystem.isWindows() ? new String[]{ "TERM", "INT"} : new String[]{ "TERM", "HUP", "INT" };
private static void guardIfWindows(ThrowingConsumer<File, IOException> toRun, File file) throws IOException { if (!OperatingSystem.isWindows()) { toRun.accept(file);
private static void guardIfWindows(ThrowingConsumer<File, IOException> toRun, File file) throws IOException { if (!OperatingSystem.isWindows()) { toRun.accept(file);