You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by S Ahmed <sa...@gmail.com> on 2010/04/23 04:53:13 UTC

getting cassandra setup on windows 7

So I uncompressed the .tar, in the readme it says:

* tar -zxvf cassandra-$VERSION.tgz
  * cd cassandra-$VERSION
  * sudo mkdir -p /var/log/cassandra
  * sudo chown -R `whoami` /var/log/cassandra
  * sudo mkdir -p /var/lib/cassandra
  * sudo chown -R `whoami` /var/lib/cassandra


My cassandra is at:

c:\java\cassandra\apache-cassandra-0.6.1/

So I have to create 2 folders log and lib?
Is there a setting in a config file that I edit?

Re: getting cassandra setup on windows 7

Posted by S Ahmed <sa...@gmail.com>.
great that worked thanks!

On Fri, Apr 23, 2010 at 2:28 PM, Mark Greene <gr...@gmail.com> wrote:

> Try the cassandra-with-fixes.bat<https://issues.apache.org/jira/secure/attachment/12442349/cassandra-with-fixes.bat> file
> attached to the issue. I had the same issue an that bat file got cassandra
> to start. It still throws another error complaining about the
> log4j.properties.
>
>
> On Fri, Apr 23, 2010 at 1:59 PM, S Ahmed <sa...@gmail.com> wrote:
>
>> Any insights?
>>
>> Much appreciated!
>>
>>
>> On Thu, Apr 22, 2010 at 11:13 PM, S Ahmed <sa...@gmail.com> wrote:
>>
>>> I was just reading that thanks.
>>>
>>> What does he mean when he says:
>>>
>>> "This appears to be related to data storage paths I set, because if I
>>> switch the paths back to the default UNIX paths. Everything runs fine"
>>>
>>>
>>> On Thu, Apr 22, 2010 at 11:07 PM, Jonathan Ellis <jb...@gmail.com>wrote:
>>>
>>>> https://issues.apache.org/jira/browse/CASSANDRA-948
>>>>
>>>> On Thu, Apr 22, 2010 at 10:03 PM, S Ahmed <sa...@gmail.com> wrote:
>>>> > Ok so I found the config section:
>>>> >
>>>> <CommitLogDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\commitlog</CommitLogDirectory>
>>>> >   <DataFileDirectories>
>>>> >
>>>> >
>>>>  <DataFileDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\data</DataFileDirectory>
>>>> >   </DataFileDirectories>
>>>> >
>>>> > Now when I run:
>>>> > bin/cassandra
>>>> > I get:
>>>> > Starting cassandra server
>>>> > listening for transport dt_socket at address:8888
>>>> > exception in thread main java.lang.noclassDefFoundError:
>>>> > org/apache/cassthreft/cassandraDaemon
>>>> > could not find the main class:
>>>> > org.apache.cassandra.threif.cassandraDaemon...
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Thu, Apr 22, 2010 at 10:53 PM, S Ahmed <sa...@gmail.com>
>>>> wrote:
>>>> >>
>>>> >> So I uncompressed the .tar, in the readme it says:
>>>> >> * tar -zxvf cassandra-$VERSION.tgz
>>>> >>   * cd cassandra-$VERSION
>>>> >>   * sudo mkdir -p /var/log/cassandra
>>>> >>   * sudo chown -R `whoami` /var/log/cassandra
>>>> >>   * sudo mkdir -p /var/lib/cassandra
>>>> >>   * sudo chown -R `whoami` /var/lib/cassandra
>>>> >>
>>>> >> My cassandra is at:
>>>> >> c:\java\cassandra\apache-cassandra-0.6.1/
>>>> >> So I have to create 2 folders log and lib?
>>>> >> Is there a setting in a config file that I edit?
>>>> >
>>>>
>>>
>>>
>>
>

Re: getting cassandra setup on windows 7

Posted by Mark Greene <gr...@gmail.com>.
Try the cassandra-with-fixes.bat<https://issues.apache.org/jira/secure/attachment/12442349/cassandra-with-fixes.bat>
file
attached to the issue. I had the same issue an that bat file got cassandra
to start. It still throws another error complaining about the
log4j.properties.

On Fri, Apr 23, 2010 at 1:59 PM, S Ahmed <sa...@gmail.com> wrote:

> Any insights?
>
> Much appreciated!
>
>
> On Thu, Apr 22, 2010 at 11:13 PM, S Ahmed <sa...@gmail.com> wrote:
>
>> I was just reading that thanks.
>>
>> What does he mean when he says:
>>
>> "This appears to be related to data storage paths I set, because if I
>> switch the paths back to the default UNIX paths. Everything runs fine"
>>
>>
>> On Thu, Apr 22, 2010 at 11:07 PM, Jonathan Ellis <jb...@gmail.com>wrote:
>>
>>> https://issues.apache.org/jira/browse/CASSANDRA-948
>>>
>>> On Thu, Apr 22, 2010 at 10:03 PM, S Ahmed <sa...@gmail.com> wrote:
>>> > Ok so I found the config section:
>>> >
>>> <CommitLogDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\commitlog</CommitLogDirectory>
>>> >   <DataFileDirectories>
>>> >
>>> >
>>>  <DataFileDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\data</DataFileDirectory>
>>> >   </DataFileDirectories>
>>> >
>>> > Now when I run:
>>> > bin/cassandra
>>> > I get:
>>> > Starting cassandra server
>>> > listening for transport dt_socket at address:8888
>>> > exception in thread main java.lang.noclassDefFoundError:
>>> > org/apache/cassthreft/cassandraDaemon
>>> > could not find the main class:
>>> > org.apache.cassandra.threif.cassandraDaemon...
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On Thu, Apr 22, 2010 at 10:53 PM, S Ahmed <sa...@gmail.com>
>>> wrote:
>>> >>
>>> >> So I uncompressed the .tar, in the readme it says:
>>> >> * tar -zxvf cassandra-$VERSION.tgz
>>> >>   * cd cassandra-$VERSION
>>> >>   * sudo mkdir -p /var/log/cassandra
>>> >>   * sudo chown -R `whoami` /var/log/cassandra
>>> >>   * sudo mkdir -p /var/lib/cassandra
>>> >>   * sudo chown -R `whoami` /var/lib/cassandra
>>> >>
>>> >> My cassandra is at:
>>> >> c:\java\cassandra\apache-cassandra-0.6.1/
>>> >> So I have to create 2 folders log and lib?
>>> >> Is there a setting in a config file that I edit?
>>> >
>>>
>>
>>
>

Re: getting cassandra setup on windows 7

Posted by S Ahmed <sa...@gmail.com>.
Any insights?

Much appreciated!

On Thu, Apr 22, 2010 at 11:13 PM, S Ahmed <sa...@gmail.com> wrote:

> I was just reading that thanks.
>
> What does he mean when he says:
>
> "This appears to be related to data storage paths I set, because if I
> switch the paths back to the default UNIX paths. Everything runs fine"
>
>
> On Thu, Apr 22, 2010 at 11:07 PM, Jonathan Ellis <jb...@gmail.com>wrote:
>
>> https://issues.apache.org/jira/browse/CASSANDRA-948
>>
>> On Thu, Apr 22, 2010 at 10:03 PM, S Ahmed <sa...@gmail.com> wrote:
>> > Ok so I found the config section:
>> >
>> <CommitLogDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\commitlog</CommitLogDirectory>
>> >   <DataFileDirectories>
>> >
>> >
>>  <DataFileDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\data</DataFileDirectory>
>> >   </DataFileDirectories>
>> >
>> > Now when I run:
>> > bin/cassandra
>> > I get:
>> > Starting cassandra server
>> > listening for transport dt_socket at address:8888
>> > exception in thread main java.lang.noclassDefFoundError:
>> > org/apache/cassthreft/cassandraDaemon
>> > could not find the main class:
>> > org.apache.cassandra.threif.cassandraDaemon...
>> >
>> >
>> >
>> >
>> >
>> > On Thu, Apr 22, 2010 at 10:53 PM, S Ahmed <sa...@gmail.com> wrote:
>> >>
>> >> So I uncompressed the .tar, in the readme it says:
>> >> * tar -zxvf cassandra-$VERSION.tgz
>> >>   * cd cassandra-$VERSION
>> >>   * sudo mkdir -p /var/log/cassandra
>> >>   * sudo chown -R `whoami` /var/log/cassandra
>> >>   * sudo mkdir -p /var/lib/cassandra
>> >>   * sudo chown -R `whoami` /var/lib/cassandra
>> >>
>> >> My cassandra is at:
>> >> c:\java\cassandra\apache-cassandra-0.6.1/
>> >> So I have to create 2 folders log and lib?
>> >> Is there a setting in a config file that I edit?
>> >
>>
>
>

Re: getting cassandra setup on windows 7

Posted by S Ahmed <sa...@gmail.com>.
I was just reading that thanks.

What does he mean when he says:

"This appears to be related to data storage paths I set, because if I switch
the paths back to the default UNIX paths. Everything runs fine"

On Thu, Apr 22, 2010 at 11:07 PM, Jonathan Ellis <jb...@gmail.com> wrote:

> https://issues.apache.org/jira/browse/CASSANDRA-948
>
> On Thu, Apr 22, 2010 at 10:03 PM, S Ahmed <sa...@gmail.com> wrote:
> > Ok so I found the config section:
> >
> <CommitLogDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\commitlog</CommitLogDirectory>
> >   <DataFileDirectories>
> >
> >
>  <DataFileDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\data</DataFileDirectory>
> >   </DataFileDirectories>
> >
> > Now when I run:
> > bin/cassandra
> > I get:
> > Starting cassandra server
> > listening for transport dt_socket at address:8888
> > exception in thread main java.lang.noclassDefFoundError:
> > org/apache/cassthreft/cassandraDaemon
> > could not find the main class:
> > org.apache.cassandra.threif.cassandraDaemon...
> >
> >
> >
> >
> >
> > On Thu, Apr 22, 2010 at 10:53 PM, S Ahmed <sa...@gmail.com> wrote:
> >>
> >> So I uncompressed the .tar, in the readme it says:
> >> * tar -zxvf cassandra-$VERSION.tgz
> >>   * cd cassandra-$VERSION
> >>   * sudo mkdir -p /var/log/cassandra
> >>   * sudo chown -R `whoami` /var/log/cassandra
> >>   * sudo mkdir -p /var/lib/cassandra
> >>   * sudo chown -R `whoami` /var/lib/cassandra
> >>
> >> My cassandra is at:
> >> c:\java\cassandra\apache-cassandra-0.6.1/
> >> So I have to create 2 folders log and lib?
> >> Is there a setting in a config file that I edit?
> >
>

Re: getting cassandra setup on windows 7

Posted by Jonathan Ellis <jb...@gmail.com>.
https://issues.apache.org/jira/browse/CASSANDRA-948

On Thu, Apr 22, 2010 at 10:03 PM, S Ahmed <sa...@gmail.com> wrote:
> Ok so I found the config section:
> <CommitLogDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\commitlog</CommitLogDirectory>
>   <DataFileDirectories>
>
>  <DataFileDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\data</DataFileDirectory>
>   </DataFileDirectories>
>
> Now when I run:
> bin/cassandra
> I get:
> Starting cassandra server
> listening for transport dt_socket at address:8888
> exception in thread main java.lang.noclassDefFoundError:
> org/apache/cassthreft/cassandraDaemon
> could not find the main class:
> org.apache.cassandra.threif.cassandraDaemon...
>
>
>
>
>
> On Thu, Apr 22, 2010 at 10:53 PM, S Ahmed <sa...@gmail.com> wrote:
>>
>> So I uncompressed the .tar, in the readme it says:
>> * tar -zxvf cassandra-$VERSION.tgz
>>   * cd cassandra-$VERSION
>>   * sudo mkdir -p /var/log/cassandra
>>   * sudo chown -R `whoami` /var/log/cassandra
>>   * sudo mkdir -p /var/lib/cassandra
>>   * sudo chown -R `whoami` /var/lib/cassandra
>>
>> My cassandra is at:
>> c:\java\cassandra\apache-cassandra-0.6.1/
>> So I have to create 2 folders log and lib?
>> Is there a setting in a config file that I edit?
>

Re: getting cassandra setup on windows 7

Posted by S Ahmed <sa...@gmail.com>.
Ok so I found the config section:

<CommitLogDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\commitlog</CommitLogDirectory>
  <DataFileDirectories>

 <DataFileDirectory>E:\java\cassandra\apache-cassandra-0.6.1-bin\apache-cassandra-0.6.1\data</DataFileDirectory>
  </DataFileDirectories>


Now when I run:

bin/cassandra

I get:

Starting cassandra server
listening for transport dt_socket at address:8888
exception in thread main java.lang.noclassDefFoundError:
org/apache/cassthreft/cassandraDaemon

could not find the main class:
org.apache.cassandra.threif.cassandraDaemon...






On Thu, Apr 22, 2010 at 10:53 PM, S Ahmed <sa...@gmail.com> wrote:

> So I uncompressed the .tar, in the readme it says:
>
> * tar -zxvf cassandra-$VERSION.tgz
>   * cd cassandra-$VERSION
>   * sudo mkdir -p /var/log/cassandra
>   * sudo chown -R `whoami` /var/log/cassandra
>   * sudo mkdir -p /var/lib/cassandra
>   * sudo chown -R `whoami` /var/lib/cassandra
>
>
> My cassandra is at:
>
> c:\java\cassandra\apache-cassandra-0.6.1/
>
> So I have to create 2 folders log and lib?
> Is there a setting in a config file that I edit?
>

Re: getting cassandra setup on windows 7

Posted by Shinpei Ohtani <sh...@gmail.com>.
Hi,

You should do at least these:
1.open conf/storage-conf.xml and set commitlog/data directory settings
2.open conf/log4j.properties and set log directory whichever you want
3.I recommend to set c:\java\cassandra\apache-cassandra-0.6.1/ as
%CASSANDRA_HOME% to your class path.
4.Also I recommend to change JMX port which is described at
bin/cassandra.bat from 8080 to other,
this might be problem when you are using Tomcat.

Just mention about 1 and 2, these files are readonly so you should
change to be writable before editing.
(I think these conf files should not be readonly...)

Hope this helps,
===
Shinpei

On Fri, Apr 23, 2010 at 11:53 AM, S Ahmed <sa...@gmail.com> wrote:
> So I uncompressed the .tar, in the readme it says:
> * tar -zxvf cassandra-$VERSION.tgz
>   * cd cassandra-$VERSION
>   * sudo mkdir -p /var/log/cassandra
>   * sudo chown -R `whoami` /var/log/cassandra
>   * sudo mkdir -p /var/lib/cassandra
>   * sudo chown -R `whoami` /var/lib/cassandra
>
> My cassandra is at:
> c:\java\cassandra\apache-cassandra-0.6.1/
> So I have to create 2 folders log and lib?
> Is there a setting in a config file that I edit?



-- 
=============================
Shinpei Ohtani
mail    : shinpei.ohtani@gmail.com
blog    : http://d.hatena.ne.jp/shot6/
twitter : http://twitter.com/shot6
=============================