$ onionshare go.sh Onionshare 1.3.2 https://onionshare.org/ Connecting to the Tor network: 100% - Done Configuring onion service on port 17620. Starting ephemeral Tor onion service and awaiting publication Settings saved to /home/xxx/.config/onionshare/onionshare.json Preparing files to share. * Serving Flask app "onionshare.web" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: off * Running on http://127.0.0.1:17620/ (Press CTRL+C to quit) Give this address to the person you're sending the file to: http://huq64ocyu666ecom.onion/negligee-easing Press Ctrl-C to stop server
$ java -jar jmxterm-1.0.1-uber.jar -h \[USAGE\] jmxterm <OPTIONS> \[DESCRIPTION\] Main executable of JMX terminal CLI tool \[OPTIONS\] -a --appendtooutput With this flag, the outputfile is preserved and content is appended to it -e --exitonfailure With this flag, terminal exits for any Exception -h --help Show usage ofthis command line -i --input <value> Input script file. There can only be one input file. "stdin" is the default value which means console input -n --noninteract Non interactive mode. Use this mode if input doesn't come from human or jmxterm is embedded -o --output <value> Output file, stdout or stderr. Default value is stdout -p --password <value> Password for user/password authentication -s --sslrmiregistry Whether the server's RMI registry is protected with SSL/TLS -l --url <value> Location of MBean service. It can be <host>:<port> or full service URL. -u --user <value> User name for user/password authentication -v --verbose <value> Verbose level, could be silentbriefverbose. Default value is brief \[NOTE\] Without any option, this command opens an interactive command line based console. With a given input file, commands in file will be executed and process ends after file is processed
$ java -jar jmxterm-1.0.1-uber.jar Welcome to JMX terminal. Type "help"for available commands. $>help #following commands are available to use: about - Display about page bean - Display or set current selected MBean. beans - List available beans under a domain or all domains bye - Terminate console and exit close - Close current JMX connection domain - Display or set current selected domain. domains - List all available domain names exit - Terminate console and exit get - Get value of MBean attribute(s) help - Display available commands or usage of a command info - Display detail information about an MBean jvms - List all running local JVM processes open - Open JMX session or display current connection option - Set options for command session quit - Terminate console and exit run - Invoke an MBean operation set - Set value of an MBean attribute subscribe - Subscribe to the notifications of a bean unsubscribe - Unsubscribe the notifications of an earlier subscribed bean watch - Watch the value of one MBean attribute constantly $>help get \[USAGE\] get <OPTIONS> <ARGS> \[DESCRIPTION\] Get value of MBean attribute(s) \[OPTIONS\] -b --bean <value> MBean name where the attribute is. Optional if bean has been set -l --delimiter <value> Sets an optional delimiter to be printed after the value -d --domain <value> Domain of bean, optional -h --help Display usage -i --info Show detail information of each attribute -q --quots Quotation marks around value -s --simple Print simple expression of value without full expression -n --singleLine Prints result without a newline - default is false \[ARGS\] <attr>... Name of attributes to select \[NOTE\] * stands for all attributes. eg. get Attribute1 Attribute2 or get *
ERROR \[CompactionExecutor:41367\] 2019-06-2211:22:02,063 CassandraDaemon.java:185 - Exception in thread Thread\[CompactionExecutor:41367,1,main\] java.lang.RuntimeException: Not enough space for compaction, estimated sstables = 1, expected write size = 678107716200 at org.apache.cassandra.db.compaction.CompactionTask.checkAvailableDiskSpace(CompactionTask.java:275) ~\[apache-cassandra-2.2.6.jar:2.2.6\] at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:118) ~\[apache-cassandra-2.2.6.jar:2.2.6\] at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~\[apache-cassandra-2.2.6.jar:2.2.6\] at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:74) ~\[apache-cassandra-2.2.6.jar:2.2.6\] at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) ~\[apache-cassandra-2.2.6.jar:2.2.6\] at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionCandidate.run(CompactionManager.java:256) ~\[apache-cassandra-2.2.6.jar:2.2.6\] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~\[na:1.8.0_66\] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~\[na:1.8.0_66\] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~\[na:1.8.0_66\] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) \[na:1.8.0_66\] at java.lang.Thread.run(Thread.java:745) \[na:1.8.0_66\]
“SizeTieredCompactionStrategy Compaction requires a lot of temporary space: In worst case, we need to merge all existing SSTables into one, so we need half the disk to be empty to write the output file and only later can delete the old SSTables”
cqlsh> desc TABLE image; CREATE TABLE reis.image ( id text PRIMARY KEY, content blob, name text ) WITH bloom_filter_fp_chance = 0.01 AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}' AND comment = '' AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'} AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'} AND dclocal_read_repair_chance = 0.1 AND default_time_to_live = 0 AND gc_grace_seconds = 864000 AND max_index_interval = 2048 AND memtable_flush_period_in_ms = 0 AND min_index_interval = 128 AND read_repair_chance = 0.0 AND speculative_retry = '99.0PERCENTILE';
果然是SizeTieredCompactionStrategy
修改compaction策略
1
cqlsh>ALTER TABLE image WITH compaction = { 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy','sstable_size_in_mb':'200'}
official documnet: “While a merge of several SSTables is ongoing, the request path continues to read the old SSTables. Ideally, the old SSTables would be deleted as soon as the merge is done, but we must not delete an SSTable that still has in-progress reads.”
CREATE TABLE reis.image ( id text PRIMARY KEY, content blob, name text ) WITH compaction = { 'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy'}
$ telnet 192.168.0.861234 Trying 192.168.0.86... Connected to 192.168.0.86. Escape character is '^\]'. QEMU 3.1.0 monitor - type 'help'for more information (qemu)