[ https://issues.apache.org/jira/browse/HDFS-14236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16755417#comment-16755417 ]
Hanisha Koneru commented on HDFS-14236: --------------------------------------- Thank you [~arpitagarwal]. It is not straightforward to add a unit test for this. > Lazy persist copy/ put fails with ViewFs > ---------------------------------------- > > Key: HDFS-14236 > URL: https://issues.apache.org/jira/browse/HDFS-14236 > Project: Hadoop HDFS > Issue Type: Bug > Components: fs > Reporter: Hanisha Koneru > Assignee: Hanisha Koneru > Priority: Major > Attachments: HDFS-14236.001.patch > > > The hdfs copy or put command with the lazy persist option ('-l') fails with > ViewFs. > {code:java} > $ hdfs dfs -copyFromLocal /etc/hosts /viewFsMountPoint1/dir1/ > org.apache.hadoop.fs.viewfs.NotInMountpointException: getDefaultBlockSize on > empty path is invalid > at > org.apache.hadoop.fs.viewfs.ViewFileSystem.getDefaultBlockSize(ViewFileSystem.java:695) > at > org.apache.hadoop.fs.FilterFileSystem.getDefaultBlockSize(FilterFileSystem.java:420) > at > org.apache.hadoop.fs.shell.CommandWithDestination$TargetFileSystem.create(CommandWithDestination.java:505) > at > .......{code} > This happens because {{ViewFileSystem#getDefaultBlockSize()}} throws a > {{NotInMountpointException}}. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org