JMX is not enabled to receive remote connection












1















I was trying to connect to nodetool remotely , which fails to connect



H:ApacheCassandraapache-cassandra-2.1.8-binapache-cassandra-2.1.8bin>nodetool -h 192.168.0.45  status
Starting NodeTool
nodetool: Failed to connect to '192.168.0.45:7199' - ConnectException: 'Connection refused: connect'.


I followed couple of option given on net such as



Enabled : JMX_PORT="7199"
Enabled : JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=192.168.045"


in cassandra-env.sh










share|improve this question

























  • The hostname 192.168.045 in the options seems to be missing a period.

    – user2314737
    Jul 29 '15 at 17:12













  • it was a type , its 192168.0.45

    – user2704472
    Jul 29 '15 at 17:32
















1















I was trying to connect to nodetool remotely , which fails to connect



H:ApacheCassandraapache-cassandra-2.1.8-binapache-cassandra-2.1.8bin>nodetool -h 192.168.0.45  status
Starting NodeTool
nodetool: Failed to connect to '192.168.0.45:7199' - ConnectException: 'Connection refused: connect'.


I followed couple of option given on net such as



Enabled : JMX_PORT="7199"
Enabled : JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=192.168.045"


in cassandra-env.sh










share|improve this question

























  • The hostname 192.168.045 in the options seems to be missing a period.

    – user2314737
    Jul 29 '15 at 17:12













  • it was a type , its 192168.0.45

    – user2704472
    Jul 29 '15 at 17:32














1












1








1


2






I was trying to connect to nodetool remotely , which fails to connect



H:ApacheCassandraapache-cassandra-2.1.8-binapache-cassandra-2.1.8bin>nodetool -h 192.168.0.45  status
Starting NodeTool
nodetool: Failed to connect to '192.168.0.45:7199' - ConnectException: 'Connection refused: connect'.


I followed couple of option given on net such as



Enabled : JMX_PORT="7199"
Enabled : JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=192.168.045"


in cassandra-env.sh










share|improve this question
















I was trying to connect to nodetool remotely , which fails to connect



H:ApacheCassandraapache-cassandra-2.1.8-binapache-cassandra-2.1.8bin>nodetool -h 192.168.0.45  status
Starting NodeTool
nodetool: Failed to connect to '192.168.0.45:7199' - ConnectException: 'Connection refused: connect'.


I followed couple of option given on net such as



Enabled : JMX_PORT="7199"
Enabled : JVM_OPTS="$JVM_OPTS -Djava.rmi.server.hostname=192.168.045"


in cassandra-env.sh







cassandra






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 29 '15 at 17:11









user2314737

15k115469




15k115469










asked Jul 29 '15 at 17:04









user2704472user2704472

77413




77413













  • The hostname 192.168.045 in the options seems to be missing a period.

    – user2314737
    Jul 29 '15 at 17:12













  • it was a type , its 192168.0.45

    – user2704472
    Jul 29 '15 at 17:32



















  • The hostname 192.168.045 in the options seems to be missing a period.

    – user2314737
    Jul 29 '15 at 17:12













  • it was a type , its 192168.0.45

    – user2704472
    Jul 29 '15 at 17:32

















The hostname 192.168.045 in the options seems to be missing a period.

– user2314737
Jul 29 '15 at 17:12







The hostname 192.168.045 in the options seems to be missing a period.

– user2314737
Jul 29 '15 at 17:12















it was a type , its 192168.0.45

– user2704472
Jul 29 '15 at 17:32





it was a type , its 192168.0.45

– user2704472
Jul 29 '15 at 17:32












1 Answer
1






active

oldest

votes


















0














Did you set everything as instructed here?



The default settings are for local JMX only.



For example, did you set LOCAL_JMX=no in cassandra-env.sh?






share|improve this answer
























  • forget to mention , Cassandra is running on windows Server 2012 64x. As you mentioned about the instruction , i am not able to find jmxremote.password.template anywhere on the system. LOCAL_JMX=no is set to no.

    – user2704472
    Jul 29 '15 at 17:45













  • Did you try running "netstat -an" to see if Cassandra is listening on port 7199?

    – Jim Meyer
    Jul 29 '15 at 17:54











  • yes. tcp 127.0.0.1:7199 (local address) ..I believe it should run as 192.168.0.45:7199

    – user2704472
    Jul 29 '15 at 18:03













  • i dont understand why on startup it says JMX is not enabled

    – user2704472
    Jul 29 '15 at 18:05











  • LOCAL_JMX=no Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:7199 0.0.0.0:0 LISTENING TCP 127.0.0.1:51498 0.0.0.0:0 LISTENING TCP 127.0.0.1:51499 127.0.0.1:7199 TIME_WAIT

    – user2704472
    Jul 29 '15 at 18:12











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31706818%2fjmx-is-not-enabled-to-receive-remote-connection%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Did you set everything as instructed here?



The default settings are for local JMX only.



For example, did you set LOCAL_JMX=no in cassandra-env.sh?






share|improve this answer
























  • forget to mention , Cassandra is running on windows Server 2012 64x. As you mentioned about the instruction , i am not able to find jmxremote.password.template anywhere on the system. LOCAL_JMX=no is set to no.

    – user2704472
    Jul 29 '15 at 17:45













  • Did you try running "netstat -an" to see if Cassandra is listening on port 7199?

    – Jim Meyer
    Jul 29 '15 at 17:54











  • yes. tcp 127.0.0.1:7199 (local address) ..I believe it should run as 192.168.0.45:7199

    – user2704472
    Jul 29 '15 at 18:03













  • i dont understand why on startup it says JMX is not enabled

    – user2704472
    Jul 29 '15 at 18:05











  • LOCAL_JMX=no Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:7199 0.0.0.0:0 LISTENING TCP 127.0.0.1:51498 0.0.0.0:0 LISTENING TCP 127.0.0.1:51499 127.0.0.1:7199 TIME_WAIT

    – user2704472
    Jul 29 '15 at 18:12
















0














Did you set everything as instructed here?



The default settings are for local JMX only.



For example, did you set LOCAL_JMX=no in cassandra-env.sh?






share|improve this answer
























  • forget to mention , Cassandra is running on windows Server 2012 64x. As you mentioned about the instruction , i am not able to find jmxremote.password.template anywhere on the system. LOCAL_JMX=no is set to no.

    – user2704472
    Jul 29 '15 at 17:45













  • Did you try running "netstat -an" to see if Cassandra is listening on port 7199?

    – Jim Meyer
    Jul 29 '15 at 17:54











  • yes. tcp 127.0.0.1:7199 (local address) ..I believe it should run as 192.168.0.45:7199

    – user2704472
    Jul 29 '15 at 18:03













  • i dont understand why on startup it says JMX is not enabled

    – user2704472
    Jul 29 '15 at 18:05











  • LOCAL_JMX=no Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:7199 0.0.0.0:0 LISTENING TCP 127.0.0.1:51498 0.0.0.0:0 LISTENING TCP 127.0.0.1:51499 127.0.0.1:7199 TIME_WAIT

    – user2704472
    Jul 29 '15 at 18:12














0












0








0







Did you set everything as instructed here?



The default settings are for local JMX only.



For example, did you set LOCAL_JMX=no in cassandra-env.sh?






share|improve this answer













Did you set everything as instructed here?



The default settings are for local JMX only.



For example, did you set LOCAL_JMX=no in cassandra-env.sh?







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 29 '15 at 17:14









Jim MeyerJim Meyer

7,73011335




7,73011335













  • forget to mention , Cassandra is running on windows Server 2012 64x. As you mentioned about the instruction , i am not able to find jmxremote.password.template anywhere on the system. LOCAL_JMX=no is set to no.

    – user2704472
    Jul 29 '15 at 17:45













  • Did you try running "netstat -an" to see if Cassandra is listening on port 7199?

    – Jim Meyer
    Jul 29 '15 at 17:54











  • yes. tcp 127.0.0.1:7199 (local address) ..I believe it should run as 192.168.0.45:7199

    – user2704472
    Jul 29 '15 at 18:03













  • i dont understand why on startup it says JMX is not enabled

    – user2704472
    Jul 29 '15 at 18:05











  • LOCAL_JMX=no Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:7199 0.0.0.0:0 LISTENING TCP 127.0.0.1:51498 0.0.0.0:0 LISTENING TCP 127.0.0.1:51499 127.0.0.1:7199 TIME_WAIT

    – user2704472
    Jul 29 '15 at 18:12



















  • forget to mention , Cassandra is running on windows Server 2012 64x. As you mentioned about the instruction , i am not able to find jmxremote.password.template anywhere on the system. LOCAL_JMX=no is set to no.

    – user2704472
    Jul 29 '15 at 17:45













  • Did you try running "netstat -an" to see if Cassandra is listening on port 7199?

    – Jim Meyer
    Jul 29 '15 at 17:54











  • yes. tcp 127.0.0.1:7199 (local address) ..I believe it should run as 192.168.0.45:7199

    – user2704472
    Jul 29 '15 at 18:03













  • i dont understand why on startup it says JMX is not enabled

    – user2704472
    Jul 29 '15 at 18:05











  • LOCAL_JMX=no Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:7199 0.0.0.0:0 LISTENING TCP 127.0.0.1:51498 0.0.0.0:0 LISTENING TCP 127.0.0.1:51499 127.0.0.1:7199 TIME_WAIT

    – user2704472
    Jul 29 '15 at 18:12

















forget to mention , Cassandra is running on windows Server 2012 64x. As you mentioned about the instruction , i am not able to find jmxremote.password.template anywhere on the system. LOCAL_JMX=no is set to no.

– user2704472
Jul 29 '15 at 17:45







forget to mention , Cassandra is running on windows Server 2012 64x. As you mentioned about the instruction , i am not able to find jmxremote.password.template anywhere on the system. LOCAL_JMX=no is set to no.

– user2704472
Jul 29 '15 at 17:45















Did you try running "netstat -an" to see if Cassandra is listening on port 7199?

– Jim Meyer
Jul 29 '15 at 17:54





Did you try running "netstat -an" to see if Cassandra is listening on port 7199?

– Jim Meyer
Jul 29 '15 at 17:54













yes. tcp 127.0.0.1:7199 (local address) ..I believe it should run as 192.168.0.45:7199

– user2704472
Jul 29 '15 at 18:03







yes. tcp 127.0.0.1:7199 (local address) ..I believe it should run as 192.168.0.45:7199

– user2704472
Jul 29 '15 at 18:03















i dont understand why on startup it says JMX is not enabled

– user2704472
Jul 29 '15 at 18:05





i dont understand why on startup it says JMX is not enabled

– user2704472
Jul 29 '15 at 18:05













LOCAL_JMX=no Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:7199 0.0.0.0:0 LISTENING TCP 127.0.0.1:51498 0.0.0.0:0 LISTENING TCP 127.0.0.1:51499 127.0.0.1:7199 TIME_WAIT

– user2704472
Jul 29 '15 at 18:12





LOCAL_JMX=no Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:7199 0.0.0.0:0 LISTENING TCP 127.0.0.1:51498 0.0.0.0:0 LISTENING TCP 127.0.0.1:51499 127.0.0.1:7199 TIME_WAIT

– user2704472
Jul 29 '15 at 18:12




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f31706818%2fjmx-is-not-enabled-to-receive-remote-connection%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

TypeError: fit_transform() missing 1 required positional argument: 'X'