Skip to content

Commit f51f100

Browse files
committed
minor fixes
1 parent 761a2fa commit f51f100

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/target_systems/HadoopIntegrationTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616

1717
public class HadoopIntegrationTest extends TargetSystemIntegrationTest {
1818

19+
private static final int HADOOP_PORT = 50070;
20+
1921
@Override
2022
protected GenericContainer<?> createTargetContainer(int jmxPort) {
2123
return new GenericContainer<>("bmedora/hadoop:2.9-base")
2224
.withCopyFileToContainer(
2325
MountableFile.forClasspathResource("hadoop-env.sh", 0400),
2426
"/hadoop/etc/hadoop/hadoop-env.sh")
25-
.waitingFor(Wait.forListeningPort().withStartupTimeout(Duration.ofMinutes(200)))
26-
.withExposedPorts(jmxPort)
27-
.withCreateContainerCmdModifier(cmd -> cmd.withHostName("test-host"))
28-
.waitingFor(Wait.forListeningPort());
27+
.waitingFor(Wait.forListeningPort().withStartupTimeout(Duration.ofMinutes(2)))
28+
.withExposedPorts(HADOOP_PORT, jmxPort)
29+
.waitingFor(Wait.forListeningPorts(HADOOP_PORT, jmxPort));
2930
}
3031

3132
@Override

jmx-scraper/src/main/resources/hadoop.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
rules:
33
- bean: Hadoop:service=NameNode,name=FSNamesystem
4-
unit: "1"
54
prefix: hadoop.name_node.
65
metricAttribute:
76
node_name: beanattr(tag\.Hostname)

0 commit comments

Comments
 (0)