Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.8.0
-
None
-
OS: Windows Server 2012
JDK: 1.7.0_79
-
Reviewed
Description
yarn.server.timeline.TestEntityGroupFSTimelineStore.* and yarn.server.timeline.TestLogInfo.* fail on Windows, because they are attempting to use a test root paths like "/C:/hdp/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timeline-pluginstorage/target/test-dir/TestLogInfo", which contains a ":" (after the Windows drive letter) and DFSUtil.isValidName() does not accept paths containing ":".
This problem is identical to HDFS-6189, so I suggest to use the same approach: using "/tmp/..." as test root dir instead of System.getProperty("test.build.data", System.getProperty("java.io.tmpdir")).