Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create type if not exists coordinates (
- latitude double,
- longitude double
- );
- create table if not exists forecast_configuration(
- description text,
- coordinates list<frozen <coordinates>>,
- forecast boolean,
- start_date timestamp,
- end_date timestamp,
- user_email text,
- notify_user boolean,
- variables text,
- PRIMARY KEY(description)
- );
- insert into forecast_configuration (description,coordinates,forecast,start_date, end_date, user_email,notify_user,variables) VALUES ('teste forecast2',[{ latitude : 38.5 ,longitude : -8},
- { latitude : 38.52,longitude : -8.02 }], false, '2015-01-01', '2017-01-01', 'user_email@gmail.com',true,'rh,temp');
- ERROR 14:55:09 JVM state determined to be unstable. Exiting forcefully due to: java.lang.OutOfMemoryError: Java heap space
- $save['coordinates'] = json_encode($save['coordinates']); // I think my error can be here.
- $statement = new CassandraSimpleStatement(
- "INSERT INTO forecast_configuration (description, coordinates, forecast, start_date, end_date, user_email,
- notify_user, variables) " .
- "VALUES (?, ?, ?, ?, ?, ?, ?, ?)"
- );
- $options = new CassandraExecutionOptions(array('arguments' => $save));
- $session->execute($statement, $options);
Add Comment
Please, Sign In to add comment