Hi,
Try this and check the yaml file path: strace -f -e open nodetool
upgradesstables 2>&1 | grep cassandra.yaml
How C* is installed (package, tarball)? Other nodetool commands run fine?Also,
did you try offline SSTable upgrade with the sstableupgrade tool?
Best,
Romain
Le Vendredi 12 août 2016 15h31, Amit Singh F <[email protected]> a
écrit :
<!--#yiv2425870223 _filtered #yiv2425870223 {font-family:Calibri;panose-1:2
15 5 2 2 2 4 3 2 4;}#yiv2425870223 #yiv2425870223 p.yiv2425870223MsoNormal,
#yiv2425870223 li.yiv2425870223MsoNormal, #yiv2425870223
div.yiv2425870223MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri",
"sans-serif";}#yiv2425870223 a:link, #yiv2425870223
span.yiv2425870223MsoHyperlink
{color:blue;text-decoration:underline;}#yiv2425870223 a:visited, #yiv2425870223
span.yiv2425870223MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}#yiv2425870223
span.yiv2425870223EmailStyle17 {font-family:"Calibri",
"sans-serif";color:windowtext;}#yiv2425870223 .yiv2425870223MsoChpDefault
{font-family:"Calibri", "sans-serif";} _filtered #yiv2425870223 {margin:1.0in
1.0in 1.0in 1.0in;}#yiv2425870223 div.yiv2425870223WordSection1 {}-->Hi All,
We are in process of migrating from 2.0.14 to 2.1.13 and we are able to
successfully install binaries and make Cassandra 2.1.13 running up and fine.
But issue comes up when we try to runnodetool upgradesstables , it gets
finished in few seconds only which means it does not find any old sstables
which needs to be upgraded but when I locate sstables on disk , I can see them
in old state. Also when I try running sstableupgrade command below error is
thrown: org.apache.cassandra.exceptions.ConfigurationException: Expecting URI
in variable: [cassandra.config]. Please prefix the file with file:/// for
local files or file://<server>/ for remote files. Aborting. 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:73)
~[apache-cassandra-2.1.13.jar:2.1.13] at
org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84)
~[apache-cassandra-2.1.13.jar:2.1.13] at
org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:161)
~[apache-cassandra-2.1.13.jar:2.1.13] at
org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:136)
~[apache-cassandra-2.1.13.jar:2.1.13] at
org.apache.cassandra.tools.StandaloneUpgrader.main(StandaloneUpgrader.java:52)
[apache-cassandra-2.1.13.jar:2.1.13] Expecting URI in variable:
[cassandra.config]. Please prefix the file with file:/// for local files or
file://<server>/ for remote files. Aborting. If you are executing this from an
external tool, it needs to set Config.setClientMode(true) to avoid loading
configuration. Fatal configuration error; unable to start. See log for
stacktrace. Also I debug in code little bit and this error is due to invalid
path of Cassandra.yaml, but I can skip this as my Cassandra node in UN state.
So can anybody provide me some pointers to look into this. Regards Amit
Chowdhery