[jira] [Commented] (YARN-2519) Credential Provider related unit tests failed on Windows
[ https://issues.apache.org/jira/browse/YARN-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124907#comment-14124907 ] Hudson commented on YARN-2519: -- FAILURE: Integrated in Hadoop-Mapreduce-trunk #1889 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1889/]) YARN-2519. Credential Provider related unit tests failed on Windows. Contributed by Xiaoyu Yao. (cnauroth: rev cbea1b10efd871d04c648af18449dc724685db74) * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/util/TestWebAppUtils.java > Credential Provider related unit tests failed on Windows > > > Key: YARN-2519 > URL: https://issues.apache.org/jira/browse/YARN-2519 > Project: Hadoop YARN > Issue Type: Test > Components: webapp >Affects Versions: 2.4.1 >Reporter: Xiaoyu Yao >Assignee: Xiaoyu Yao > Fix For: 2.6.0 > > Attachments: YARN-2519.0.patch > > > Reported by: Xiaomara and investigated by Chris Nauroth. > The credential provider related unit tests failed on Windows. The tests try > to set up a URI by taking the build test directory and concatenating it with > other strings containing the rest of the URI format, i.e.: > {code} > public void testFactory() throws Exception { > Configuration conf = new Configuration(); > conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, > UserProvider.SCHEME_NAME + ":///," + > JavaKeyStoreProvider.SCHEME_NAME + "://file" + tmpDir + > "/test.jks"); > {code} > This logic is incorrect on Windows, because the file path separator will be > '\', which violates URI syntax. Forward slash is not permitted. > The proper fix is to always do path/URI construction through the > org.apache.hadoop.fs.Path class, specifically using the constructors that > take explicit parent and child arguments. > The affected unit tests are: > {code} > * TestWebAppUtils > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-2519) Credential Provider related unit tests failed on Windows
[ https://issues.apache.org/jira/browse/YARN-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124899#comment-14124899 ] Hudson commented on YARN-2519: -- FAILURE: Integrated in Hadoop-Hdfs-trunk #1864 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1864/]) YARN-2519. Credential Provider related unit tests failed on Windows. Contributed by Xiaoyu Yao. (cnauroth: rev cbea1b10efd871d04c648af18449dc724685db74) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/util/TestWebAppUtils.java * hadoop-yarn-project/CHANGES.txt > Credential Provider related unit tests failed on Windows > > > Key: YARN-2519 > URL: https://issues.apache.org/jira/browse/YARN-2519 > Project: Hadoop YARN > Issue Type: Test > Components: webapp >Affects Versions: 2.4.1 >Reporter: Xiaoyu Yao >Assignee: Xiaoyu Yao > Fix For: 2.6.0 > > Attachments: YARN-2519.0.patch > > > Reported by: Xiaomara and investigated by Chris Nauroth. > The credential provider related unit tests failed on Windows. The tests try > to set up a URI by taking the build test directory and concatenating it with > other strings containing the rest of the URI format, i.e.: > {code} > public void testFactory() throws Exception { > Configuration conf = new Configuration(); > conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, > UserProvider.SCHEME_NAME + ":///," + > JavaKeyStoreProvider.SCHEME_NAME + "://file" + tmpDir + > "/test.jks"); > {code} > This logic is incorrect on Windows, because the file path separator will be > '\', which violates URI syntax. Forward slash is not permitted. > The proper fix is to always do path/URI construction through the > org.apache.hadoop.fs.Path class, specifically using the constructors that > take explicit parent and child arguments. > The affected unit tests are: > {code} > * TestWebAppUtils > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-2519) Credential Provider related unit tests failed on Windows
[ https://issues.apache.org/jira/browse/YARN-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124867#comment-14124867 ] Hudson commented on YARN-2519: -- SUCCESS: Integrated in Hadoop-Yarn-trunk #673 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/673/]) YARN-2519. Credential Provider related unit tests failed on Windows. Contributed by Xiaoyu Yao. (cnauroth: rev cbea1b10efd871d04c648af18449dc724685db74) * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/webapp/util/TestWebAppUtils.java > Credential Provider related unit tests failed on Windows > > > Key: YARN-2519 > URL: https://issues.apache.org/jira/browse/YARN-2519 > Project: Hadoop YARN > Issue Type: Test > Components: webapp >Affects Versions: 2.4.1 >Reporter: Xiaoyu Yao >Assignee: Xiaoyu Yao > Fix For: 2.6.0 > > Attachments: YARN-2519.0.patch > > > Reported by: Xiaomara and investigated by Chris Nauroth. > The credential provider related unit tests failed on Windows. The tests try > to set up a URI by taking the build test directory and concatenating it with > other strings containing the rest of the URI format, i.e.: > {code} > public void testFactory() throws Exception { > Configuration conf = new Configuration(); > conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, > UserProvider.SCHEME_NAME + ":///," + > JavaKeyStoreProvider.SCHEME_NAME + "://file" + tmpDir + > "/test.jks"); > {code} > This logic is incorrect on Windows, because the file path separator will be > '\', which violates URI syntax. Forward slash is not permitted. > The proper fix is to always do path/URI construction through the > org.apache.hadoop.fs.Path class, specifically using the constructors that > take explicit parent and child arguments. > The affected unit tests are: > {code} > * TestWebAppUtils > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-2519) Credential Provider related unit tests failed on Windows
[ https://issues.apache.org/jira/browse/YARN-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14124743#comment-14124743 ] Hadoop QA commented on YARN-2519: - {color:green}+1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12667059/YARN-2519.0.patch against trunk revision 88209ce. {color:green}+1 @author{color}. The patch does not contain any @author tags. {color:green}+1 tests included{color}. The patch appears to include 1 new or modified test files. {color:green}+1 javac{color}. The applied patch does not increase the total number of javac compiler warnings. {color:green}+1 javadoc{color}. There were no new javadoc warning messages. {color:green}+1 eclipse:eclipse{color}. The patch built with eclipse:eclipse. {color:green}+1 findbugs{color}. The patch does not introduce any new Findbugs (version 2.0.3) warnings. {color:green}+1 release audit{color}. The applied patch does not increase the total number of release audit warnings. {color:green}+1 core tests{color}. The patch passed unit tests in hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common. {color:green}+1 contrib tests{color}. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-YARN-Build/4840//testReport/ Console output: https://builds.apache.org/job/PreCommit-YARN-Build/4840//console This message is automatically generated. > Credential Provider related unit tests failed on Windows > > > Key: YARN-2519 > URL: https://issues.apache.org/jira/browse/YARN-2519 > Project: Hadoop YARN > Issue Type: Test > Components: webapp >Affects Versions: 2.4.1 >Reporter: Xiaoyu Yao > Attachments: YARN-2519.0.patch > > > Reported by: Xiaomara and investigated by Chris Nauroth. > The credential provider related unit tests failed on Windows. The tests try > to set up a URI by taking the build test directory and concatenating it with > other strings containing the rest of the URI format, i.e.: > {code} > public void testFactory() throws Exception { > Configuration conf = new Configuration(); > conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, > UserProvider.SCHEME_NAME + ":///," + > JavaKeyStoreProvider.SCHEME_NAME + "://file" + tmpDir + > "/test.jks"); > {code} > This logic is incorrect on Windows, because the file path separator will be > '\', which violates URI syntax. Forward slash is not permitted. > The proper fix is to always do path/URI construction through the > org.apache.hadoop.fs.Path class, specifically using the constructors that > take explicit parent and child arguments. > The affected unit tests are: > {code} > * TestWebAppUtils > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)