Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question on configuration variable passing

See original GitHub issue

I think its possibly a bug or my configuration mistake

I tried setting host as remote ip address

$ head -1 /app/config.yml

On starting it still tries to connect to localhost, here are the logs:

$ java -Dorg.slf4j.simpleLogger.defaultLogLevel=trace -jar cassandra_exporter-1.0.1-all.jar /app/config.yml
[main] INFO com.criteo.nosql.cassandra.exporter.Config - Loading yaml config from /app/config.yml
[main] TRACE com.criteo.nosql.cassandra.exporter.Config - com.criteo.nosql.cassandra.exporter.Config@42dafa95
[main] ERROR com.criteo.nosql.cassandra.exporter.Main - Scrapper stopped due to uncaught exception
java.rmi.ConnectException: Connection refused to host:; nested exception is: Connection refused (Connection refused)
	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(
	at sun.rmi.transport.tcp.TCPChannel.createConnection(
	at sun.rmi.transport.tcp.TCPChannel.newConnection(
	at sun.rmi.server.UnicastRef.invoke(
	at Source)
	at com.criteo.nosql.cassandra.exporter.Main.main(
Caused by: Connection refused (Connection refused)
	at Method)
	at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(
	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(
	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

erebecommented, Apr 13, 2018

You need to enable remote access, you only have local access configured


Notice the jmx.local.port

You can try out with those JMX options when starting cassandra (in file in the config directory)

Let me know it change anything

chhetripradeepcommented, Apr 18, 2018

Works as expected. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing the configuration variable on teamcity - Stack Overflow
I have a Job A and Job B in teamcity, Job B is a dependency for Job A(continuous build and deployment job). I...
Read more >
Pass Record Producer variables questions and answe...
Hi, I have created a Record Producer form for our incident table. They don't want the variable editor on the Incident form, so...
Read more >
How to best pass along global configurations such as login ...
I have a lot of "global" configuration files, for example the URL, login, and password of the webservice I'm communicating with (this changes ......
Read more >
Frequently Asked Questions — Ansible Documentation
How do I see all the inventory variables defined for my host? How do I see all the variables specific to my host?...
Read more >
Config Variables | DevSpace | Documentation
command means DevSpace will not ask the user a question and instead execute a command to determine the value of the variable. Pass...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found