Skip to content

Instantly share code, notes, and snippets.

View davidcueva's full-sized avatar

David G. Cueva Tello davidcueva

  • Google
View GitHub Profile
SELECT `submissiondate`,
`transactiontype`
FROM `default`.`transactions`
echo "gcloud compute ssh ${PROXY_CLUSTER}-m \
--project ${PROJECT_ID} \
--zone ${ZONE} \
-- -L 8443:localhost:8443"
gcloud compute instances describe ${PROXY_CLUSTER}-m --zone=${ZONE} \
--format='get(networkInterfaces[0].accessConfigs[0].natIP)'
gcloud compute instances add-tags ${PROXY_CLUSTER}-m --zone=${ZONE} \
--tags=knox-gateway
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
SELECT submissionDate, transactionType
FROM transactions
LIMIT 10;
beeline -u "jdbc:hive2://localhost:10000/;transportMode=http;httpPath=cliservice mary user-password"