diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java index 2f65e97c5c8..ef4688f5b49 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java @@ -1189,7 +1189,8 @@ public class MasterRpcServices extends RSRpcServices // Ensure namespace exists. Will throw exception if non-known NS. TableName dstTable = TableName.valueOf(request.getSnapshot().getTable()); - master.getNamespace(dstTable.getNamespaceAsString()); + master.getClusterSchema().getNamespace(dstTable.getNamespaceAsString()); + SnapshotDescription reqSnapshot = request.getSnapshot(); long procId = master.snapshotManager.restoreOrCloneSnapshot( reqSnapshot, request.getNonceGroup(), request.getNonce());