From 63a9b0d8aa8722d6fcc7d6d278f27f96d5fe7644 Mon Sep 17 00:00:00 2001 From: Nanda kumar Date: Tue, 12 Feb 2019 14:49:51 +0530 Subject: [PATCH] HDDS-1080. Ozonefs Isolated class loader should support FsStorageStatistics. Contributed by Elek, Marton. --- .../java/org/apache/hadoop/fs/ozone/FilteredClassLoader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/FilteredClassLoader.java b/hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/FilteredClassLoader.java index 462724521a..96503cb331 100644 --- a/hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/FilteredClassLoader.java +++ b/hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/FilteredClassLoader.java @@ -53,6 +53,8 @@ public FilteredClassLoader(URL[] urls, ClassLoader parent) { delegatedClasses.add("org.apache.hadoop.fs.ozone.OzoneClientAdapter"); delegatedClasses.add("org.apache.hadoop.fs.ozone.BasicKeyInfo"); delegatedClasses.add("org.apache.hadoop.fs.ozone.OzoneFSOutputStream"); + delegatedClasses.add("org.apache.hadoop.fs.ozone.OzoneFSStorageStatistics"); + delegatedClasses.add("org.apache.hadoop.fs.ozone.Statistic"); delegatedClasses.add("org.apache.hadoop.fs.Seekable"); this.delegate = parent; systemClassLoader = getSystemClassLoader();