cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10132) sstablerepairedset throws exception while loading metadata
Date Mon, 24 Aug 2015 13:37:45 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14709295#comment-14709295
] 

Sylvain Lebresne commented on CASSANDRA-10132:
----------------------------------------------

[~iamaleksey] Can you comment on Yuki's error above?

> sstablerepairedset throws exception while loading metadata
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-10132
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10132
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Yuki Morishita
>            Assignee: Yuki Morishita
>             Fix For: 3.0.0 rc1
>
>
> {{sstablerepairedset}} displays exception trying to load schema through DatabaseDescriptor.
> {code}
> $ ./tools/bin/sstablerepairedset --really-set --is-repaired ~/.ccm/3.0/node1/data/keyspace1/standard1-2c0b226046aa11e596f58106a0d438e8/ma-1-big-Data.db
> 14:42:36.714 [main] DEBUG o.a.c.i.s.m.MetadataSerializer - Mutating /home/yuki/.ccm/3.0/node1/data/keyspace1/standard1-2c0b226046aa11e596f58106a0d438e8/ma-1-big-Statistics.db
to repairedAt time 1440013248000
> 14:42:36.721 [main] DEBUG o.a.c.i.s.m.MetadataSerializer - Load metadata for /home/yuki/.ccm/3.0/node1/data/keyspace1/standard1-2c0b226046aa11e596f58106a0d438e8/ma-1-big
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:123)
>         at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:110)
>         at org.apache.cassandra.utils.memory.BufferPool.<clinit>(BufferPool.java:51)
>         at org.apache.cassandra.io.util.RandomAccessReader.allocateBuffer(RandomAccessReader.java:76)
>         at org.apache.cassandra.io.util.RandomAccessReader.<init>(RandomAccessReader.java:58)
>         at org.apache.cassandra.io.util.RandomAccessReader$RandomAccessReaderWithChannel.<init>(RandomAccessReader.java:89)
>         at org.apache.cassandra.io.util.RandomAccessReader.open(RandomAccessReader.java:108)
>         at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.deserialize(MetadataSerializer.java:91)
>         at org.apache.cassandra.io.sstable.metadata.MetadataSerializer.mutateRepairedAt(MetadataSerializer.java:143)
>         at org.apache.cassandra.tools.SSTableRepairedAtSetter.main(SSTableRepairedAtSetter.java:86)
> Caused by: org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable:
[cassandra.config]. Found[cassandra.yaml]. Please prefix the file with [file:///] for local
files and [file://<server>/] for remote files. If you are executing this from an external
tool, it needs to set Config.setClientMode(true) to avoid loading configuration.
>         at org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:78)
>         at org.apache.cassandra.config.YamlConfigurationLoader.<clinit>(YamlConfigurationLoader.java:92)
>         ... 10 more
> {code}
> MetadataSerializer uses RandomAccessReader which allocates buffer through BufferPool.
BufferPool gets its settings from DatabaseDescriptor and it won't work in offline tool.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message