Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Miguel
Zeferino
Pérez
Hernández
CREATE KEYSPACE BDalumnos
WITH REPLICATION = { 'class' :
'SimpleStrategy', 'replication_factor' : 1
};
SELECT * FROM system.schema_keyspaces;
USE BDalumnos;
CREATE TABLE BDalumnos.alumnos (
alum_id text,
carrera text,
control int,
PRIMARY KEY (alum_id)
);
INSERT INTO BDalumnos.alumnos (alum_id,
carrera, control)
VALUES ('John', 'Industrial',10071234);
INSERT INTO BDalumnos.al...
SELECT * FROM BDalumnos.alumnos;
ALTER TABLE BDalumnos.alumnos ADD Apellido
varchar;
INSERT INTO BDalumnos.alumnos (alum_id, Apellido,
carrera, control)
VALUES ('John', 'Travolta','Industrial',10071234);
INS...
SELECT * FROM BDalumnos.alumnos;
DROP TABLE BDalumnos.alumnos;
DROP KEYSPACE BDalumnos;
GRANT SELECT ON ALL KEYSPACES TO Miguel;
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
DevCenter Apache cassandra
Upcoming SlideShare
Loading in …5
×

DevCenter Apache cassandra

243 views

Published on

Uso del DevCenter, OpsCenter, Apache Cassandra, Permisos

Published in: Software
  • Be the first to comment

  • Be the first to like this

DevCenter Apache cassandra

  1. 1. Miguel Zeferino Pérez Hernández
  2. 2. CREATE KEYSPACE BDalumnos WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
  3. 3. SELECT * FROM system.schema_keyspaces;
  4. 4. USE BDalumnos;
  5. 5. CREATE TABLE BDalumnos.alumnos ( alum_id text, carrera text, control int, PRIMARY KEY (alum_id) );
  6. 6. INSERT INTO BDalumnos.alumnos (alum_id, carrera, control) VALUES ('John', 'Industrial',10071234); INSERT INTO BDalumnos.alumnos (alum_id, carrera, control) VALUES ('Cena', 'Electronica',10999666); INSERT INTO BDalumnos.alumnos (alum_id, carrera, control) VALUES ('Miguel', 'Sistemas',10071328);
  7. 7. SELECT * FROM BDalumnos.alumnos;
  8. 8. ALTER TABLE BDalumnos.alumnos ADD Apellido varchar;
  9. 9. INSERT INTO BDalumnos.alumnos (alum_id, Apellido, carrera, control) VALUES ('John', 'Travolta','Industrial',10071234); INSERT INTO BDalumnos.alumnos (alum_id, carrera, control) VALUES ('Cena', 'Electronica',10999666); INSERT INTO BDalumnos.alumnos (alum_id, Apellido, carrera, control) VALUES ('Miguel', 'Pérez', 'Sistemas',10071328);
  10. 10. SELECT * FROM BDalumnos.alumnos;
  11. 11. DROP TABLE BDalumnos.alumnos;
  12. 12. DROP KEYSPACE BDalumnos;
  13. 13. GRANT SELECT ON ALL KEYSPACES TO Miguel;

×