0 1 2 3 4 5 6 7 |
$ wget http://mirror.bit.edu.cn/apache/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz $ tar zxf apache-cassandra-3.11.3-bin.tar.gz $ mv apache-cassandra-3.11.3 /opt/ $ ln -s /opt/apache-cassandra-3.11.3 /usr/local/cassandra $ cd /usr/local/cassandra/ $ mkdir {data,commitlog,saved_caches} -p $ ./bin/cassandra -R $ nohup su cassandra -c "/usr/local/cassandra/bin/cassandra -f" |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
$ wget https://github.com/kairosdb/kairosdb/archive/v1.2.2.tar.gz $ tar zxf v1.2.2.tar.gz $ cd kairosdb-1.2.2 $ export CLASSPATH=tools/tablesaw-1.2.6.jar $ java make package $ cp build/kairosdb-1.2.2-1.tar.gz /opt/ $ cd /opt/ $ tar zxf kairosdb-1.2.2-1.tar.gz $ ln -s /opt/kairosdb /usr/local/kairosdb $ /usr/local/kairosdb/bin/kairosdb.sh run $ egrep -v "^#|^$" /usr/local/kairosdb/conf/kairosdb.properties kairosdb.telnetserver.port=4242 kairosdb.telnetserver.address=0.0.0.0 kairosdb.telnetserver.max_command_size=1024 kairosdb.service.telnet=org.kairosdb.core.telnet.TelnetServerModule kairosdb.service.http=org.kairosdb.core.http.WebServletModule kairosdb.service.reporter=org.kairosdb.core.reporting.MetricReportingModule kairosdb.datapoints.factory.long=org.kairosdb.core.datapoints.LongDataPointFactoryImpl kairosdb.datapoints.factory.double=org.kairosdb.core.datapoints.DoubleDataPointFactoryImpl kairosdb.datapoints.factory.string=org.kairosdb.core.datapoints.StringDataPointFactory kairosdb.reporter.schedule=0 */1 * * * ? kairosdb.reporter.ttl=0 kairosdb.jetty.port=8080 kairosdb.jetty.address=0.0.0.0 kairosdb.jetty.static_web_root=webroot kairosdb.service.datastore=org.kairosdb.datastore.h2.H2Module kairosdb.datastore.concurrentQueryThreads=5 kairosdb.datastore.cassandra.cql_host_list=localhost kairosdb.datastore.cassandra.keyspace=kairosdb kairosdb.datastore.cassandra.replication={'class': 'SimpleStrategy','replication_factor' : 1} kairosdb.datastore.cassandra.simultaneous_cql_queries=20 kairosdb.datastore.cassandra.query_reader_threads=6 kairosdb.datastore.cassandra.row_key_cache_size=50000 kairosdb.datastore.cassandra.string_cache_size=50000 kairosdb.datastore.cassandra.read_consistency_level=ONE kairosdb.datastore.cassandra.write_consistency_level=QUORUM kairosdb.datastore.cassandra.connections_per_host.local.core=5 kairosdb.datastore.cassandra.connections_per_host.local.max=100 kairosdb.datastore.cassandra.connections_per_host.remote.core=1 kairosdb.datastore.cassandra.connections_per_host.remote.max=10 kairosdb.datastore.cassandra.max_requests_per_connection.local=128 kairosdb.datastore.cassandra.max_requests_per_connection.remote=128 kairosdb.datastore.cassandra.request_retry_count=1 kairosdb.datastore.cassandra.max_queue_size=500 kairosdb.datastore.cassandra.use_ssl=false kairosdb.datastore.cassandra.align_datapoint_ttl_with_timestamp=false kairosdb.datastore.cassandra.force_default_datapoint_ttl=false kairosdb.datastore.cassandra.create_schema=true kairosdb.datastore.cassandra.connection_timeout=5000 kairosdb.datastore.cassandra.read_timeout=12000 kairosdb.datastore.remote.data_dir=. kairosdb.datastore.remote.remote_url=http://10.92.1.41:8080 kairosdb.datastore.remote.schedule=0 */30 * * * ? kairosdb.datastore.remote.random_delay=0 kairosdb.query_cache.keep_cache_files=false kairosdb.query_cache.cache_file_cleaner_schedule=0 0 12 ? * SUN * kairosdb.log.queries.enable=false kairosdb.log.queries.ttl=86400 kairosdb.log.queries.greater_than=60 kairosdb.queries.aggregate_stats=false kairosdb.service.health=org.kairosdb.core.health.HealthCheckModule kairosdb.health.healthyResponseCode=204 kairosdb.queue_processor.class=org.kairosdb.core.queue.FileQueueProcessor kairosdb.queue_processor.batch_size=200 kairosdb.queue_processor.min_batch_size=100 kairosdb.queue_processor.min_batch_wait=500 kairosdb.queue_processor.memory_queue_size=100000 kairosdb.queue_processor.seconds_till_checkpoint=90 kairosdb.queue_processor.queue_path=queue kairosdb.queue_processor.page_size=52428800 kairosdb.ingest_executor.thread_count=10 kairosdb.host_service_manager.check_delay_time_millseconds=60000 kairosdb.host_service_manager.inactive_time_seconds=300 kairosdb.demo.metric_name=demo_data kairosdb.demo.number_of_rows=100 kairosdb.demo.ttl=0 kairosdb.blast.number_of_rows=1000 kairosdb.blast.duration_seconds=30 kairosdb.blast.metric_name=bla |
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
$ https://github.com/kairosdb/kairosdb/releases/download/v1.2.2/kairosdb-1.2.2-1.tar.gz $ tar zxf kairosdb-1.2.2-1.tar.gz $ mv kairosdb /opt/ $ ln -s /opt/kairosdb /usr/local/kairosdb # cat > /opt/kairosdb/conf/kairosdb.properties < kairosdb.telnetserver.port=4242 > kairosdb.telnetserver.address=0.0.0.0 > kairosdb.telnetserver.max_command_size=1024 > kairosdb.service.telnet=org.kairosdb.core.telnet.TelnetServerModule > kairosdb.service.http=org.kairosdb.core.http.WebServletModule > kairosdb.service.reporter=org.kairosdb.core.reporting.MetricReportingModule > kairosdb.datapoints.factory.long=org.kairosdb.core.datapoints.LongDataPointFactoryImpl > kairosdb.datapoints.factory.double=org.kairosdb.core.datapoints.DoubleDataPointFactoryImpl > kairosdb.datapoints.factory.string=org.kairosdb.core.datapoints.StringDataPointFactory > kairosdb.reporter.schedule=0 */1 * * * ? > kairosdb.reporter.ttl=0 > kairosdb.jetty.port=8080 > kairosdb.jetty.address=0.0.0.0 > kairosdb.jetty.static_web_root=webroot > kairosdb.service.datastore=org.kairosdb.datastore.h2.H2Module > kairosdb.datastore.concurrentQueryThreads=5 > kairosdb.datastore.h2.database_path=build/h2db > kairosdb.datastore.cassandra.cql_host_list=localhost > kairosdb.datastore.cassandra.keyspace=kairosdb > kairosdb.datastore.cassandra.replication={'class': 'SimpleStrategy','replication_factor' : 1} > kairosdb.datastore.cassandra.simultaneous_cql_queries=20 > kairosdb.datastore.cassandra.query_reader_threads=6 > kairosdb.datastore.cassandra.row_key_cache_size=50000 > kairosdb.datastore.cassandra.string_cache_size=50000 > kairosdb.datastore.cassandra.read_consistency_level=ONE > kairosdb.datastore.cassandra.write_consistency_level=QUORUM > kairosdb.datastore.cassandra.connections_per_host.local.core=5 > kairosdb.datastore.cassandra.connections_per_host.local.max=100 > kairosdb.datastore.cassandra.connections_per_host.remote.core=1 > kairosdb.datastore.cassandra.connections_per_host.remote.max=10 > kairosdb.datastore.cassandra.max_requests_per_connection.local=128 > kairosdb.datastore.cassandra.max_requests_per_connection.remote=128 > kairosdb.datastore.cassandra.max_queue_size=500 > kairosdb.datastore.cassandra.use_ssl=false > kairosdb.datastore.cassandra.align_datapoint_ttl_with_timestamp=false > kairosdb.datastore.cassandra.force_default_datapoint_ttl=false > kairosdb.datastore.remote.data_dir=. > kairosdb.datastore.remote.remote_url=http://192.168.0.150:8080 > kairosdb.datastore.remote.schedule=0 */30 * * * ? > kairosdb.datastore.remote.random_delay=0 > kairosdb.query_cache.keep_cache_files=false > kairosdb.query_cache.cache_file_cleaner_schedule=0 0 12 ? * SUN * > kairosdb.log.queries.enable=false > kairosdb.log.queries.ttl=86400 > kairosdb.log.queries.greater_than=60 > kairosdb.queries.aggregate_stats=false > kairosdb.service.health=org.kairosdb.core.health.HealthCheckModule > kairosdb.health.healthyResponseCode=204 > kairosdb.queue_processor.class=org.kairosdb.core.queue.FileQueueProcessor > kairosdb.queue_processor.batch_size=200 > kairosdb.queue_processor.min_batch_size=100 > kairosdb.queue_processor.min_batch_wait=500 > kairosdb.queue_processor.memory_queue_size=100000 > kairosdb.queue_processor.seconds_till_checkpoint=90 > kairosdb.queue_processor.queue_path=queue > kairosdb.queue_processor.page_size=52428800 > kairosdb.ingest_executor.thread_count=10 > kairosdb.host_service_manager.check_delay_time_millseconds=60000 > kairosdb.host_service_manager.inactive_time_seconds=300 > kairosdb.demo.metric_name=demo_data > kairosdb.demo.number_of_rows=100 > kairosdb.demo.ttl=0 > kairosdb.blast.number_of_rows=1000 > kairosdb.blast.duration_seconds=30 > kairosdb.blast.metric_name=blast_load > kairosdb.blast.ttl=600 > EOF |
参考文档:
1:https://blog.imdst.com/centos-7-an-zhuang-bu-shu-cassandra/SourceByrd's Weblog-https://note.t4x.org/basic/kairosdb-cassandra-config/ SourceByrd's Weblog-https://note.t4x.org/basic/kairosdb-cassandra-config/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!