[ https://issues.apache.org/jira/browse/CALCITE-3307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16919308#comment-16919308 ]
Ruben Quesada Lopez edited comment on CALCITE-3307 at 8/30/19 8:09 AM: ----------------------------------------------------------------------- Following the suggestion by [~julianhyde] in CALCITE-3122, I can take care of this by just ignoring the: - 32 tests in PigRelOpTest - 29 tests in PigRelExTest - 1 test in PigScriptTest By adding: {code} Assume.assumeFalse("Skip: Pig/Hadoop tests do not work on Windows", isWindows()); {code} Plus the corresponding {{isWindows}} method in a common location (probably {{PigRelTestBase}}): {code} static boolean isWindows() { return System.getProperty("os.name").startsWith("Windows"); } {code} was (Author: rubenql): Following the suggestion by [~julianhyde] in CALCITE-3122, I can take care of this by just ignoring the: - 32 tests in PigRelOpTest - 29 tests in PigRelExTest - 1 test in PigScriptTest By adding: {code} Assume.assumeFalse("Skip: Pig/Hadoop tests do not work on Windows", isWindows()); {code} Plus the corresponding {{isWindows}} method in a common location (probably {{PigRelTestBase}}): {code} static boolean isWindows() { return System.getProperty("os.name").startsWith("Windows"); } {code} > PigRelExTest, PigRelOpTest and PigScriptTest fail on Windows > ------------------------------------------------------------ > > Key: CALCITE-3307 > URL: https://issues.apache.org/jira/browse/CALCITE-3307 > Project: Calcite > Issue Type: Bug > Reporter: Julian Hyde > Priority: Major > > Running {{PigRelExTest}} on Windows, after CALCITE-3122 was merged, gives the > following error: > {noformat} > 2019-08-29 15:33:23,229 [main] ERROR - Failed to locate the winutils binary > in the hadoop binary path > java.io.IOException: Could not locate executable null\bin\winutils.exe in the > Hadoop binaries. > at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:382) > at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:397) > at org.apache.hadoop.util.Shell.<clinit>(Shell.java:390) > at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:80) > at > org.apache.hadoop.security.SecurityUtil.getAuthenticationMethod(SecurityUtil.java:611) > at > org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:273) > at > org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:261) > at > org.apache.hadoop.security.UserGroupInformation.isAuthenticationMethodEnabled(UserGroupInformation.java:338) > at > org.apache.hadoop.security.UserGroupInformation.isSecurityEnabled(UserGroupInformation.java:332) > at > org.apache.pig.backend.hadoop.HKerberos.tryKerberosKeytabLogin(HKerberos.java:70) > at > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:220) > at > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:112) > at org.apache.pig.impl.PigContext.connect(PigContext.java:305) > at org.apache.pig.PigServer.<init>(PigServer.java:231) > at org.apache.pig.PigServer.<init>(PigServer.java:219) > at org.apache.pig.PigServer.<init>(PigServer.java:211) > at org.apache.pig.PigServer.<init>(PigServer.java:207) > at org.apache.calcite.piglet.PigConverter.<init>(PigConverter.java:107) > at org.apache.calcite.piglet.PigConverter.create(PigConverter.java:112) > at > org.apache.calcite.test.PigRelTestBase.testSetup(PigRelTestBase.java:34) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) > at > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at org.junit.runner.JUnitCore.run(JUnitCore.java:137) > {noformat} > This issue has arisen many times; see HADOOP-10775 and SPARK-2356. -- This message was sent by Atlassian Jira (v8.3.2#803003)