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

Can't run cassanfra-cli as a role user - getting permission denied

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.6
    • Legacy/Tools
    • None
    • centos

    Description

      Can't run cassandra-cli as a role user this is what is returning:

      [bin]$ ./cassandra-cli --host localhost --port 9160
      Connected to localhost/9160
      Exception in thread "main" java.io.FileNotFoundException: /var/home/app/.cassandra.history (Permission denied)
      at java.io.FileOutputStream.open(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
      at java.io.FileWriter.<init>(FileWriter.java:73)
      at jline.History.setHistoryFile(History.java:45)
      at jline.History.<init>(History.java:37)
      at org.apache.cassandra.cli.CliMain.main(CliMain.java:165)

      I don't have acess to the roles home dir. Is there a way to specify where to place .cassandra.history? I can run cassandra-cli fine as myself but that is not the prefered way.

      Attachments

        Activity

          People

            urandom Eric Evans
            devalias Michael
            Eric Evans
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: