Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # autenticazione con service principal
- kinit -kt /etc/security/keytabs/hive.service.keytab hive/masternode01.domain.priv@DOMAIN.PRIV
- beeline -u "jdbc:hive2://masternode01.domain.priv:2181,masternode02.domain.priv:2181,masternode03.domain.priv:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2;principal=hive/masternode01.domain.priv@DOMAIN.PRIV"
- 0: jdbc:hive2://lcsgepalsv074.mis.priv:2181,l> CREATE DATABASE sbi;
- INFO : Compiling command(queryId=hive_20181218105103_1c9e8a83-c8b1-4cee-a85f-35b5f8f17c93): CREATE DATABASE sbi
- INFO : We are setting the hadoop caller context from HIVE_SSN_ID:5ffab31d-d355-4c16-a7c4-e968613bf499 to hive_20181218105103_1c9e8a83-c8b1-4cee-a85f-35b5f8f17c93
- INFO : Semantic Analysis Completed
- INFO : Returning Hive schema: Schema(fieldSchemas:null, properties:null)
- INFO : Completed compiling command(queryId=hive_20181218105103_1c9e8a83-c8b1-4cee-a85f-35b5f8f17c93); Time taken: 0.003 seconds
- INFO : We are resetting the hadoop caller context to HIVE_SSN_ID:5ffab31d-d355-4c16-a7c4-e968613bf499
- INFO : Concurrency mode is disabled, not creating a lock manager
- INFO : Setting caller context to query id hive_20181218105103_1c9e8a83-c8b1-4cee-a85f-35b5f8f17c93
- INFO : Executing command(queryId=hive_20181218105103_1c9e8a83-c8b1-4cee-a85f-35b5f8f17c93): CREATE DATABASE sbi
- INFO : Starting task [Stage-0:DDL] in serial mode
- INFO : Resetting the caller context to HIVE_SSN_ID:5ffab31d-d355-4c16-a7c4-e968613bf499
- INFO : Completed executing command(queryId=hive_20181218105103_1c9e8a83-c8b1-4cee-a85f-35b5f8f17c93); Time taken: 0.462 seconds
- INFO : OK
- No rows affected (0.472 seconds)
- # autenticazione via utente di dominio con privilegi sul DB scelto
- [supplier@lcsgepalsv072 ~]$ klist
- Ticket cache: FILE:/tmp/krb5cc_124601946
- Default principal: supplier@MIS.PRIV
- Valid starting Expires Service principal
- 12/18/2018 10:59:30 12/18/2018 20:59:30 krbtgt/MIS.PRIV@MIS.PRIV
- renew until 12/25/2018 10:59:30
- [supplier@lcsgepalsv072 ~]$ beeline -u "jdbc:hive2://lcsgepalsv074.mis.priv:2181,lcsgepalsv075.mis.priv:2181,lcsgepalsv076.mis.priv:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2"
- Connecting to jdbc:hive2://lcsgepalsv074.mis.priv:2181,lcsgepalsv075.mis.priv:2181,lcsgepalsv076.mis.priv:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-hive2
- Connected to: Apache Hive (version 2.1.0.2.6.5.0-292)
- Driver: Hive JDBC (version 1.2.1000.2.6.5.0-292)
- Transaction isolation: TRANSACTION_REPEATABLE_READ
- Beeline version 1.2.1000.2.6.5.0-292 by Apache Hive
- 0: jdbc:hive2://lcsgepalsv074.mis.priv:2181,l> USE sbi;
- INFO : Compiling command(queryId=hive_20181218110040_11502af1-0d20-454a-b24f-fb4a8907f1c1): USE sbi
- INFO : We are setting the hadoop caller context from HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351 to hive_20181218110040_11502af1-0d20-454a-b24f-fb4a8907f1c1
- INFO : Semantic Analysis Completed
- INFO : Returning Hive schema: Schema(fieldSchemas:null, properties:null)
- INFO : Completed compiling command(queryId=hive_20181218110040_11502af1-0d20-454a-b24f-fb4a8907f1c1); Time taken: 0.008 seconds
- INFO : We are resetting the hadoop caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Concurrency mode is disabled, not creating a lock manager
- INFO : Setting caller context to query id hive_20181218110040_11502af1-0d20-454a-b24f-fb4a8907f1c1
- INFO : Executing command(queryId=hive_20181218110040_11502af1-0d20-454a-b24f-fb4a8907f1c1): USE sbi
- INFO : Starting task [Stage-0:DDL] in serial mode
- INFO : Resetting the caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Completed executing command(queryId=hive_20181218110040_11502af1-0d20-454a-b24f-fb4a8907f1c1); Time taken: 0.518 seconds
- INFO : OK
- No rows affected (0.59 seconds)
- 0: jdbc:hive2://lcsgepalsv074.mis.priv:2181,l> CREATE TABLE IF NOT EXISTS dacancellare ( eid int, name String) STORED AS TEXTFILE;
- INFO : Compiling command(queryId=hive_20181218110339_879c2dd4-c43c-4c6d-b7ae-c0d6814f7f42): CREATE TABLE IF NOT EXISTS dacancellare ( eid int, name String) STORED AS TEXTFILE
- INFO : We are setting the hadoop caller context from HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351 to hive_20181218110339_879c2dd4-c43c-4c6d-b7ae-c0d6814f7f42
- INFO : Semantic Analysis Completed
- INFO : Returning Hive schema: Schema(fieldSchemas:null, properties:null)
- INFO : Completed compiling command(queryId=hive_20181218110339_879c2dd4-c43c-4c6d-b7ae-c0d6814f7f42); Time taken: 0.012 seconds
- INFO : We are resetting the hadoop caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Concurrency mode is disabled, not creating a lock manager
- INFO : Setting caller context to query id hive_20181218110339_879c2dd4-c43c-4c6d-b7ae-c0d6814f7f42
- INFO : Executing command(queryId=hive_20181218110339_879c2dd4-c43c-4c6d-b7ae-c0d6814f7f42): CREATE TABLE IF NOT EXISTS dacancellare ( eid int, name String) STORED AS TEXTFILE
- INFO : Starting task [Stage-0:DDL] in serial mode
- INFO : Resetting the caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Completed executing command(queryId=hive_20181218110339_879c2dd4-c43c-4c6d-b7ae-c0d6814f7f42); Time taken: 0.465 seconds
- INFO : OK
- No rows affected (0.484 seconds)
- 0: jdbc:hive2://lcsgepalsv074.mis.priv:2181,l> SHOW TABLES;
- INFO : Compiling command(queryId=hive_20181218110347_32d8054e-72f4-4e8f-9870-354f34438cb6): SHOW TABLES
- INFO : We are setting the hadoop caller context from HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351 to hive_20181218110347_32d8054e-72f4-4e8f-9870-354f34438cb6
- INFO : Semantic Analysis Completed
- INFO : Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:tab_name, type:string, comment:from deserializer)], properties:null)
- INFO : Completed compiling command(queryId=hive_20181218110347_32d8054e-72f4-4e8f-9870-354f34438cb6); Time taken: 0.006 seconds
- INFO : We are resetting the hadoop caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Concurrency mode is disabled, not creating a lock manager
- INFO : Setting caller context to query id hive_20181218110347_32d8054e-72f4-4e8f-9870-354f34438cb6
- INFO : Executing command(queryId=hive_20181218110347_32d8054e-72f4-4e8f-9870-354f34438cb6): SHOW TABLES
- INFO : Starting task [Stage-0:DDL] in serial mode
- INFO : Resetting the caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Completed executing command(queryId=hive_20181218110347_32d8054e-72f4-4e8f-9870-354f34438cb6); Time taken: 0.437 seconds
- INFO : OK
- +---------------+--+
- | tab_name |
- +---------------+--+
- | dacancellare |
- +---------------+--+
- 1 row selected (0.488 seconds)
- 0: jdbc:hive2://lcsgepalsv074.mis.priv:2181,l> DROP TABLE dacancellare;
- INFO : Compiling command(queryId=hive_20181218110501_0a4d80e1-5b21-40fb-9b7a-2033054259ec): DROP TABLE dacancellare
- INFO : We are setting the hadoop caller context from HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351 to hive_20181218110501_0a4d80e1-5b21-40fb-9b7a-2033054259ec
- INFO : Semantic Analysis Completed
- INFO : Returning Hive schema: Schema(fieldSchemas:null, properties:null)
- INFO : Completed compiling command(queryId=hive_20181218110501_0a4d80e1-5b21-40fb-9b7a-2033054259ec); Time taken: 0.019 seconds
- INFO : We are resetting the hadoop caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Concurrency mode is disabled, not creating a lock manager
- INFO : Setting caller context to query id hive_20181218110501_0a4d80e1-5b21-40fb-9b7a-2033054259ec
- INFO : Executing command(queryId=hive_20181218110501_0a4d80e1-5b21-40fb-9b7a-2033054259ec): DROP TABLE dacancellare
- INFO : Starting task [Stage-0:DDL] in serial mode
- INFO : Resetting the caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Completed executing command(queryId=hive_20181218110501_0a4d80e1-5b21-40fb-9b7a-2033054259ec); Time taken: 0.535 seconds
- INFO : OK
- No rows affected (0.584 seconds)
- 0: jdbc:hive2://lcsgepalsv074.mis.priv:2181,l> SHOW TABLES;
- INFO : Compiling command(queryId=hive_20181218110506_4cb21f5b-426e-43a9-aa3a-4fafa846fa6f): SHOW TABLES
- INFO : We are setting the hadoop caller context from HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351 to hive_20181218110506_4cb21f5b-426e-43a9-aa3a-4fafa846fa6f
- INFO : Semantic Analysis Completed
- INFO : Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:tab_name, type:string, comment:from deserializer)], properties:null)
- INFO : Completed compiling command(queryId=hive_20181218110506_4cb21f5b-426e-43a9-aa3a-4fafa846fa6f); Time taken: 0.006 seconds
- INFO : We are resetting the hadoop caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Concurrency mode is disabled, not creating a lock manager
- INFO : Setting caller context to query id hive_20181218110506_4cb21f5b-426e-43a9-aa3a-4fafa846fa6f
- INFO : Executing command(queryId=hive_20181218110506_4cb21f5b-426e-43a9-aa3a-4fafa846fa6f): SHOW TABLES
- INFO : Starting task [Stage-0:DDL] in serial mode
- INFO : Resetting the caller context to HIVE_SSN_ID:98ed8585-6d0a-4536-accb-30ebf9c4e351
- INFO : Completed executing command(queryId=hive_20181218110506_4cb21f5b-426e-43a9-aa3a-4fafa846fa6f); Time taken: 0.422 seconds
- INFO : OK
- +-----------+--+
- | tab_name |
- +-----------+--+
- +-----------+--+
- No rows selected (0.437 seconds)
- 0: jdbc:hive2://lcsgepalsv074.mis.priv:2181,l>
Add Comment
Please, Sign In to add comment