wyukawa / hadoop_exporter Goto Github PK
View Code? Open in Web Editor NEWHadoop exporter
License: Apache License 2.0
Hadoop exporter
License: Apache License 2.0
bug detected in journalnode-exporter (shares exact same logic) from Datatamer fork.
Before the stacktrace below, got a useful error log that shows the export got a connection refused, just before the NIL pointer exception:
time="2017-10-23T08:33:52Z" level=error msg="Get http://localhost:8480/jmx: dial tcp 127.0.0.1:8480: getsockopt: connection refused" file="journalnode_exporter.go" line=97
exception full stack trace:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x402c8b]
goroutine 335365 [running]:
panic(0x816880, 0xc820010080)
/usr/lib/go-1.6/src/runtime/panic.go:464 +0x3e6
main.(*Exporter).Collect(0xc8200b8120, 0xc8202fe1e0)
/opt/prometheus/downloads/git/hadoop-exporter-52d6c8331c03775ae8d8b92e834024e1cd8959d8/journalnode/journalnode_exporter.go:99 +0x135b
vendor/github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc820258190, 0xc8202fe1e0, 0x7f8c9296baa0, 0xc8200b8120)
/opt/prometheus/downloads/git/hadoop-exporter-52d6c8331c03775ae8d8b92e834024e1cd8959d8/src/vendor/github.com/prometheus/client_golang/prometheus/registry.go:433 +0x58
created by vendor/github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/opt/prometheus/downloads/git/hadoop-exporter-52d6c8331c03775ae8d8b92e834024e1cd8959d8/src/vendor/github.com/prometheus/client_golang/prometheus/registry.go:434 +0x360
$ go build resourcemanager_exporter.go
./resourcemanager_exporter.go:256: e.appsCompleted.Set undefined (type prometheus.Counter has no field or method Set)
./resourcemanager_exporter.go:257: e.appsSubmitted.Set undefined (type prometheus.Counter has no field or method Set)
$ go build namenode_exporter.go
./namenode_exporter.go:243: e.pnGcCount.Set undefined (type prometheus.Counter has no field or method Set)
./namenode_exporter.go:244: e.pnGcTime.Set undefined (type prometheus.Counter has no field or method Set)
./namenode_exporter.go:247: e.cmsGcCount.Set undefined (type prometheus.Counter has no field or method Set)
./namenode_exporter.go:248: e.cmsGcTime.Set undefined (type prometheus.Counter has no field or method Set)
$ go version
go version go1.7 linux/amd64
The Prometheus API probably changed
go build namenode_exporter.go
# command-line-arguments
./namenode_exporter.go:243: e.pnGcCount.Set undefined (type prometheus.Counter has no field or method Set)
./namenode_exporter.go:244: e.pnGcTime.Set undefined (type prometheus.Counter has no field or method Set)
./namenode_exporter.go:247: e.cmsGcCount.Set undefined (type prometheus.Counter has no field or method Set)
./namenode_exporter.go:248: e.cmsGcTime.Set undefined (type prometheus.Counter has no field or method Set)
when i run 'go build namenode_exporter.go', I got this question, How to solve this problem?
building on the latest updates of https://github.com/Datatamer/hadoop_exporter
which contains already an extra exporter for the 'journalnode' (added by @laferrieren) 👍
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.