You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael (JIRA)" <ji...@apache.org> on 2010/03/05 20:40:27 UTC
[jira] Created: (CASSANDRA-854) Can't run cassanfra-cli as a role
user - getting permission denied
Can't run cassanfra-cli as a role user - getting permission denied
------------------------------------------------------------------
Key: CASSANDRA-854
URL: https://issues.apache.org/jira/browse/CASSANDRA-854
Project: Cassandra
Issue Type: Bug
Components: Core
Affects Versions: 0.5
Environment: centos
Reporter: Michael
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-854) Can't run cassanfra-cli as a role
user - getting permission denied
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841997#action_12841997 ]
Jonathan Ellis commented on CASSANDRA-854:
------------------------------------------
+1
> Can't run cassanfra-cli as a role user - getting permission denied
> ------------------------------------------------------------------
>
> Key: CASSANDRA-854
> URL: https://issues.apache.org/jira/browse/CASSANDRA-854
> Project: Cassandra
> Issue Type: Wish
> Components: Tools
> Affects Versions: 0.5
> Environment: centos
> Reporter: Michael
> Assignee: Eric Evans
> Priority: Trivial
> Fix For: 0.6
>
> Attachments: v1-0001-CASSANDRA-854-make-failure-to-open-cli-history-non-fat.txt
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-854) Can't run cassanfra-cli as a role
user - getting permission denied
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-854:
-------------------------------------
Component/s: (was: Core)
Tools
Priority: Trivial (was: Major)
Issue Type: Wish (was: Bug)
> Can't run cassanfra-cli as a role user - getting permission denied
> ------------------------------------------------------------------
>
> Key: CASSANDRA-854
> URL: https://issues.apache.org/jira/browse/CASSANDRA-854
> Project: Cassandra
> Issue Type: Wish
> Components: Tools
> Affects Versions: 0.5
> Environment: centos
> Reporter: Michael
> Priority: Trivial
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CASSANDRA-854) Can't run cassanfra-cli as a role
user - getting permission denied
Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Evans reassigned CASSANDRA-854:
------------------------------------
Assignee: Eric Evans
> Can't run cassanfra-cli as a role user - getting permission denied
> ------------------------------------------------------------------
>
> Key: CASSANDRA-854
> URL: https://issues.apache.org/jira/browse/CASSANDRA-854
> Project: Cassandra
> Issue Type: Wish
> Components: Tools
> Affects Versions: 0.5
> Environment: centos
> Reporter: Michael
> Assignee: Eric Evans
> Priority: Trivial
> Attachments: v1-0001-CASSANDRA-854-make-failure-to-open-cli-history-non-fat.txt
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-854) Can't run cassanfra-cli as a role
user - getting permission denied
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841993#action_12841993 ]
Jonathan Ellis commented on CASSANDRA-854:
------------------------------------------
If you want to contribute a patch to configure where to put history, I suppose that's fine, but really running it as yourself is the sanest thing to do.
> Can't run cassanfra-cli as a role user - getting permission denied
> ------------------------------------------------------------------
>
> Key: CASSANDRA-854
> URL: https://issues.apache.org/jira/browse/CASSANDRA-854
> Project: Cassandra
> Issue Type: Wish
> Components: Tools
> Affects Versions: 0.5
> Environment: centos
> Reporter: Michael
> Priority: Trivial
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-854) Can't run cassanfra-cli as a role
user - getting permission denied
Posted by "Eric Evans (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Evans updated CASSANDRA-854:
---------------------------------
Attachment: v1-0001-CASSANDRA-854-make-failure-to-open-cli-history-non-fat.txt
> Can't run cassanfra-cli as a role user - getting permission denied
> ------------------------------------------------------------------
>
> Key: CASSANDRA-854
> URL: https://issues.apache.org/jira/browse/CASSANDRA-854
> Project: Cassandra
> Issue Type: Wish
> Components: Tools
> Affects Versions: 0.5
> Environment: centos
> Reporter: Michael
> Priority: Trivial
> Attachments: v1-0001-CASSANDRA-854-make-failure-to-open-cli-history-non-fat.txt
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.