Details
Description
FSUtils.create() and SequenceFileLogWriter are using fs.getDefaultReplication() and fs.getDefaultBlockSize() which is deprecated and in case of ViewFS throws an exception. replace that with the fs.getDefault*(path)
@Override public long getDefaultBlockSize() { throw new NotInMountpointException("getDefaultBlockSize"); } @Override public short getDefaultReplication() { throw new NotInMountpointException("getDefaultReplication"); }
exception in thread "main" org.apache.hadoop.fs.viewfs.NotInMountpointException: getDefaultReplication on empty path is invalid at org.apache.hadoop.fs.viewfs.ViewFileSystem.getDefaultReplication(ViewFileSystem.java:508) at org.apache.hadoop.hbase.util.FSUtils.create(FSUtils.java:156)