Comments (16)
Sorry, the cassandra.bat is not ready to run elassandra on Windows right now. However, you can probably copy the code of the -e option from bin/cassandra to the bin/cassandra.bat to activate Elasticsearch on your windows plateform.
Thanks',
Vincent.
from elassandra.
@vroyer
I downloaded cassandra-2.2.6, then loaded elassandra-2.1.1-14 on top of it, and only changed the classpath/CASSANDRA_MAIN
CASSANDRA_MAIN=org.apache.cassandra.service.ElassandraDaemon
But it errors with "could not find or load main class org.apache.cassandra.service.ElassandraDaemon.
Any idea ?
Thank You
from elassandra.
@vroyer I fixed the previous issue by redownloading the release.
Though now I'm getting:
Starting with legacy startup options
Starting Cassandra Server
{2.1.1}: Initialization Failed ...
- IllegalStateException[failed to load bundle [] due to jar hell]
NoSuchFileException[C:\Users\admin\Desktop\elassandra-2.1.1-14\build\cla
sses\main]
from elassandra.
Hi,
This is a classpath issue. org.apache.cassandra.service.ElassandraDaemon is the main class to launch Elassandra, but it seems that C:\Users\admin\Desktop\elassandra-2.1.1-14\build\cla sses\main does not contains it.
Thanks.
from elassandra.
@vroyer
This happens when I run it on ubuntu12.04:
Starting with Elasticsearch enabled.
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/io/util/Memory.checkBounds (JJ)V
CompilerOracle: inline org/apache/cassandra/io/util/SafeMemory.checkBounds (JJ)V
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;JI)I
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
22:01:09.840 [main] WARN org.elasticsearch.bootstrap - jvm uses the client vm, make sure to run java
with the server vm for best performance by adding -server
to the command line
22:01:12.776 [main] ERROR o.e.o.a.c.service.ElassandraDaemon - Exception
java.lang.ExceptionInInitializerError: null
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:124) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.service.ClientState.(ClientState.java:70) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.cql3.QueryProcessor$InternalStateInstance.(QueryProcessor.java:153) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.cql3.QueryProcessor$InternalStateInstance.(QueryProcessor.java:147) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.cql3.QueryProcessor.internalQueryState(QueryProcessor.java:161) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:334) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.service.ElassandraDaemon.activate(ElassandraDaemon.java:104) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.service.ElassandraDaemon.main(ElassandraDaemon.java:347) ~[elassandra-2.1.1-14.jar:na]
Caused by: org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config]. Please prefix the file with file:/// for local files or file:/// for remote files. Aborting. If you are executing this from an external tool, it needs to set Config.setClientMode(true) to avoid loading configuration.
at org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:73) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:85) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) ~[elassandra-2.1.1-14.jar:na]
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:119) ~[elassandra-2.1.1-14.jar:na]
... 7 common frames omitted
from elassandra.
See Caused by: org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config]. Please prefix the file with file:/// for local files or file:/// for remote files.
You should set CASSANDRA_CONF env variable or cassandra.config system property.
You may try to install the debian package available at http://packages.elassandra.io/deb/elassandra_2.1.1-14_all.deb
from elassandra.
@vroyer
Another error trying to manually install the .deb file.
from elassandra.
Even this guide doesn't work with error:
Somehow it's getting the path wrong.
from elassandra.
Please use the rigth path i gave you yesterday
http://packages.elassandra.io/deb/elassandra_2.1.1-14_all.deb
from elassandra.
@vroyer As you can see here I have downloaded the right file.
While when using apt-get it uses the wrong path.
from elassandra.
@vroyer can you give me sample of cassandra.config value (absolute path) that I can use or environment variable value? I tried different options and none worked and also tried searching for samples and couldn't find any. thanks
from elassandra.
Hi,
We are checking that the packages 2.1.1-14 is correct.
In order to start elassandra, you should set and export CASSANDRA_HOME to your elassandra installation directory.
Thanks',
Vincent.
Le 6 juil. 2016 à 14:01, ddorian a écrit :
@vroyer As you can see here I have downloaded the right file.
While when using apt-get it uses the wrong path.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
from elassandra.
@vroyer , I have managed to patch cassandra.ps1 and set CASSANDRA_MAIN to ElassandraDaemon. Still the elassandra does not load with the following error:
{2.4.2}: Initialization Failed ...
- IllegalStateException[failed to load bundle [file:/C:/elassandra-2.4.2/modules/lang-expression/antlr4-runtime-4.5.1-1.jar, file:/C:/elassandra-2.4.2/modules/lang-expression/asm-commons-5.0.4.jar, file:/C:/elassandra-2.4.2/modules/lang-expression/lang-expression-2.4.2.jar, file:/C:/elassandra-2.4.2/modules/lang-expression/lucene-expressions-5.5.2.jar] due to jar hell]
NoSuchFileException[C:\elassandra-2.4.2\build\classes\main]
C:\elassandra-2.4.2\build\classes\main does not exist at all, it is development folder in a class path and I am trying to launch elassandra from a tarball.
How can I start elassandra on windows?
from elassandra.
Well it has started sucessfully when I created these build directories.
I have modified windows launch scripts:
#97
from elassandra.
Windows support added with 779289e
from elassandra.
The previous commit does not seem to be merged in 6.x version. How can we start Elassandra under windows?
from elassandra.
Related Issues (20)
- Cassandra Starting error
- What to do with Elassandra? HOT 1
- Elassandra Starting Error on cpu.stat
- Is Windows supported ?
- Elasendra Error - shard or keyspace unavailable
- issue after upgrade elassandra from 6.2.3 to 6.8.4
- Unable to create new indices
- Elassandra index on blob
- Difference response for same API request HOT 2
- Inconsistent Data Querying ElasticSearch HOT 1
- Jar Hell when installing ingest-attachment plugin HOT 1
- is the project still active ? HOT 1
- override default Authenticator of Cassandra to PasswordAuthenticator
- cassandra -e is not working while bringing up the sever on windows. -e is not valid argument
- elassandra connectivity problem
- elasticsearch couldn't connect
- Elassandra not working on windows 10
- Run source code error
- elassandra importing cql database but not creating elasticsearch indexes HOT 2
- Elassandra not able to run in Kubernetes HOT 1
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 elassandra.