Cassandra 2.x Tip "Error: Agent throws exception error: Java.lang.NullPointerException"

Source: Internet
Author: User
Tags cassandra

This problem is mostly due to the errors that are caused by running multiple Cassandra instances, which can be found in the Cassandra startup script:

# See CASSANDRA-7254 "$JAVA"  -cp< Span class= "crayon-h" > $classpath  $jvm_opts  2>& 1 |  grep -q   ' error:exception thrown by the agent: Java.lang.NullPointerException ' if [ < Span class= "Crayon-sy" >$?  -ne  "1"  ];  then Echo unable to bind JMX, is Cassandra already running ? exit 1; fi

The jvm_opts in the conf/cassandra-env.sh file set the JMX port to 7199, so this error occurs when setting up the Java environment,

Use the following method to stop the Cassandra and then restart it to resolve.

# user= ' WhoAmI '

# Pgrep-u $user-F Cassandra | Xargs kill-9

Of course it is possible that other programs take up 7199 ports and can be NETSTAT-ANLT.

Cassandra 2.x Tip "Error: Agent throws exception error: Java.lang.NullPointerException"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.