Skip to content

Conversation

@elek
Copy link
Member

@elek elek commented Oct 13, 2019

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

@elek elek changed the base branch from HDDS-2071 to master October 13, 2019 08:37
@xiaoyuyao
Copy link
Contributor

+1, Thanks @elek for adding this and @adoroszlai for the reviews.

@xiaoyuyao xiaoyuyao merged commit faf10fe into apache:master Oct 24, 2019
tanvipenumudy added a commit to tanvipenumudy/ozone that referenced this pull request May 12, 2022
# This is the 1st commit message:

Initial Commit

# This is the commit message apache#2:

more slight changes

# This is the commit message apache#3:

changes++

# This is the commit message apache#4:

getExecutorService Changes

# This is the commit message apache#5:

applyTransaction() Changes

# This is the commit message apache#6:

changes++

# This is the commit message apache#7:

TestOzoneManagerLock changes

# This is the commit message apache#8:

add changes

# This is the commit message apache#9:

add more minor changes

# This is the commit message apache#10:

add config to ozone-default.xml

# This is the commit message apache#11:

minor changes

# This is the commit message apache#12:

change modulo logic

# This is the commit message apache#13:

changes

# This is the commit message apache#14:

changes++

# This is the commit message apache#15:

add changes++

# This is the commit message apache#16:

minor changes

# This is the commit message apache#17:

Changes (to be reverted)

# This is the commit message apache#18:

Changes 09/05
tanvipenumudy added a commit to tanvipenumudy/ozone that referenced this pull request May 17, 2023
# This is the 1st commit message:

test block tokens - CLI changes

# This is the commit message apache#2:

resolve NPE

# This is the commit message apache#3:

fix checkstyle

# This is the commit message apache#4:

move checkAndRotate under SecretKeyProtocolScm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants