java - Cassandra server/db won't start on Windows 7 -


i don't know doing wrong. advice gratefully appreciated.

my logs when run cassandra.bat

c:\downloads\apache-cassandra-2.0.9\bin>cassandra.bat

starting cassandra server  info 12:45:45,145 logging initialized  info 12:45:45,169 loading settings file:/c:/downloads/apache-cassandra-2.0 .9/conf/cassandra.yaml  info 12:45:45,372 data files directories: [/var/lib/cassandra/data]  info 12:45:45,373 commit log directory: /var/lib/cassandra/commitlog  info 12:45:45,373 diskaccessmode 'auto' determined mmap, indexaccessmode mmap  info 12:45:45,373 disk_failure_policy stop  info 12:45:45,374 commit_failure_policy stop  info 12:45:45,378 global memtable threshold enabled @ 256mb  info 12:45:45,461 not using multi-threaded compaction  info 12:45:45,669 jvm vendor/version: ibm j9 vm/1.7.0  warn 12:45:45,669 non-oracle jvm detected.  features, such immediate un map of compacted sstables, may not work intended  info 12:45:45,669 heap size: 1073741824/1073741824  info 12:45:45,670 class storage non-heap memory: init = 0(0k) used = 11851900(1 1574k) committed = 12138540(11854k) max = -1(-1k)  info 12:45:45,670 jit code cache non-heap memory: init = 0(0k) used = 8388608(8 192k) committed = 8388608(8192k) max = -1(-1k)  info 12:45:45,670 jit data cache non-heap memory: init = 0(0k) used = 124704(12 1k) committed = 2097152(2048k) max = -1(-1k)  info 12:45:45,672 miscellaneous non-heap storage non-heap memory: init = 0(0k) used = 0(0k) committed = 0(0k) max = -1(-1k)  info 12:45:45,672 java heap heap memory: init = 1073741824(1048576k) used = 163 447504(159616k) committed = 1073741824(1048576k) max = 1073741824(1048576k)  info 12:45:45,672 classpath: c:\downloads\apache-cassandra-2.0.9\conf;c:\downlo ads\apache-cassandra-2.0.9\lib\antlr-3.2.jar;c:\downloads\apache-cassandra-2.0.9 \lib\apache-cassandra-2.0.9.jar;c:\downloads\apache-cassandra-2.0.9\lib\apache-c assandra-clientutil-2.0.9.jar;c:\downloads\apache-cassandra-2.0.9\lib\apache-cas sandra-thrift-2.0.9.jar;c:\downloads\apache-cassandra-2.0.9\lib\commons-cli-1.1. jar;c:\downloads\apache-cassandra-2.0.9\lib\commons-codec-1.2.jar;c:\downloads\a pache-cassandra-2.0.9\lib\commons-lang3-3.1.jar;c:\downloads\apache-cassandra-2. 0.9\lib\compress-lzf-0.8.4.jar;c:\downloads\apache-cassandra-2.0.9\lib\concurren tlinkedhashmap-lru-1.3.jar;c:\downloads\apache-cassandra-2.0.9\lib\disruptor-3.0 .1.jar;c:\downloads\apache-cassandra-2.0.9\lib\guava-15.0.jar;c:\downloads\apach e-cassandra-2.0.9\lib\high-scale-lib-1.1.2.jar;c:\downloads\apache-cassandra-2.0 .9\lib\jackson-core-asl-1.9.2.jar;c:\downloads\apache-cassandra-2.0.9\lib\jackso n-mapper-asl-1.9.2.jar;c:\downloads\apache-cassandra-2.0.9\lib\jamm-0.2.5.jar;c: \downloads\apache-cassandra-2.0.9\lib\jbcrypt-0.3m.jar;c:\downloads\apache-cassa ndra-2.0.9\lib\jline-1.0.jar;c:\downloads\apache-cassandra-2.0.9\lib\json-simple -1.1.jar;c:\downloads\apache-cassandra-2.0.9\lib\libthrift-0.9.1.jar;c:\download s\apache-cassandra-2.0.9\lib\log4j-1.2.16.jar;c:\downloads\apache-cassandra-2.0. 9\lib\lz4-1.2.0.jar;c:\downloads\apache-cassandra-2.0.9\lib\metrics-core-2.2.0.j ar;c:\downloads\apache-cassandra-2.0.9\lib\netty-3.6.6.final.jar;c:\downloads\ap ache-cassandra-2.0.9\lib\reporter-config-2.1.0.jar;c:\downloads\apache-cassandra -2.0.9\lib\servlet-api-2.5-20081211.jar;c:\downloads\apache-cassandra-2.0.9\lib\ slf4j-api-1.7.2.jar;c:\downloads\apache-cassandra-2.0.9\lib\slf4j-log4j12-1.7.2. jar;c:\downloads\apache-cassandra-2.0.9\lib\snakeyaml-1.11.jar;c:\downloads\apac he-cassandra-2.0.9\lib\snappy-java-1.0.5.jar;c:\downloads\apache-cassandra-2.0.9 \lib\snaptree-0.1.jar;c:\downloads\apache-cassandra-2.0.9\lib\super-csv-2.1.0.ja r;c:\downloads\apache-cassandra-2.0.9\lib\thrift-server-internal-only-0.3.3.jar; c:\downloads\apache-cassandra-2.0.9\build\classes\main;c:\downloads\apache-cassa ndra-2.0.9\build\classes\thrift;c:\downloads\apache-cassandra-2.0.9\lib\jamm-0.2 .5.jar;c:\downloads\apache-cassandra-2.0.9\lib\jamm-0.2.5.jar  info 12:45:45,674 jna not found. native methods disabled.  info 12:45:45,685 initializing key cache capacity of 51 mbs.  info 12:45:45,691 scheduling key cache save each 14400 seconds (going sav e keys).  info 12:45:45,692 initializing row cache capacity of 0 mbs  info 12:45:45,697 scheduling row cache save each 0 seconds (going save al l keys).  info 12:45:45,919 initializing system.schema_triggers  info 12:45:45,940 initializing system.compaction_history  info 12:45:45,947 opening \var\lib\cassandra\data\system\compaction_history\sys tem-compaction_history-jb-84 (238 bytes)  info 12:45:45,947 opening \var\lib\cassandra\data\system\compaction_history\sys tem-compaction_history-jb-83 (249 bytes)  info 12:45:45,947 opening \var\lib\cassandra\data\system\compaction_history\sys tem-compaction_history-jb-81 (5586 bytes)  info 12:45:45,947 opening \var\lib\cassandra\data\system\compaction_history\sys tem-compaction_history-jb-82 (249 bytes)  info 12:45:45,969 initializing system.batchlog  info 12:45:45,976 initializing system.sstable_activity  info 12:45:45,979 opening \var\lib\cassandra\data\system\sstable_activity\syste m-sstable_activity-jb-154 (125 bytes)  info 12:45:45,979 opening \var\lib\cassandra\data\system\sstable_activity\syste m-sstable_activity-jb-153 (125 bytes)  info 12:45:45,979 opening \var\lib\cassandra\data\system\sstable_activity\syste m-sstable_activity-jb-155 (207 bytes)  info 12:45:45,979 opening \var\lib\cassandra\data\system\sstable_activity\syste m-sstable_activity-jb-156 (210 bytes)  info 12:45:45,985 reading saved cache \var\lib\cassandra\saved_caches\system-ss table_activity-keycache-b.db  info 12:45:45,990 initializing system.peer_events  info 12:45:45,993 initializing system.compactions_in_progress  info 12:45:45,997 initializing system.hints  info 12:45:46,002 initializing system.schema_keyspaces  info 12:45:46,005 opening \var\lib\cassandra\data\system\schema_keyspaces\syste m-schema_keyspaces-jb-74 (155 bytes)  info 12:45:46,005 opening \var\lib\cassandra\data\system\schema_keyspaces\syste m-schema_keyspaces-jb-75 (155 bytes)  info 12:45:46,005 opening \var\lib\cassandra\data\system\schema_keyspaces\syste m-schema_keyspaces-jb-73 (243 bytes)  info 12:45:46,009 reading saved cache \var\lib\cassandra\saved_caches\system-sc hema_keyspaces-keycache-b.db  info 12:45:46,013 initializing system.range_xfers  info 12:45:46,018 initializing system.schema_columnfamilies  info 12:45:46,021 opening \var\lib\cassandra\data\system\schema_columnfamilies\ system-schema_columnfamilies-jb-73 (844 bytes)  info 12:45:46,021 opening \var\lib\cassandra\data\system\schema_columnfamilies\ system-schema_columnfamilies-jb-71 (5601 bytes)  info 12:45:46,021 opening \var\lib\cassandra\data\system\schema_columnfamilies\ system-schema_columnfamilies-jb-72 (844 bytes)  info 12:45:46,025 reading saved cache \var\lib\cassandra\saved_caches\system-sc hema_columnfamilies-keycache-b.db  info 12:45:46,032 initializing system.nodeidinfo  info 12:45:46,035 initializing system.paxos  info 12:45:46,040 initializing system.schema_columns  info 12:45:46,043 opening \var\lib\cassandra\data\system\schema_columns\system- schema_columns-jb-73 (249 bytes)  info 12:45:46,043 opening \var\lib\cassandra\data\system\schema_columns\system- schema_columns-jb-71 (6436 bytes)  info 12:45:46,043 opening \var\lib\cassandra\data\system\schema_columns\system- schema_columns-jb-72 (857 bytes)  info 12:45:46,047 reading saved cache \var\lib\cassandra\saved_caches\system-sc hema_columns-keycache-b.db  info 12:45:46,052 initializing system.indexinfo  info 12:45:46,054 opening \var\lib\cassandra\data\system\indexinfo\system-index info-jb-1 (80 bytes)  info 12:45:46,054 opening \var\lib\cassandra\data\system\indexinfo\system-index info-jb-2 (81 bytes)  info 12:45:46,059 reading saved cache \var\lib\cassandra\saved_caches\system-in dexinfo-keycache-b.db  info 12:45:46,065 initializing system.peers  info 12:45:46,066 opening \var\lib\cassandra\data\system\peers\system-peers-jb- 1 (30 bytes)  info 12:45:46,073 initializing system.local  info 12:45:46,074 opening \var\lib\cassandra\data\system\local\system-local-jb- 109 (5714 bytes)  info 12:45:46,077 reading saved cache \var\lib\cassandra\saved_caches\system-lo cal-keycache-b.db  info 12:45:46,534 enqueuing flush of memtable-local@1594754130(114/1140 seriali zed/live bytes, 3 ops)  info 12:45:46,535 writing memtable-local@1594754130(114/1140 serialized/live tes, 3 ops)  info 12:45:46,566 completed flushing \var\lib\cassandra\data\system\local\syste m-local-jb-110-data.db (139 bytes) commitlog position replayposition(segment id=1410291946498, position=271)  info 12:45:46,603 initializing nlh.appconfigproperty  info 12:45:46,606 opening \var\lib\cassandra\data\nlh\appconfigproperty\nlh-app configproperty-jb-1 (103970 bytes)  info 12:45:46,606 opening \var\lib\cassandra\data\nlh\appconfigproperty\nlh-app configproperty-jb-2 (235 bytes)  info 12:45:46,612 reading saved cache \var\lib\cassandra\saved_caches\nlh-appco nfigproperty-keycache-b.db  info 12:45:46,622 initializing nlh.appconfigproperty.propertyvalue_index  info 12:45:46,625 opening \var\lib\cassandra\data\nlh\appconfigproperty\nlh-app configproperty.propertyvalue_index-jb-2 (111 bytes)  info 12:45:46,632 submitting index build of appconfigproperty.propertyvalue_ind ex data in sstablereader(path='\var\lib\cassandra\data\nlh\appconfigproperty \nlh-appconfigproperty-jb-2-data.db'), sstablereader(path='\var\lib\cassandra\da ta\nlh\appconfigproperty\nlh-appconfigproperty-jb-1-data.db')  info 12:45:46,635 initializing system_traces.sessions  info 12:45:46,639 initializing system_traces.events  info 12:45:46,640 completed pre-loading (20 keys) key cache.  info 12:45:46,647 replaying \var\lib\cassandra\commitlog\commitlog-3-1410288604 255.log, \var\lib\cassandra\commitlog\commitlog-3-1410289714546.log, \var\lib\ca ssandra\commitlog\commitlog-3-1410290397042.log, \var\lib\cassandra\commitlog\co mmitlog-3-1407395443659.log, \var\lib\cassandra\commitlog\commitlog-3-1407395443 660.log, \var\lib\cassandra\commitlog\commitlog-3-1407395443661.log, \var\lib\ca ssandra\commitlog\commitlog-3-1407395443662.log, \var\lib\cassandra\commitlog\co mmitlog-3-1407395443663.log, \var\lib\cassandra\commitlog\commitlog-3-1407395443 664.log, \var\lib\cassandra\commitlog\commitlog-3-1407395443665.log, \var\lib\ca ssandra\commitlog\commitlog-3-1407395443666.log, \var\lib\cassandra\commitlog\co mmitlog-3-1407395443667.log, \var\lib\cassandra\commitlog\commitlog-3-1407395443 668.log, \var\lib\cassandra\commitlog\commitlog-3-1407395443669.log, \var\lib\ca ssandra\commitlog\commitlog-3-1407395443670.log  info 12:45:46,659 replaying \var\lib\cassandra\commitlog\commitlog-3-1410288604 255.log (cl version 3, messaging version 7)  info 12:45:46,680 enqueuing flush of memtable-appconfigproperty.propertyvalue_i ndex@-1485203954(6398/135518 serialized/live bytes, 152 ops)  info 12:45:46,681 writing memtable-appconfigproperty.propertyvalue_index@-14852 03954(6398/135518 serialized/live bytes, 152 ops)  info 12:45:46,684 finished reading \var\lib\cassandra\commitlog\commitlog-3-141 0288604255.log  info 12:45:46,684 replaying \var\lib\cassandra\commitlog\commitlog-3-1410289714 546.log (cl version 3, messaging version 7)  info 12:45:46,686 finished reading \var\lib\cassandra\commitlog\commitlog-3-141 0289714546.log  info 12:45:46,687 replaying \var\lib\cassandra\commitlog\commitlog-3-1410290397 042.log (cl version 3, messaging version 7)  info 12:45:46,689 finished reading \var\lib\cassandra\commitlog\commitlog-3-141 0290397042.log  info 12:45:46,690 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 659.log (cl version 3, messaging version 7)  info 12:45:46,717 cfs(keyspace='nlh', columnfamily='appconfigproperty.propertyv alue_index') liveratio 18.652078774617067 (just-counted 18.65207877461706 7).  calculation took 49ms 140 cells error 12:45:46,722 exception in thread thread[flushwriter:1,5,main] java.lang.assertionerror: 135518         @ org.apache.cassandra.utils.bytebufferutil.writewithshortlength(bytebu fferutil.java:342)         @ org.apache.cassandra.db.columnindex$builder.maybewriterowheader(colum nindex.java:201)         @ org.apache.cassandra.db.columnindex$builder.add(columnindex.java:188)          @ org.apache.cassandra.db.columnindex$builder.build(columnindex.java:13 3)         @ org.apache.cassandra.io.sstable.sstablewriter.rawappend(sstablewriter .java:202)         @ org.apache.cassandra.io.sstable.sstablewriter.append(sstablewriter.ja va:187)         @ org.apache.cassandra.db.memtable$flushrunnable.writesortedcontents(me mtable.java:397)         @ org.apache.cassandra.db.memtable$flushrunnable.runwith(memtable.java: 350)         @ org.apache.cassandra.io.util.diskawarerunnable.runmaythrow(diskawarer unnable.java:48)         @ org.apache.cassandra.utils.wrappedrunnable.run(wrappedrunnable.java:2 8)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor. java:1156)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor .java:626)         @ java.lang.thread.run(thread.java:780)  info 12:45:46,835 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443659.log  info 12:45:46,836 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 660.log (cl version 3, messaging version 7)  info 12:45:46,836 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443660.log  info 12:45:46,837 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 661.log (cl version 3, messaging version 7)  info 12:45:46,837 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443661.log  info 12:45:46,838 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 662.log (cl version 3, messaging version 7)  info 12:45:46,838 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443662.log  info 12:45:46,839 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 663.log (cl version 3, messaging version 7)  info 12:45:46,839 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443663.log  info 12:45:46,840 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 664.log (cl version 3, messaging version 7)  info 12:45:46,840 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443664.log  info 12:45:46,841 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 665.log (cl version 3, messaging version 7)  info 12:45:46,841 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443665.log  info 12:45:46,841 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 666.log (cl version 3, messaging version 7)  info 12:45:46,842 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443666.log  info 12:45:46,842 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 667.log (cl version 3, messaging version 7)  info 12:45:46,843 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443667.log  info 12:45:46,843 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 668.log (cl version 3, messaging version 7)  info 12:45:46,844 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443668.log  info 12:45:46,844 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 669.log (cl version 3, messaging version 7)  info 12:45:46,844 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443669.log  info 12:45:46,845 replaying \var\lib\cassandra\commitlog\commitlog-3-1407395443 670.log (cl version 3, messaging version 7)  info 12:45:46,845 finished reading \var\lib\cassandra\commitlog\commitlog-3-140 7395443670.log  info 12:45:46,847 enqueuing flush of memtable-compactions_in_progress@158274783 8(213/2130 serialized/live bytes, 10 ops)  info 12:45:46,847 writing memtable-compactions_in_progress@1582747838(213/2130 serialized/live bytes, 10 ops)  info 12:45:46,847 enqueuing flush of memtable-sstable_activity@1201558093(270/2 700 serialized/live bytes, 45 ops)  info 12:45:46,868 completed flushing \var\lib\cassandra\data\system\compactions _in_progress\system-compactions_in_progress-jb-1-data.db (64 bytes) commitlo g position replayposition(segmentid=1410291946498, position=271)  info 12:45:46,869 writing memtable-sstable_activity@1201558093(270/2700 seriali zed/live bytes, 45 ops)  info 12:45:46,888 completed flushing \var\lib\cassandra\data\system\sstable_act ivity\system-sstable_activity-jb-157-data.db (221 bytes) commitlog position replayposition(segmentid=1410291946498, position=271)  info 12:51:46,868 cfs(keyspace='system', columnfamily='sstable_activity') liver atio 14.044444444444444 (just-counted 14.044444444444444).  calculation t ook 0ms 9 cells 

when running cqlsh.bat

c:\downloads\apache-cassandra-2.0.9\bin>cqlsh   1 [main] python 15844 c:\rhcygwin\bin\python.exe: *** fatal error - couldn't allocate heap, win32 error 487, base 0xb00000, top 0xd30000, reserve_size 228   9664, allocsize 2293760, page_const 4096   stack trace:     frame     function  args     0028e4ec  6102796b  (0028e4ec, 00000000, 00000000, 00780000)     0028e7dc  6102796b  (6117ec60, 00008000, 00000000, 61180977)     0028f80c  61004f1b  (611b66cc, 00b00000, 00d30000, 0022f000)     0028f83c  6106e8b3  (7ffeffff, 000000ff, 00000008, 76eefea2)     0028f92c  610c132b  (000000d4, 02000000, 6116a724, 6116a720)     0028f95c  610064c0  (00000000, 76f2217f, 0028f9ec, 00000009)     0028fa1c  6106fc05  (61000000, 00000001, 0028fd24, 00000001)     0028fa3c  76f099a0  (6106f950, 61000000, 00000001, 0028fd24)     0028fb30  76f0d939  (0028fd24, 7efdd000, 7efde000, 76fd206c)     0028fcb0  76f1686c  (0028fd24, 76ed0000, 61a49545, 00000000)     0028fd00  76f15326  (0028fd24, 76ed0000, 00000000, 00000000)     0028fd10  76f09ef9  (0028fd24, 76ed0000, 00000000, 0001002f)     end of stack trace    0 [main] python 22416 fork: child -1 - died waiting longjmp before initialization, retry 0, exit code 0x100, errno 11     connection error: not connect localhost:9160 

update downloaded binary http://cassandra.apache.org/download/ problem still persists. have tried using version 2.0.9 2.0.10 version problem still persists.

i don't have python installed on windows machine.

cassandra.yaml comes unix style paths various directories

 info 12:45:45,372 data files directories: [/var/lib/cassandra/data]  info 12:45:45,373 commit log directory: /var/lib/cassandra/commitlog 

you need change them windows paths cassandra start properly. e.g.

data_file_directories: c:\downloads\apache-cassandra-2.0.9\var\lib\cassandra\data  # commit log commitlog_directory: c:\downloads\apache-cassandra-2.0.9\var\lib\cassandra\commitlog 

search /var/log entries , modify them valid windows paths.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -