-
Notifications
You must be signed in to change notification settings - Fork 620
HDDS-3885. Create Datanode home page #1139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
50f85aa
HDDS-3885. Create Datanode home page
maobaolong 476800e
Merge branch 'master' of https://github.com/apache/hadoop-ozone into …
maobaolong ab19459
HDDS-3885. Update the version of the jquery and angular.
maobaolong 71b8db5
HDDS-3885. Address comment, minor fix.
maobaolong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/DNMXBeanImpl.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /** | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * <p> | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * <p> | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.hadoop.ozone; | ||
|
|
||
| import org.apache.hadoop.hdds.server.ServiceRuntimeInfoImpl; | ||
| import org.apache.hadoop.hdds.utils.VersionInfo; | ||
|
|
||
| /** | ||
| * This is the JMX management class for DN information. | ||
| */ | ||
| public class DNMXBeanImpl extends ServiceRuntimeInfoImpl implements DNMXBean { | ||
| public DNMXBeanImpl( | ||
| VersionInfo versionInfo) { | ||
| super(versionInfo); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
hadoop-hdds/container-service/src/main/resources/webapps/hddsDatanode/dn-overview.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <table class="table table-bordered table-striped" class="col-md-6"> | ||
| <tbody> | ||
| </tbody> | ||
| </table> |
35 changes: 35 additions & 0 deletions
35
hadoop-hdds/container-service/src/main/resources/webapps/hddsDatanode/dn.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /** | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| (function () { | ||
| "use strict"; | ||
| angular.module('dn', ['ozone', 'nvd3']); | ||
|
|
||
| angular.module('dn').component('dnOverview', { | ||
| templateUrl: 'dn-overview.html', | ||
| require: { | ||
| overview: "^overview" | ||
| }, | ||
| controller: function ($http) { | ||
| var ctrl = this; | ||
| $http.get("jmx?qry=Hadoop:service=HddsDatanode,name=StorageContainerMetrics") | ||
| .then(function (result) { | ||
| ctrl.dnmetrics = result.data.beans[0]; | ||
| }); | ||
| } | ||
| }); | ||
| })(); |
76 changes: 76 additions & 0 deletions
76
hadoop-hdds/container-service/src/main/resources/webapps/hddsDatanode/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
| <meta name="description" content="HDFS Storage Container Manager"> | ||
|
|
||
| <title>HDDS Datanode Service</title> | ||
|
|
||
| <link href="static/bootstrap-3.4.1/css/bootstrap.min.css" rel="stylesheet"> | ||
| <link href="static/hadoop.css" rel="stylesheet"> | ||
| <link href="static/nvd3-1.8.5.min.css" rel="stylesheet"> | ||
|
|
||
| <link href="static/ozone.css" rel="stylesheet"> | ||
|
|
||
| </head> | ||
|
|
||
| <body ng-app="dn"> | ||
|
|
||
| <header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav"> | ||
| <div class="container-fluid"> | ||
| <div class="navbar-header"> | ||
| <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" | ||
| aria-expanded="false" aria-controls="navbar"> | ||
| <span class="sr-only">Toggle navigation</span> | ||
| <span class="icon-bar"></span> | ||
| <span class="icon-bar"></span> | ||
| <span class="icon-bar"></span> | ||
| </button> | ||
| <a class="navbar-brand" href="#">HDDS Datanode Service</a> | ||
| </div> | ||
|
|
||
|
|
||
| <navmenu | ||
| metrics="{ 'Rpc metrics' : '#!/metrics/rpc'}"></navmenu> | ||
|
|
||
|
|
||
| </div> | ||
| </header> | ||
|
|
||
| <div class="container-fluid" style="margin: 12pt"> | ||
|
|
||
| <ng-view></ng-view> | ||
|
|
||
| </div><!-- /.container --> | ||
|
|
||
| <script src="static/jquery-3.5.1.min.js"></script> | ||
| <script src="static/angular-1.7.9.min.js"></script> | ||
| <script src="static/angular-route-1.7.9.min.js"></script> | ||
| <script src="static/d3-3.5.17.min.js"></script> | ||
| <script src="static/nvd3-1.8.5.min.js"></script> | ||
| <script src="static/angular-nvd3-1.0.9.min.js"></script> | ||
| <script src="static/ozone.js"></script> | ||
| <script src="dn.js"></script> | ||
| <script src="static/bootstrap-3.4.1/js/bootstrap.min.js"></script> | ||
| </body> | ||
| </html> |
20 changes: 20 additions & 0 deletions
20
hadoop-hdds/container-service/src/main/resources/webapps/hddsDatanode/main.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <overview> | ||
| <dn-overview> | ||
| </dn-overview> | ||
| </overview> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.