Run Cassandra on Mac java.net.MalformedURLException:Local host name Unknown:java.net.UnknownHostException::: Unknown Error resolution method

Source: Internet
Author: User
Tags cassandra

Run Cassandra on Mac java.net.MalformedURLException:Local host name Unknown:java.net.UnknownHostException::: Unknown Error resolution run:./bin/cassandra get output: objc[1881]: Class Javalaunchhelper is implemented in both/library/java/ Javavirtualmachines/jdk1.8.0_25.jdk/contents/home/bin/java AND/LIBRARY/JAVA/JAVAVIRTUALMACHINES/JDK1.8.0_25.JDK /contents/home/jre/lib/libinstrument.dylib. One of the both would be used. Which one is undefined. Compileroracle:inline Org/apache/cassandra/db/abstractnativecell.compareto (lorg/apache/cassandra/db/composites/ Composite;) I
Compileroracle:inline org/apache/cassandra/db/composites/abstractsimplecellnametype.compareunsigned (Lorg/apache /cassandra/db/composites/composite; Lorg/apache/cassandra/db/composites/composite;) I
Compileroracle:inline Org/apache/cassandra/utils/bytebufferutil.compare (ljava/nio/bytebuffer;[ B) I
Compileroracle:inline Org/apache/cassandra/utils/bytebufferutil.compare ([Bljava/nio/bytebuffer;) I
Compileroracle:inline org/apache/cassandra/utils/bytebufferutil.compareunsigned (Ljava/nio/ByteBuffer; Ljava/nio/bytebuffer;) I
Compileroracle:inline Org/apache/cassandra/utils/fastbyteoperations$unsafeoperations.compareto (Ljava/lang/ Object; Jiljava/lang/object; MINI
Compileroracle:inline Org/apache/cassandra/utils/fastbyteoperations$unsafeoperations.compareto (Ljava/lang/ Object; Jiljava/nio/bytebuffer;) I
Compileroracle:inline Org/apache/cassandra/utils/fastbyteoperations$unsafeoperations.compareto (Ljava/nio/ Bytebuffer; Ljava/nio/bytebuffer;) I error: Agent throws exception error: Java.net.MalformedURLException:Local Host name unknown: Java.net.UnknownHostException::: Unknown error  initially thought the first error caused the problem: objc[1881]: Class Javalaunchhelper is Implemented in Both/library/java/javavirtualmachines/jdk1.8.0_25.jdk/contents/home/bin/java and/library/java/ Javavirtualmachines/jdk1.8.0_25.jdk/contents/home/jre/lib/libinstrument.dylib. One of the both would be used. Which one is undefined.  then searched for StackOverflow, a vulnerability on Mac Java7, and then replaced Java8, unifying the JRE and JDK versions to 1.8.0 update 25 above. The result is still the same.    then, I just transfer the reason to the last malformedurlexception, I see the hosts, found completely normal, really can't son, and today to another Mac installed the same version of Java, Start Cassandra, completely normal, except that my own Mac.   stumbled upon a method, see the URL link in Appendix: , using the  scutils-get HostName command to view the current HostName, altogether is empty. Then use   scutils  -set HostName localhost  , then restart Cassandra, completely normal.    reference: "1":  http://biomedicalontologies.com/2012/11/14/fixing-java-net-local-host-name-unknown-error-on-mac-os-x/  

Run Cassandra on Mac java.net.MalformedURLException:Local host name Unknown:java.net.UnknownHostException::: Unknown error resolution

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.