You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/10/13 08:36:10 UTC
[GitHub] [hadoop-ozone] elek opened a new pull request #4: HDDS-2071.
Support filters in ozone insight point
elek opened a new pull request #4: HDDS-2071. Support filters in ozone insight point
URL: https://github.com/apache/hadoop-ozone/pull/4
## What changes were proposed in this pull request?
Extent the existing ozone insight command with support additional log filtering. For example if you are interested about
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-2071
## How was this patch tested?
```
#start a cluster
cd hadoop-ozone/dist/target/ozone-*/compose/ozone
docker-compose up -d --scale datanode=3
# go to scm
docker-compose exec scm bash
```
insight without filter (wait until the next node report, ~ 30 s)
```
ozone insight logs -v scm.node-manager
#Example output
[SCM] 2019-10-13 08:34:29,920 [TRACE|org.apache.hadoop.hdds.scm.node.SCMNodeManager|SCMNodeManager] HB is received from [datanode=ozone_datanode_2.ozone_default]:
storageReport {
storageUuid: "DS-36d38c09-4306-4a30-b48c-b3b612d4eb00"
storageLocation: "/data/hdds"
capacity: 485541425152
scmUsed: 4096
remaining: 128080560128
storageType: DISK
failed: false
}
```
insight WITH filter (wait until the next node report, ~ 30 s)
```
ozone insight logs -v scm.node-manager -f datanode=ozone_datanode_2.ozone_default
```
You should see only the node reports from datanode_2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org