Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Newrelic agent unable to talk to Cassandra cluster #22

Open
nanthny opened this issue Apr 29, 2014 · 3 comments
Open

Newrelic agent unable to talk to Cassandra cluster #22

nanthny opened this issue Apr 29, 2014 · 3 comments

Comments

@nanthny
Copy link

nanthny commented Apr 29, 2014

Using newrelic plug 2.0 for Cassandra. Defined 1 node cassandra cluster info in plugin.json.
{
"agents" : [
{
"type":"cassandra",
"name" : "Test_cluster",
"discovery_host" : "tn7ddscas01002n.starwave.com",
"jmx_port" : 7199
}
]
}

When I run " java -jar plugin.jar", I get below error. How do we resolve this?

[2014-04-29 14:06:20,072] ERROR com.newrelic.metrics.publish.binding.Request - An error occurred communicating with the New Relic service
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.6.0_45]
at java.net.PlainSocketImpl.doConnect(Unknown Source) ~[na:1.6.0_45]
at java.net.PlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.6.0_45]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.6.0_45]
at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.6.0_45]
at java.net.Socket.connect(Unknown Source) ~[na:1.6.0_45]
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source) ~[na:1.6]
at sun.net.NetworkClient.doConnect(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.protocol.https.HttpsClient.(Unknown Source) ~[na:1.6]
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) ~[na:1.6]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) ~[na:1.6]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) ~[na:1.6]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source) ~[na:1.6]
at com.newrelic.metrics.publish.binding.Request.deliver(Request.java:106) ~[plugin.jar:2.0.0 April 10 2014]
at com.newrelic.metrics.publish.Runner$PollAgentsRunnable.run(Runner.java:203) [plugin.jar:2.0.0 April 10 2014]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.6.0_45]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [na:1.6.0_45]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [na:1.6.0_45]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) [na:1.6.0_45]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) [na:1.6.0_45]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [na:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.6.0_45]
at java.lang.Thread.run(Unknown Source) [na:1.6.0_45]

@juanformoso
Copy link
Contributor

Can you ping the host?

On Tue, Apr 29, 2014 at 6:12 PM, nanthny [email protected] wrote:

Using newrelic plug 2.0 for Cassandra. Defined 1 node cassandra cluster
info in plugin.json.
{
"agents" : [
{
"type":"cassandra",
"name" : "Test_cluster",
"discovery_host" : "tn7ddscas01002n.starwave.com",
"jmx_port" : 7199
}
]
}

When I run " java -jar plugin.jar", I get below error. How do we resolve
this?

[2014-04-29 14:06:20,072] ERROR
com.newrelic.metrics.publish.binding.Request - An error occurred
communicating with the New Relic service
java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.6.0_45]
at java.net.PlainSocketImpl.doConnect(Unknown Source) ~[na:1.6.0_45]
at java.net.PlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.6.0_45]
at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.6.0_45]
at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.6.0_45]
at java.net.Socket.connect(Unknown Source) ~[na:1.6.0_45]
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
~[na:1.6]
at sun.net.NetworkClient.doConnect(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.6.0_45]
at sun.net.www.protocol.https.HttpsClient.(Unknown Source) ~[na:1.6]
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) ~[na:1.6]
at sun.net.
www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(UnknownSource) ~[na:1.6]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(UnknownSource) ~[na:1.6.0_45]
at sun.net.
www.protocol.https.AbstractDelegateHttpsURLConnection.connect(UnknownSource) ~[na:1.6]
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(UnknownSource) ~[na:1.6.0_45]
at sun.net.
www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
~[na:1.6]
at com.newrelic.metrics.publish.binding.Request.deliver(Request.java:106)
~[plugin.jar:2.0.0 April 10 2014]
at
com.newrelic.metrics.publish.Runner$PollAgentsRunnable.run(Runner.java:203)
[plugin.jar:2.0.0 April 10 2014]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[na:1.6.0_45]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
[na:1.6.0_45]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
[na:1.6.0_45]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source) [na:1.6.0_45]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source) [na:1.6.0_45]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source) [na:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[na:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[na:1.6.0_45]
at java.lang.Thread.run(Unknown Source) [na:1.6.0_45]


Reply to this email directly or view it on GitHubhttps://github.com//issues/22
.

_Juan Manuel Formoso_Senior Geek
Look at me still talking when there's science to do
@juanformoso http://www.twitter.com/juanformoso
https://keybase.io/juan
LLAP

@nanthny
Copy link
Author

nanthny commented Apr 29, 2014

Yes I can. I just have agent installed. Do i need to run nrsysmond on each server in the cluster?

@nanthny
Copy link
Author

nanthny commented May 2, 2014

I was able to figure this out. agent is talk to cluster via proxy server. But when I modify Cassandra 1.2 cluster to be authenticated cluster, and ran the new relic agent. It is unable to talk to cluster. Does agent work on authenticated Cassandra cluster?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants