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

Set a variable for cassandra.logdir instead hardcoding in bin/cassandra.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • Packaging
    • Low

    Description

      Hello,
      I think we need a way to overwrite value of "cassandra.logdir", that in case the user needs to change logdir path.

      Since it's hard-coded inside "/usr/sbin/cassandra" (as "/var/log/cassandra" or "$CASSANDRA_HOME/logs") and also it's defined after includes, so it should be as variable, just like "cassandra.storagedir".

      Something like that:

      cassandra_parms="$cassandra_parms -Dcassandra.logdir=$cassandra_logdir"
      cassandra_parms="$cassandra_parms -Dcassandra.storagedir=$cassandra_storagedir"
      

      And as in Debian, we can set "/var/log/cassandra" as default value somewhere.
      Thanks

      Attachments

        1. cassandra_logdir_path_v.01.patch
          0.5 kB
          Ahmed AbouZaid

        Activity

          People

            Unassigned Unassigned
            aabouzaid Ahmed AbouZaid
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified