[ 
https://issues.apache.org/jira/browse/HDFS-6156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947465#comment-13947465
 ] 

Haohui Mai commented on HDFS-6156:
----------------------------------

The current JMX API looks like the following:

{code}
name: "Hadoop:service=NameNode,name=SnapshotInfo",
modelerType: "org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager",
SnapshotStats: {
directory: [
{
  group: "supergroup",
  modificationTime: 1395768950823,
  owner: "hmai",
  path: "/test",
  permission: 755,
  snapshotNumber: 1,
  snapshotQuota: 65536
}
],
snapshots: [
{
  modificationTime: 1395768950823,
  snapshotDirectory: "/test/.snapshot/s20140325-103550.819",
  snapshotID: "s20140325-103550.819",
}
]
}
{code}

I propose to inline {{SnapshotStats}, that is to return something like the 
following:

{code}
name: "Hadoop:service=NameNode,name=SnapshotInfo"
modelerType: "org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager"
snapshottableDirectories: [
{
  group: "supergroup",
  modificationTime: 1395768950823,
  owner: "hmai",
  path: "/test",
  permission: 755,
  snapshotNumber: 1,
  snapshotQuota: 65536
}
]
snapshots: [
{
  modificationTime: 1395768950823,
  snapshotDirectory: "/test/.snapshot/s20140325-103550.819",
  snapshotID: "s20140325-103550.819"
]
}
{code}

> Simplify the JMX API that provides snapshot information
> -------------------------------------------------------
>
>                 Key: HDFS-6156
>                 URL: https://issues.apache.org/jira/browse/HDFS-6156
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Haohui Mai
>
> HDFS-5196 introduces a set of new APIs that provide snapshot information 
> through JMX. Currently. The API nests {{SnapshotDirectoryMXBean}} into 
> {{SnapshotStatsMXBean}}, creating another layer of composition.
> This jira proposes to inline {{SnapshotDirectoryMXBean}} into 
> {{SnapshotStatsMXBean}} and to simplify the API.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to