michaelklishin / cassandra-chef-cookbook

Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Apache License 2.0
163 stars 228 forks source link

Create data dir explicitly with proper permissions #195

Closed bgipsy closed 9 years ago

bgipsy commented 9 years ago

Please have a look at this one liner which adds node['cassandra']['data_dir'] to the list of directories created by recipe.

Motivation: even though cassandra can create data_dir during bootstrap without any help from the recipe, it may fail to do so if that directory is configured to reside outside of root_dir subtree. Such use case may arise when data and commit logs are put on different volumes, and data_dir's parent is owned by root.

michaelklishin commented 9 years ago

Thank you!