You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "J.B. Langston (JIRA)" <ji...@apache.org> on 2014/01/29 18:54:09 UTC
[jira] [Commented] (CASSANDRA-6449) Tools error out if they can't
make ~/.cassandra
[ https://issues.apache.org/jira/browse/CASSANDRA-6449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885584#comment-13885584 ]
J.B. Langston commented on CASSANDRA-6449:
------------------------------------------
>From a customer:
The culprit is: / src / java / org / apache / cassandra / utils / FBUtilities.java
File historyDir = new File(System.getProperty("user.home"), ".cassandra");
Setting an alternate environment variable HOME doesn't fix. I've tried patching the nodetool wrapper script to provide -Duser.home at runtime, but it seems when defining user.home, I get runtime errors with missing libraries. It would be nice if the tool just honoured $HOME (or let you specify a commandline override without hacking the script).
> Tools error out if they can't make ~/.cassandra
> -----------------------------------------------
>
> Key: CASSANDRA-6449
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6449
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Reporter: Jeremiah Jordan
>
> We shouldn't error out if we can't make the .cassandra folder for the new history stuff.
> {noformat}
> Exception in thread "main" FSWriteError in /usr/share/opscenter-agent/.cassandra
> at org.apache.cassandra.io.util.FileUtils.createDirectory(FileUtils.java:261)
> at org.apache.cassandra.utils.FBUtilities.getToolsOutputDirectory(FBUtilities.java:627)
> at org.apache.cassandra.tools.NodeCmd.printHistory(NodeCmd.java:1403)
> at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:1122)
> Caused by: java.io.IOException: Failed to mkdirs /usr/share/opscenter-agent/.cassandra
> ... 4 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)