Giter VIP home page Giter VIP logo

Comments (11)

maater avatar maater commented on July 17, 2024

Same as #64: #64

This issue occurs if the JVM fails before even starting Cassandra.

My fork has a temporary fix:
https://github.com/Flux7Labs/ccm

Please try and let me know if works for you.

On Fri, Jun 21, 2013 at 1:32 AM, schmidh [email protected] wrote:

Just installed ccm but unfortunately it does not start. Tried different
versions of Cassandra (0.8.6, 1.2.5), different java versions (latest JDK6
and JDK7) but can't get it going. Used "ccm start -v" and "ccm start -v
--no-wait" but ccm just hangs and produces no output. Pid file is generated
for first node but the process itself does not exist (anymore). Also tried
to use "python2 -m trace --trace /usr/bin/ccm start" but don't get any
reasonable output.

As I am by far no Python expert, is there a good way to troubleshoot the
issue?


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

from ccm.

 avatar commented on July 17, 2024

Hi Aater,

thanks a lot for your patch. At least I'm getting error messages now!

For Cassandra 0.8.6 it says: Error: Could not create the Java Virtual Machine.
I am using latest JDK 7.

For Cassandra 1.2.5 it says: Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon

Both for standard user and root. You've got any idea what the problem could be? Of course I'm mainly interested in Cassandra 1.2.5 because of its feature set. Tried 0.8.6 just because it was used in the ccm docs and assumed it has been tested and worked with others.

from ccm.

maater avatar maater commented on July 17, 2024

You must use JAVA6 and that the Oracle JDK v 1.6, not the Open JDK.

Which OS are you on? If its Ubuntu, you can follow my training script:

https://github.com/Flux7Labs/cassandra-training/blob/master/utils/ubuntu_setup.sh

... to setup JAVA.

Let me know if this doesn't solve the issue.

There are some advanced ccm techniques I have learned but we will get into
it only if the simpler ones fail.

On Fri, Jun 21, 2013 at 2:21 AM, schmidh [email protected] wrote:

Hi Aater,

thanks a lot for your patch. At least I'm getting error messages now!

For Cassandra 0.8.6 it says: Error: Could not create the Java Virtual
Machine.
I am using latest JDK 7.

For Cassandra 1.2.5 it says: Error: Could not find or load main class
org.apache.cassandra.service.CassandraDaemon

Both for standard user and root. You've got any idea what the problem
could be? Of course I'm mainly interested in Cassandra 1.2.5 because of its
feature set. Tried 0.8.6 just because it was used in the ccm docs and
assumed it has been tested and worked with others.


Reply to this email directly or view it on GitHubhttps://github.com//issues/67#issuecomment-19801753
.

from ccm.

 avatar commented on July 17, 2024

Hi Aater,

am using Archlinux. Set up a box with latest JDK6 - but same issue. (Archlinux installs the jdk in /opt/java.) Tried several Cassandra environment variables and adapted cassandra.in.sh. But could not resolve the issue.

I think I leave it this way. Already spent too much time fixing the problem. Will use some virtual boxes instead to setup a Cassandra cluster.

But anyway, thanks a lot for your help, Aater. Highly appreciated!

from ccm.

devdazed avatar devdazed commented on July 17, 2024

I seem to be experiencing this issue as well.

Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon

@maater Why do you have to use JDK6 for 1.2.x ? JDK7 is supported. Additionally JDK7 is required for Cassandra >= 2.0

from ccm.

clohfink avatar clohfink commented on July 17, 2024

I saw this if I did a create the first time without ant installed (so the compile failed). Since it pulled all future clusters from the ~/.ccm/repository it would always give this error when starting a cluster from that version. I was able to resolve by just deleting the repository for that version

rm -Rf ~/.ccm/repository/1.2.13

and re-created the cluster

from ccm.

jorgebay avatar jorgebay commented on July 17, 2024

Manually removing the (half-baked) repository, as @clohfink suggests, fixes it.

from ccm.

ptnapoleon avatar ptnapoleon commented on July 17, 2024

This appears to be two separate issues, a duplicate of #64, and running without ant installed, which has since been added to the list of requirements.

from ccm.

phact avatar phact commented on July 17, 2024

Thanks clohfink! fixes my issue.

from ccm.

DanBlakeman avatar DanBlakeman commented on July 17, 2024

Many thanks @clohfink - this was exactly my issue, your suggestion fixed it.

from ccm.

zvischutz avatar zvischutz commented on July 17, 2024

Many thanks @clohfink for me too

from ccm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.