Coder Social home page Coder Social logo

hadoop_exporter's People

Contributors

kockockockoc avatar miono avatar sekikn avatar thinker0 avatar wyukawa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hadoop_exporter's Issues

"nil pointer dereference" exception in exporter's Collect func resp.Body.Close() when http connection failed with connection refused

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

Build failed

$ 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

can't build

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.