Can't start Cassandra after OS patch up

前端 未结 4 1494
陌清茗
陌清茗 2020-12-09 11:24

When I try to start Cassandra after patching my OS, I get this error:

Exception (java.lang.AbstractMethodError) encountered during startup: org.apache.cassan         


        
4条回答
  •  感情败类
    2020-12-09 11:34

    To get Cassandra running I had to install JDK 8u152. Using brew cask install java8 it wasn't possible. I tried using an old version of the cassandra.rb formula but that just got:

    Error: Download failed on Cask 'java8' with message: Download failed: http://download.oracle.com/otn-pub/java/jdk/8u152-b16/aa0333dd3019491ca4f6ddbe78cdb6d0/jdk-8u152-macosx-x64.dmg
    

    I had to go here and log in to be able to download the DMG: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html

    Protip: To still be able to install java8 using homebrew I downloaded the dmg myself, and started a server in the downloads directory:

    cd ~/Downloads
    php -S 0.0.0.0:3333
    

    And changed the download URL (line 6) in the formula to:

    url "http://0.0.0.0:3333/jdk-8u152-macosx-x64.dmg",
    

    Then was able to run:

    brew cask install java8
    

    Now Cassandra is running again.

提交回复
热议问题