Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-2036

cassandra-topology.properties cannot reside inside jar file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.7.1
    • None
    • None
    • Normal

    Description

      PropertyFileSnitch cannot load the cassandra-topology.properties if it is located inside a jar file.

      At startup cassandra will print and exit
      [ERROR] 20:50:01 Fatal error: Unable to read cassandra-topology.properties
      Bad configuration; unable to start server

      It seems FBUtilities.resourceToFIle(..) can only be used for loading plain files.

      The attached patch solves the problem. It uses the standard java approach for loading a resource stream...

      Attachments

        1. CASSANDRA-2036.patch
          2 kB
          Michael Semb Wever
        2. CASSANDRA-2036.patch
          1 kB
          Michael Semb Wever

        Activity

          People

            mck Michael Semb Wever
            mck Michael Semb Wever
            Michael Semb Wever
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: