hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-815) FileContext tests fail on Windows
Date Wed, 09 Dec 2009 01:38:18 GMT

    [ https://issues.apache.org/jira/browse/HDFS-815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787855#action_12787855
] 

Konstantin Shvachko commented on HDFS-815:
------------------------------------------

Here are examples of typical exceptions from the tests:

TestFcHdfsCreateMkdir
{code}
Testcase: testMkdirNonRecursiveWithExistingDir took 0 sec
	Caused an ERROR
Path part /c:/Work/Projects/hdfs/build/test/data/test from URIhdfs://localhost:2064/c:/Work/Projects/hdfs/build/test/data/test
is not a valid filename.
java.lang.IllegalArgumentException: Path part /c:/Work/Projects/hdfs/build/test/data/test
from URIhdfs://localhost:2064/c:/Work/Projects/hdfs/build/test/data/test is not a valid filename.
	at org.apache.hadoop.fs.AbstractFileSystem.getUriPath(AbstractFileSystem.java:323)
	at org.apache.hadoop.fs.Hdfs.mkdir(Hdfs.java:136)
	at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:547)
	at org.apache.hadoop.fs.FileContextCreateMkdirBaseTest.setUp(FileContextCreateMkdirBaseTest.java:87)
	at org.apache.hadoop.fs.TestFcHdfsCreateMkdir.setUp(TestFcHdfsCreateMkdir.java:59)

	Caused an ERROR
Path part /c:/Work/Projects/hdfs/build/test/data/test from URIhdfs://localhost:2064/c:/Work/Projects/hdfs/build/test/data/test
is not a valid filename.
java.lang.IllegalArgumentException: Path part /c:/Work/Projects/hdfs/build/test/data/test
from URIhdfs://localhost:2064/c:/Work/Projects/hdfs/build/test/data/test is not a valid filename.
	at org.apache.hadoop.fs.AbstractFileSystem.getUriPath(AbstractFileSystem.java:323)
	at org.apache.hadoop.fs.Hdfs.delete(Hdfs.java:86)
	at org.apache.hadoop.fs.FileContext.delete(FileContext.java:562)
	at org.apache.hadoop.fs.FileContextCreateMkdirBaseTest.tearDown(FileContextCreateMkdirBaseTest.java:92)
	at org.apache.hadoop.fs.TestFcHdfsCreateMkdir.tearDown(TestFcHdfsCreateMkdir.java:65)
{code}

TestFcHdfsPermission
{code}
Testcase: testCreatePermission took 0 sec
	Caused an ERROR
Path part /c:/Work/Projects/hdfs/build/test/data/TestLocalFileSystemPermission_ from URIhdfs://localhost:1294/c:/Work/Projects/hdfs/build/test/data/TestLocalFileSystemPermission_
is not a valid filename.
java.lang.IllegalArgumentException: Path part /c:/Work/Projects/hdfs/build/test/data/TestLocalFileSystemPermission_
from URIhdfs://localhost:1294/c:/Work/Projects/hdfs/build/test/data/TestLocalFileSystemPermission_
is not a valid filename.
	at org.apache.hadoop.fs.AbstractFileSystem.getUriPath(AbstractFileSystem.java:323)
	at org.apache.hadoop.fs.Hdfs.mkdir(Hdfs.java:136)
	at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:547)
	at org.apache.hadoop.fs.FileContextPermissionBase.setUp(FileContextPermissionBase.java:87)
	at org.apache.hadoop.fs.TestFcHdfsPermission.setUp(TestFcHdfsPermission.java:60)
{code}

TestHDFSFileContextMainOperations
{code}
Testcase: testRenameWithQuota took 0 sec
	Caused an ERROR
Path part /user/shv/c:/Work/Projects/hdfs/build/test/data/test from URIhdfs://localhost:1360/user/shv/c:/Work/Projects/hdfs/build/test/data/test
is not a valid filename.
java.lang.IllegalArgumentException: Path part /user/shv/c:/Work/Projects/hdfs/build/test/data/test
from URIhdfs://localhost:1360/user/shv/c:/Work/Projects/hdfs/build/test/data/test is not a
valid filename.
	at org.apache.hadoop.fs.AbstractFileSystem.getUriPath(AbstractFileSystem.java:323)
	at org.apache.hadoop.fs.Hdfs.mkdir(Hdfs.java:136)
	at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:547)
	at org.apache.hadoop.fs.FileContextMainOperationsBaseTest.setUp(FileContextMainOperationsBaseTest.java:118)
	at org.apache.hadoop.fs.TestHDFSFileContextMainOperations.setUp(TestHDFSFileContextMainOperations.java:77)
{code}

TestNameNodeMetrics
{code}
Testcase: testFileAdd took 28.407 sec
	Caused an ERROR
Pathname /c:/Work/Projects/hdfs/build/test/data from c:/Work/Projects/hdfs/build/test/data
is not a valid DFS filename.
java.lang.IllegalArgumentException: Pathname /c:/Work/Projects/hdfs/build/test/data from c:/Work/Projects/hdfs/build/test/data
is not a valid DFS filename.
	at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:167)
	at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirs(DistributedFileSystem.java:334)
	at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:1476)
	at org.apache.hadoop.hdfs.DFSTestUtil.createFile(DFSTestUtil.java:132)
	at org.apache.hadoop.hdfs.server.namenode.metrics.TestNameNodeMetrics.createFile(TestNameNodeMetrics.java:83)
	at org.apache.hadoop.hdfs.server.namenode.metrics.TestNameNodeMetrics.testFileAdd(TestNameNodeMetrics.java:97)
{code}

> FileContext tests fail on Windows
> ---------------------------------
>
>                 Key: HDFS-815
>                 URL: https://issues.apache.org/jira/browse/HDFS-815
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.21.0
>         Environment: Windows
>            Reporter: Konstantin Shvachko
>             Fix For: 0.21.0
>
>
> The following FileContext-related tests are failing on windows because of incorrect use
"test.build.data" system property for setting hdfs paths, which end up containing "C:" as
a path component, which hdfs does not support.
> {code}
> org.apache.hadoop.fs.TestFcHdfsCreateMkdir
> org.apache.hadoop.fs.TestFcHdfsPermission
> org.apache.hadoop.fs.TestHDFSFileContextMainOperations
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message