This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM `default`.`transactions` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT `submissiondate`, | |
`transactiontype` | |
FROM `default`.`transactions` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "gcloud compute ssh ${PROXY_CLUSTER}-m \ | |
--project ${PROJECT_ID} \ | |
--zone ${ZONE} \ | |
-- -L 8443:localhost:8443" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute instances describe ${PROXY_CLUSTER}-m --zone=${ZONE} \ | |
--format='get(networkInterfaces[0].accessConfigs[0].natIP)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute firewall-rules create allow-knox\ | |
--project=${PROJECT_ID} --direction=INGRESS --priority=1000 \ | |
--network=default --action=ALLOW --rules=tcp:8443 \ | |
--target-tags=knox-gateway \ | |
--source-ranges=<your-public-ip>/32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT submissionDate, transactionType | |
FROM transactions | |
LIMIT 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM transactions | |
LIMIT 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beeline -u "jdbc:hive2://localhost:10000/;transportMode=http;httpPath=cliservice mary user-password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo service hive-server2 restart |
NewerOlder