Skip to content

JMX Scraper - YAML config and integration test for Hadoop#3

Merged
robsunday merged 12 commits intorobsunday:integration-test-hadoopfrom
magda-woj:integration-test-hadoop
Dec 19, 2024
Merged

JMX Scraper - YAML config and integration test for Hadoop#3
robsunday merged 12 commits intorobsunday:integration-test-hadoopfrom
magda-woj:integration-test-hadoop

Conversation

@magda-woj
Copy link
Copy Markdown

Created hadoop.yaml for connecting JMX Insight to Hadoop based on jmx-metrics groovy script. Updated jmx-metrics units to match semconv rules.

"/hadoop/etc/hadoop/hadoop-env.sh")
.waitingFor(Wait.forListeningPort().withStartupTimeout(Duration.ofMinutes(200)))
.withExposedPorts(jmxPort)
.withCreateContainerCmdModifier(cmd -> cmd.withHostName("test-host"))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not remember if it helped in anything. If test runs without this line then please remove it.

.waitingFor(Wait.forListeningPort().withStartupTimeout(Duration.ofMinutes(200)))
.withExposedPorts(jmxPort)
.withCreateContainerCmdModifier(cmd -> cmd.withHostName("test-host"))
.waitingFor(Wait.forListeningPort());
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other integration tests we started also exposing and waiting for some service point of target application. It makes the tests more stable. Please identify some port that is opened by Hadoop (other than JMX ports), and ezpose it and wait for it, like for example in ActiveMQ or Cassandra.

@robsunday robsunday merged commit 4115c48 into robsunday:integration-test-hadoop Dec 19, 2024
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.

2 participants