[
https://issues.apache.org/jira/browse/CASSANDRA-16051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17184999#comment-17184999
]
Berenguer Blasi commented on CASSANDRA-16051:
-
sstablemetadata works correctly as far as I can see on latest trunk:
{noformat}
tools/bin/sstablemetadata
test/data/legacy-sstables/ma/legacy_tables/legacy_ma_simple/ma-1-big-Data.db
SSTable:
/tmp/test/test/data/legacy-sstables/ma/legacy_tables/legacy_ma_simple/ma-1-big
Partitioner: org.apache.cassandra.dht.ByteOrderedPartitioner
Bloom Filter FP chance: 0.01
Minimum timestamp: 1445008632854000 (10/16/2015 17:17:12)
Maximum timestamp: 1445008633275000 (10/16/2015 17:17:13)
SSTable min local deletion time: 2147483647 (no tombstones)
SSTable max local deletion time: 2147483647 (no tombstones)
Compressor: org.apache.cassandra.io.compress.LZ4Compressor
Compression ratio: -1.0
TTL min: 0
TTL max: 0
First token: 30 (0)
Last token: 34 (4)
minClusteringValues: []
maxClusteringValues: []
Estimated droppable tombstones: 0.0
SSTable Level: 0
Repaired at: 0
Pending repair: --
Replay positions covered: {CommitLogPosition(segmentId=-1,
position=0)=CommitLogPosition(segmentId=1445008629850, position=682736)}
totalColumnsSet: 5
totalRows: 5
Estimated tombstone drop times:
Drop Time| Count (%) Histogram
2147483646 (01/19/2038 04:14:06) | 5 (100) OO
Percentiles
50th 2395318855 (11/26/2045 15:20:55)
75th 2395318855 (11/26/2045 15:20:55)
95th 2395318855 (11/26/2045 15:20:55)
98th 2395318855 (11/26/2045 15:20:55)
99th 2395318855 (11/26/2045 15:20:55)
Min 1996099047 (04/03/2033 01:57:27)
Max 2395318855 (11/26/2045 15:20:55)
Partition Size:
Size (bytes) | Count (%) Histogram
35 (35 B)| 5 (100) OO
Percentiles
50th 35 (35 B)
75th 35 (35 B)
95th 35 (35 B)
98th 35 (35 B)
99th 35 (35 B)
Min 30 (30 B)
Max 35 (35 B)
Column Count:
Columns | Count (%) Histogram
1 | 5 (100) OO
Percentiles
50th 1
75th 1
95th 1
98th 1
99th 1
Min 0
Max 1
Estimated cardinality: 5
EncodingStats minTTL: 0
EncodingStats minLocalDeletionTime: 144288 (09/22/2015 02:00:00)
EncodingStats minTimestamp: 1445008632854000 (10/16/2015 17:17:12)
KeyType: org.apache.cassandra.db.marshal.UTF8Type
ClusteringTypes: []
StaticColumns:
RegularColumns: val:org.apache.cassandra.db.marshal.UTF8Type
IsTransient: false
{noformat}
Also I have been running it lately often as part of CASSANDRA-16016 without
problems. I will close as I can't seem to repro but feel free to correct me and
reopen if it's still a problem. Some indications on how to repro would help.
Thx in advance.
> sstablemetadata line 44: : command not found
>
>
> Key: CASSANDRA-16051
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16051
> Project: Cassandra
> Issue Type: Bug
> Components: Tool/sstable
>Reporter: Arvinder Singh
>Assignee: Berenguer Blasi
>Priority: Normal
> Fix For: 4.0-beta2
>
>
> sstablemetadata shipped with
> [4.0-beta|https://issues.apache.org/jira/issues/?jql=project+%3D+CASSANDRA+AND+fixVersion+%3D+4.0-beta]
> is missing the code "#Use JAVA_HOME if set, otherwise look for java in PATH"
> and report error:
> sstablemetadata: line 44: : command not found
>
> The fix is to merge below code from 3.x:
> ^# Use JAVA_HOME if set, otherwise look for java in PATH^
> ^if [ -x "$JAVA_HOME/bin/java" ]; then^
> ^JAVA="$JAVA_HOME/bin/java"^
> ^else^
> ^JAVA="`which java`"^
> ^fi^
> ^if [ "x$JAVA" = "x" ]; then^
> ^echo "Java executable not found (hint: set JAVA_HOME)" >&2^
> ^exit 1^
> ^fi^
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
-
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org