Description
The hdfs copy or put command with the lazy persist option ('-l') fails with ViewFs.
$ 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 .......
This happens because ViewFileSystem#getDefaultBlockSize() throws a NotInMountpointException.