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
export RESOURCE_GROUP_NAME="..." | |
export REGION="West US" | |
az group create --name $RESOURCE_GROUP_NAME --location "$REGION" | |
az group deployment create --resource-group $RESOURCE_GROUP_NAME --template-file kafka.json --parameters @kafka-params.json |
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
export TOPIC_NAME="tweets" | |
export ZOOKEEPER_SERVERS="your comma separated zookeeper servers" | |
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --create --replication-factor 3 --partitions 4 --topic $TOPIC_NAME --zookeeper $ZOOKEEPER_SERVERS |
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
# Set cluster variables | |
export KAFKA_USERNAME="..." | |
export KAFKA_PASSWORD="..." | |
export KAFKA_CLUSTERNAME="..." | |
# Get Kafka broker hostnames | |
export KAFKA_BROKERS=$(curl -u $KAFKA_USERNAME:$KAFKA_PASSWORD -G "https://$KAFKA_CLUSTERNAME.azurehdinsight.net/api/v1/clusters/$KAFKA_CLUSTERNAME/services/KAFKA/components/KAFKA_BROKER" | jq -r '["\(.host_components[].HostRoles.host_name):9092"] | join(",")') | |
echo $KAFKA_BROKERS | |
# Get Zookeeper node hostnames |
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
resource "azurerm_resource_group" "KubeTerraform" { | |
name = "${var.rg_name}" | |
location = "${var.region}" | |
} | |
resource "azurerm_kubernetes_cluster" "KubeTerraform" { | |
name = "${var.cluster_name}" | |
location = "${azurerm_resource_group.KubeTerraform.location}" | |
resource_group_name = "${azurerm_resource_group.KubeTerraform.name}" | |
kubernetes_version = "1.8.2" |
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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: "process-item-$START" | |
labels: | |
jobgroup: fsharpjob | |
spec: | |
template: | |
metadata: | |
name: fsharpjob |
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
FROM fsharp | |
COPY . . | |
RUN mono ./.paket/paket.bootstrapper.exe | |
RUN mono ./.paket/paket.exe restore | |
RUN mono .paket/paket.exe install |
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
resource "azurerm_resource_group" "KubeTerraform" { | |
name = "${var.rg_name}" | |
location = "East US" | |
} | |
resource "azurerm_container_service" "KubeTerraform" { | |
name = "${var.kube_cluster_name}" | |
location = "${azurerm_resource_group.KubeTerraform.location}" | |
resource_group_name = "${azurerm_resource_group.KubeTerraform.name}" | |
orchestration_platform = "Kubernetes" |
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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"dnsNamePrefix": { | |
"value": "<your value>" | |
}, | |
"sshRSAPublicKey": { | |
"value": "<your value>" | |
}, |
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
Downtown/West Portland: | |
Seres Restaurant and Bar (Chinese) | |
Andina | |
The Original Dinerant (Breakfast) | |
Masu Sushi | |
Bamboo Sushi SW | |
Thai Peacock Restaurant | |
Pine State Biscuits | |
Urban Farmer Portland | |
Portland City Grill |
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
// Lists all processes of the runtime with their statuses, execution time, etc. | |
runtime.ShowProcesses() | |
// Lists all cluster machines with the info for CPU, memory, network usage, etc. | |
runtime.ShowWorkers() | |
// Gets runtime logs as an array of LogRecords | |
runtime.GetLogs() | |
// Attaches specified logger to the runtime |
NewerOlder