src/java/org/apache/cassandra/config/DatabaseDescriptor.java
/**
     * Creates all storage-related directories.
     * @throws IOException when a disk problem is encountered.
     */
Creates all storage-related directories.
@throws IOException when a disk problem is encountered.
Creates all storage - related directories . @throws IOException when a disk problem is encountered .
public static void createAllDirectories() throws IOException
    {
        try {
            if (conf.data_file_directories.length == 0)
            {
                throw new ConfigurationException("At least one DataFileDirectory must be specified");
            }
            for ( String dataFileDirectory : conf.data_file_directories )
                FileUtils.createDirectory(dataFileDirectory);
            if (conf.commitlog_directory == null)
            {
                throw new ConfigurationException("commitlog_directory must be specified");
            }
            FileUtils.createDirectory(conf.commitlog_directory);
            if (conf.saved_caches_directory == null)
            {
                throw new ConfigurationException("saved_caches_directory must be specified");
            }
            FileUtils.createDirectory(conf.saved_caches_directory);
        }
        catch (ConfigurationException ex) {
            logger.error("Fatal error: " + ex.getMessage());
            System.err.println("Bad configuration; unable to start server");
            System.exit(1);
        }
    }
public static void createAllDirectories ( ) throws IOException { try { if ( conf . data_file_directories . length == 0 ) { throw new ConfigurationException ( "At least one DataFileDirectory must be specified" ) ; } for ( String dataFileDirectory : conf . data_file_directories ) FileUtils . createDirectory ( dataFileDirectory ) ; if ( conf . commitlog_directory == null ) { throw new ConfigurationException ( "commitlog_directory must be specified" ) ; } FileUtils . createDirectory ( conf . commitlog_directory ) ; if ( conf . saved_caches_directory == null ) { throw new ConfigurationException ( "saved_caches_directory must be specified" ) ; } FileUtils . createDirectory ( conf . saved_caches_directory ) ; } catch ( ConfigurationException ex ) { logger . error ( "Fatal error: " + ex . getMessage ( ) ) ; System . err . println ( "Bad configuration; unable to start server" ) ; System . exit ( 1 ) ; } }
Creates all storage-related directories.
Creates all storage - related directories .