Comments (11)
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.
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.
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.CassandraDaemonBoth 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.
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.
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.
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.
Manually removing the (half-baked) repository, as @clohfink suggests, fixes it.
from ccm.
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.
Thanks clohfink! fixes my issue.
from ccm.
Many thanks @clohfink - this was exactly my issue, your suggestion fixed it.
from ccm.
Many thanks @clohfink for me too
from ccm.
Related Issues (20)
- How to specify JVM args per cluster instead upon invoking start method? HOT 3
- Upgrading a node resets that node's cassandra-topology.properties
- Getting load warnings on version 3.1.4 HOT 1
- Creating cluster with debug `-d` fails against C* 4.0
- WSL Error - from ccsm HOT 3
- AssertionError: Could not do a git clone HOT 2
- Can't create cluster using 4.0-alpha binary releases
- Connect to node with Database Manager
- Unable to run a multi-node cluster HOT 1
- nodetool info fails with error: `No such attribute: StopNodeReason`
- ccm doesn't seem to work with version 4.0-rc1 HOT 1
- heartbeat HOT 1
- release of 3.1.6 to pypi?
- pip install ccm gives errror: "ImportError: No module named pathlib" HOT 4
- Create DSE without a /conf folder
- IndexError: list index out of range on Fedora release 37 HOT 2
- How to uninstall
- Failed create ccm as there is no direct internet access
- Remove Python 2.7 compatibility and 'six' imports.
- Cannot authenticate to basic cluster
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccm.