宇宙行きたい
 
 



 









id:shot6  Cassandra Ubuntu !

 


http://gihyo.jp/dev/serial/01/cassandra/0002
 Windows  Ubuntu 







$ cd ~/opt
$ wget http://ftp.kddilabs.jp/infosystems/apache/cassandra/0.6.1/apache-cassandra-0.6.1-bin.tar.gz 
$ tar zxvf apache-cassandra-0.6.1-bin.tar.gz



$ ln -s ~/opt/apache-cassandra-0.6.1 ~/opt/cassandra



export JAVA_HOME=/usr/lib/jvm/java-6-sun/
export CASSANDRA_HOME=/home/yoshiori/opt/cassandra
export CASSANDRA_CONF=$CASSANDRA_HOME/conf
export CASSANDRA_MAIN=org.apache.cassandra.thrift.CassandraDaemon
$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun/
echo $CASSANDRA_HOME
/home/yoshiori/opt/cassandra
$ echo $CASSANDRA_CONF
/home/yoshiori/opt/cassandra/conf
$ echo $CASSANDRA_MAIN
org.apache.cassandra.thrift.CassandraDaemon



 
$ emacs ~/opt/cassandra/conf/storage-conf.xml
  <CommitLogDirectory>/var/lib/cassandra/commitlog</CommitLogDirectory>
  <DataFileDirectories>
      <DataFileDirectory>/var/lib/cassandra/data</DataFileDirectory>
  </DataFileDirectories>


  <CommitLogDirectory>/home/yoshiori/opt/cassandra/commitlog</CommitLogDirectory>
  <DataFileDirectories>
      <DataFileDirectory>/home/yoshiori/opt/cassandra/data</DataFileDirectory>
  </DataFileDirectories>


JMX 

*nix  cassandra.in.sh 
$ emacs ~/opt/cassandra/bin/cassandra.in.sh
# Arguments to pass to the JVM
JVM_OPTS=" \
        -ea \
        -Xms128M \
        -Xmx1G \
        -XX:TargetSurvivorRatio=90 \
        -XX:+AggressiveOpts \
        -XX:+UseParNewGC \
        -XX:+UseConcMarkSweepGC \
        -XX:+CMSParallelRemarkEnabled \
        -XX:+HeapDumpOnOutOfMemoryError \
        -XX:SurvivorRatio=128 \
        -XX:MaxTenuringThreshold=0 \
        -Dcom.sun.management.jmxremote.port=8080 \
        -Dcom.sun.management.jmxremote.ssl=false \
        -Dcom.sun.management.jmxremote.authenticate=false"
$ emacs ~/opt/cassandra/bin/cassandra.in.sh

com.sun.management.jmxremote.port 
JVM_OPTS=" \
        -ea \
        -Xms128M \
        -Xmx1G \
        -XX:TargetSurvivorRatio=90 \
        -XX:+AggressiveOpts \
        -XX:+UseParNewGC \
        -XX:+UseConcMarkSweepGC \
        -XX:+CMSParallelRemarkEnabled \
        -XX:+HeapDumpOnOutOfMemoryError \
        -XX:SurvivorRatio=128 \
        -XX:MaxTenuringThreshold=0 \
        -Dcom.sun.management.jmxremote.port=9081 \
        -Dcom.sun.management.jmxremote.ssl=false \
        -Dcom.sun.management.jmxremote.authenticate=false"
$ emacs ~/opt/cassandra/bin/cassandra.in.sh

 







*nix  bin/cassandra 
 -f  foreground 


$ ./cassandra -f
 INFO 18:06:42,809 Auto DiskAccessMode determined to be standard
 INFO 18:06:43,033 Sampling index for /home/yoshiori/opt/cassandra/data/Keyspace1/Standard2-1-Data.db
 INFO 18:06:43,054 Sampling index for /home/yoshiori/opt/cassandra/data/system/LocationInfo-1-Data.db
 INFO 18:06:43,057 Replaying /home/yoshiori/opt/cassandra/commitlog/CommitLog-1273049112963.log
 INFO 18:06:43,084 Creating new commitlog segment /home/yoshiori/opt/cassandra/commitlog/CommitLog-1273050403084.log
 INFO 18:06:43,100 LocationInfo has reached its threshold; switching in a fresh Memtable at CommitLogContext(file='/home/yoshiori/opt/cassandra/commitlog/CommitLog-1273050403084.log', position=121)
 INFO 18:06:43,101 Enqueuing flush of Memtable(LocationInfo)@1677625
 INFO 18:06:43,105 Writing Memtable(LocationInfo)@1677625
 INFO 18:06:43,160 Completed flushing /home/yoshiori/opt/cassandra/data/system/LocationInfo-2-Data.db
 INFO 18:06:43,167 Log replay complete
 INFO 18:06:43,198 Saved Token found: 111493218491592662932686463489543037999
 INFO 18:06:43,199 Saved ClusterName found: Test Cluster
 INFO 18:06:43,207 Starting up server gossip
 INFO 18:06:43,247 Binding thrift service to localhost/127.0.0.1:9160
 INFO 18:06:43,251 Cassandra starting up...

!!
!!!





*nix  bin/cassandra-cli 
$ ./cassandra-cli
Welcome to cassandra CLI.

Type 'help' or '?' for help. Type 'quit' or 'exit' to quit.
cassandra>

id:shot6 


shot6++

 




Yoshiori      










 




 






 α   
 <project> <modelVersion>4.0.0</modelVersion> <groupId>org.yoshiori</groupId> <artifactId></artifactid></project>
 









 









 

id:Yoshiori id:Yoshiori  
       


 




 





 



 

 

 

Pro  





 




 



WEB+DB PRESS稿  



 



Rubysystemd  



JavaUUID.compareTo  






 




   
2024  

2024 / 6  

2024 / 4  

2024 / 3  

2024 / 2  

2024 / 1  




   
2023  

2023 / 12  

2023 / 6  

2023 / 4  

2023 / 3  




   
2022  

2022 / 11  

2022 / 10  

2022 / 6  

2022 / 5  

2022 / 2  

2022 / 1  




   
2021  

2021 / 12  

2021 / 11  

2021 / 9  

2021 / 8  

2021 / 7  

2021 / 6  

2021 / 5  

2021 / 4  

2021 / 2  

2021 / 1  




   
2020  

2020 / 12  

2020 / 10  

2020 / 9  

2020 / 8  

2020 / 5  




   
2018  

2018 / 8  

2018 / 5  

2018 / 4  




   
2017  

2017 / 10  

2017 / 2  




   
2015  

2015 / 12  

2015 / 7  

2015 / 6  

2015 / 5  

2015 / 4  

2015 / 3  

2015 / 2  




   
2014  

2014 / 12  

2014 / 10  

2014 / 9  




   
2012  

2012 / 12  

2012 / 8  

2012 / 7  

2012 / 6  

2012 / 5  

2012 / 4  

2012 / 3  

2012 / 2  

2012 / 1  




   
2011  

2011 / 12  

2011 / 11  

2011 / 10  

2011 / 8  

2011 / 7  

2011 / 6  

2011 / 5  

2011 / 4  

2011 / 3  

2011 / 1  




   
2010  

2010 / 12  

2010 / 11  

2010 / 10  

2010 / 9  

2010 / 8  

2010 / 6  

2010 / 5  

2010 / 4  

2010 / 3  

2010 / 2  

2010 / 1  




   
2009  

2009 / 12  

2009 / 11  

2009 / 10  

2009 / 9  

2009 / 8  

2009 / 7  

2009 / 6  

2009 / 5  

2009 / 4  

2009 / 3  

2009 / 2  

2009 / 1  




   
2008  

2008 / 12  

2008 / 11  

2008 / 10  

2008 / 9  

2008 / 8  

2008 / 7  

2008 / 6  

2008 / 5  

2008 / 4  

2008 / 3  

2008 / 2  

2008 / 1  




   
2007  

2007 / 12  

2007 / 11  

2007 / 10  

2007 / 9  

2007 / 8  

2007 / 7  

2007 / 6  

2007 / 5  

2007 / 4  

2007 / 3  

2007 / 2  

2007 / 1  




   
2006  

2006 / 12  

2006 / 11  

2006 / 10  

2006 / 9  

2006 / 8  

2006 / 7  

2006 / 6  

2006 / 5  

2006 / 3  

2006 / 2  

2006 / 1  




   
2005  

2005 / 10  

2005 / 9  

2005 / 8  

2005 / 7  

2005 / 6  

2005 / 5  

2005 / 4  

2005 / 3  

2005 / 2  

2005 / 1  




   
2004  

2004 / 12  

2004 / 11  

2004 / 10  

2004 / 9  

2004 / 8  

2004 / 7  

2004 / 6  

2004 / 5  













Yoshiori使


 

 




宇宙行きたい  

Powered by Hatena Blog  |