You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by vck <ve...@gmail.com> on 2013/03/04 08:00:34 UTC
cassandra-cli on cygwin
just playing around with cassandra code after setting it up.
but on running cassandra-cli on cygwin, it gives me a couple of issues.
1) dos2unix has to be run on cassandra-cli and cassandra.in.sh
2) cassandra-cli gave following exception
* Exception in thread "main" org.yaml.snakeyaml.error.YAMLException:
java.io.IOException: Stream closed
* Fixed it by pasting CliHelp.yaml from
src/resources/org/apache/cassandra/cli to src/java/org/...
3) cygpath needs to be used to convert the dos CLASSPATH, added the
following to cassandra-cli.
#case "`uname`" in
# CYGWIN*)
# CLASSPATH=`cygpath -p -w "$CLASSPATH"`
# ;;
#esac
Probably this needs some documenting or correction in the script. could i
raise a jira request?
thanks
~vk
Re: C* 1.2.2 vs Raspberry Pi
Posted by Andrew Cobley <a....@dundee.ac.uk>.
Yep,
I did remove it and all was well. However it is a gotcha for anyone trying C* on the Pi so a better solution is probably needed (conditionally removal)
Andy
On 4 Mar 2013, at 19:30, Jools <jo...@gmail.com>
wrote:
> It's an optimisation flag, and not applicable to the to the 1.x JVM's
> should be fine to remove it.
>
> --Jools
>
>
> On 4 March 2013 19:17, Andrew Cobley <a....@dundee.ac.uk> wrote:
>
>> Stupidly I've locked myself out of JIRA and it doesn't seem to want to
>> send me a password reset so I'll send this bug report here.
>>
>> As you guys may know I'v been running C* on a Raspberry Pi cluster for
>> experimental and educational reasons. It seems the startup script is
>> borked for 1.2.2 when using JDK1.8 (early release) on the PI.
>>
>> In Cassandra-env.sh lines 206-208
>>
>> if [ "$JVM_VERSION" \> "1.7" ] ; then
>> JVM_OPTS="$JVM_OPTS -XX:+UseCondCardMark"
>> fi
>>
>> Are causing C* to not start on the Pi. It's reporting :
>>
>> Unrecognized VM option 'UseCondCardMark'
>> Error: Could not create the Java Virtual Machine.
>> Error: A fatal exception has occurred. Program will exit.
>>
>> It looks like this change came in for 1.2.2
>>
>> Andy Cobley
>> School of Computing
>> University of Dundee
>>
>>
>> The University of Dundee is a registered Scottish Charity, No: SC015096
>>
>>
The University of Dundee is a registered Scottish Charity, No: SC015096
Re: C* 1.2.2 vs Raspberry Pi
Posted by Jools <jo...@gmail.com>.
It's an optimisation flag, and not applicable to the to the 1.x JVM's
should be fine to remove it.
--Jools
On 4 March 2013 19:17, Andrew Cobley <a....@dundee.ac.uk> wrote:
> Stupidly I've locked myself out of JIRA and it doesn't seem to want to
> send me a password reset so I'll send this bug report here.
>
> As you guys may know I'v been running C* on a Raspberry Pi cluster for
> experimental and educational reasons. It seems the startup script is
> borked for 1.2.2 when using JDK1.8 (early release) on the PI.
>
> In Cassandra-env.sh lines 206-208
>
> if [ "$JVM_VERSION" \> "1.7" ] ; then
> JVM_OPTS="$JVM_OPTS -XX:+UseCondCardMark"
> fi
>
> Are causing C* to not start on the Pi. It's reporting :
>
> Unrecognized VM option 'UseCondCardMark'
> Error: Could not create the Java Virtual Machine.
> Error: A fatal exception has occurred. Program will exit.
>
> It looks like this change came in for 1.2.2
>
> Andy Cobley
> School of Computing
> University of Dundee
>
>
> The University of Dundee is a registered Scottish Charity, No: SC015096
>
>
Re: C* 1.2.2 vs Raspberry Pi
Posted by Andrew Cobley <a....@dundee.ac.uk>.
Mike,
I'll see if there is a conditionally way of removing it. It seems to be the jdk1.8 for arm (hard float) thats missing the option ATM so it could effect other ARM devices at some point.
Andy
On 4 Mar 2013, at 19:24, Michael Kjellman <mk...@barracuda.com>
wrote:
> This was due to
>
> https://issues.apache.org/jira/browse/CASSANDRA-4366
>
> Should be safe to remove this when running on a you Raspberry Pi as it is
> a performance change for the JVM and I guess not supported on whatever
> version is supported on your distro for the Pi.
>
> -mike
>
> On 3/4/13 11:17 AM, "Andrew Cobley" <a....@dundee.ac.uk> wrote:
>
>> Stupidly I've locked myself out of JIRA and it doesn't seem to want to
>> send me a password reset so I'll send this bug report here.
>>
>> As you guys may know I'v been running C* on a Raspberry Pi cluster for
>> experimental and educational reasons. It seems the startup script is
>> borked for 1.2.2 when using JDK1.8 (early release) on the PI.
>>
>> In Cassandra-env.sh lines 206-208
>>
>> if [ "$JVM_VERSION" \> "1.7" ] ; then
>> JVM_OPTS="$JVM_OPTS -XX:+UseCondCardMark"
>> fi
>>
>> Are causing C* to not start on the Pi. It's reporting :
>>
>> Unrecognized VM option 'UseCondCardMark'
>> Error: Could not create the Java Virtual Machine.
>> Error: A fatal exception has occurred. Program will exit.
>>
>> It looks like this change came in for 1.2.2
>>
>> Andy Cobley
>> School of Computing
>> University of Dundee
>>
>>
>> The University of Dundee is a registered Scottish Charity, No: SC015096
>>
>
>
> Copy, by Barracuda, helps you store, protect, and share all your amazing
> things. Start today: www.copy.com.
>
The University of Dundee is a registered Scottish Charity, No: SC015096
Re: C* 1.2.2 vs Raspberry Pi
Posted by Michael Kjellman <mk...@barracuda.com>.
This was due to
https://issues.apache.org/jira/browse/CASSANDRA-4366
Should be safe to remove this when running on a you Raspberry Pi as it is
a performance change for the JVM and I guess not supported on whatever
version is supported on your distro for the Pi.
-mike
On 3/4/13 11:17 AM, "Andrew Cobley" <a....@dundee.ac.uk> wrote:
>Stupidly I've locked myself out of JIRA and it doesn't seem to want to
>send me a password reset so I'll send this bug report here.
>
>As you guys may know I'v been running C* on a Raspberry Pi cluster for
>experimental and educational reasons. It seems the startup script is
>borked for 1.2.2 when using JDK1.8 (early release) on the PI.
>
>In Cassandra-env.sh lines 206-208
>
>if [ "$JVM_VERSION" \> "1.7" ] ; then
> JVM_OPTS="$JVM_OPTS -XX:+UseCondCardMark"
>fi
>
>Are causing C* to not start on the Pi. It's reporting :
>
>Unrecognized VM option 'UseCondCardMark'
>Error: Could not create the Java Virtual Machine.
>Error: A fatal exception has occurred. Program will exit.
>
>It looks like this change came in for 1.2.2
>
>Andy Cobley
>School of Computing
>University of Dundee
>
>
>The University of Dundee is a registered Scottish Charity, No: SC015096
>
Copy, by Barracuda, helps you store, protect, and share all your amazing
things. Start today: www.copy.com.
C* 1.2.2 vs Raspberry Pi
Posted by Andrew Cobley <a....@dundee.ac.uk>.
Stupidly I've locked myself out of JIRA and it doesn't seem to want to send me a password reset so I'll send this bug report here.
As you guys may know I'v been running C* on a Raspberry Pi cluster for experimental and educational reasons. It seems the startup script is borked for 1.2.2 when using JDK1.8 (early release) on the PI.
In Cassandra-env.sh lines 206-208
if [ "$JVM_VERSION" \> "1.7" ] ; then
JVM_OPTS="$JVM_OPTS -XX:+UseCondCardMark"
fi
Are causing C* to not start on the Pi. It's reporting :
Unrecognized VM option 'UseCondCardMark'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
It looks like this change came in for 1.2.2
Andy Cobley
School of Computing
University of Dundee
The University of Dundee is a registered Scottish Charity, No: SC015096
Re: cassandra-cli on cygwin
Posted by Jonathan Ellis <jb...@gmail.com>.
Go for it, although I think (1) might be cygwin being "helpful" and
(2) means your classpath needs adjusting rather than moving .yaml
files around.
On Mon, Mar 4, 2013 at 1:00 AM, vck <ve...@gmail.com> wrote:
> just playing around with cassandra code after setting it up.
> but on running cassandra-cli on cygwin, it gives me a couple of issues.
>
> 1) dos2unix has to be run on cassandra-cli and cassandra.in.sh
>
> 2) cassandra-cli gave following exception
> * Exception in thread "main" org.yaml.snakeyaml.error.YAMLException:
> java.io.IOException: Stream closed
> * Fixed it by pasting CliHelp.yaml from
> src/resources/org/apache/cassandra/cli to src/java/org/...
>
> 3) cygpath needs to be used to convert the dos CLASSPATH, added the
> following to cassandra-cli.
>
> #case "`uname`" in
> # CYGWIN*)
> # CLASSPATH=`cygpath -p -w "$CLASSPATH"`
> # ;;
> #esac
>
>
> Probably this needs some documenting or correction in the script. could i
> raise a jira request?
>
> thanks
> ~vk
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder, http://www.datastax.com
@spyced