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.

Google Groups | Amit Singh F | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    upgradesstables throws error when migrating from 2.0.14 to 2.1.13

    Google Groups | 7 months ago | Amit Singh F
    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.

    Root Cause Analysis

    1. 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()
    2. org.apache.cassandra
      StandaloneUpgrader.main
      1. org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:73)[apache-cassandra-2.1.13.jar:2.1.13]
      2. org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84)[apache-cassandra-2.1.13.jar:2.1.13]
      3. org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:161)[apache-cassandra-2.1.13.jar:2.1.13]
      4. org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:136)[apache-cassandra-2.1.13.jar:2.1.13]
      5. org.apache.cassandra.tools.StandaloneUpgrader.main(StandaloneUpgrader.java:52)[apache-cassandra-2.1.13.jar:2.1.13]
      5 frames