This file contains hidden or 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
| (ns get-started.level-order-traversal | |
| (:require [clojure.string :as string])) | |
| (defn level-order [root] | |
| (if (nil? root) | |
| [] | |
| (loop [nodes [root] | |
| level-values []] | |
| (if (empty? nodes) | |
| level-values |
This file contains hidden or 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
| KafkaClient { | |
| org.apache.kafka.common.security.plain.PlainLoginModule required | |
| username="$ConnectionString" | |
| password="<Connection string–primary key>"; | |
| }; |
This file contains hidden or 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
| output { | |
| kafka { | |
| id => "kafka-output-syslog-mcas-eventhub" | |
| bootstrap_servers => "<event hub namespace>.servicebus.windows.net:9093" | |
| security_protocol => "SASL_SSL" | |
| sasl_mechanism => "PLAIN" | |
| jaas_path => "/path/to/jaas.config" | |
| codec => "json" | |
| ssl_truststore_location => "/path/to/kafka.client.truststore.jks" | |
| ssl_truststore_password => "XXXXX" |