Get started with Lenses. Set it up with Docker and connect to an Azure managed Kafka (HDInsight) with the standard configuration.
Sign up with Lenses and download your license key.
HDInsight for Apache Kafka is a fully managed streaming platform by Azure, deployable in the Azure cloud.
Start by signing up for an Azure account. Follow the in-product instructions to launch HDInsight clusters within the Azure console interface.
Then, gather the connection points of your cluster.
Go to Dashboards > Ambari home
Dashboards > Ambari home
Kafka endpoints: Go to Kafka > Configs > Kafka Broker > Kafka Broker hosts.
Kafka > Configs > Kafka Broker > Kafka Broker hosts
Zookeeper endpoints: Go to Zookeeper > Configs > Zookeeper Server > Zookeeper Server hosts.
Zookeeper > Configs > Zookeeper Server > Zookeeper Server hosts
You will use docker-compose to spin up Lenses.
docker-compose
Start by signing up with Docker. Then install docker-compose.
Use this docker-compose.yml file to spin up Lenses and connect to your Azure HDInsight Kafka.
docker-compose.yml
Just 2 steps:
license.json
The file:
version: '3' services: lenses: image: lensesio/lenses environment: # Admin user credentials LENSES_SECURITY_USER: admin LENSES_SECURITY_PASSWORD: admin LENSES_PORT: 8080 # === Set your values in this section === # ===Step 1=== Put your HDInsight Kafka endpoints here # e.g. # LENSES_KAFKA_BROKERS: "PLAINTEXT://[wn0-lenses.kg3i1hefhdzuhl5mvhdd00n3nd.zx.internal.cloudapp.net]:9092, PLAINTEXT://wn1-lenses.kg3i1hefhdzuhl5mvhdd00n3nd.zx.internal.cloudapp.net:9092" # Kafka Endpoint LENSES_KAFKA_BROKERS: "PLAINTEXT://[BROKER_HOST_1]:9092, PLAINTEXT://[BROKER_HOST_2]:9092,…" # ===Step 2=== Put your HDInsight Zookeeper endpoints here LENSES_ZOOKEEPER_HOSTS: | [ { url: "[ZK_HOST_1]:2181" }, { url: "[ZK_HOST_2]:2181" }, { url: "[ZK_HOST_3]:2181" } ] # HDInsight JMX metrics port for Kafka brokers LENSES_KAFKA_METRICS_DEFAULT_PORT: 9999 ports: - 8080:8080 volumes: # ===Step 3=== Share your authentication files here # Map the Lenses license key file here to activate Lenses - ./license.json:/license.json
docker-compose up
Open your browser and go to:
http://localhost:8080
Login as admin:
User: admin Password: admin
Currently, Azure HDInsight doesn’t provide managed versions of these services:
Without these services these Lenses features are not available:
On this page