Creating a Simple Kafka Producer in Java

apache kafka logo

Apache Kafka is a fault tolerant publish-subscribe streaming platform that lets you process streams of records as they occur. If you haven’t installed Kafka yet, see our Kafka Quickstart Tutorial to get up and running quickly. In this post we discuss how to create a simple Kafka producer in Java. Kafka Producer Java Code The

read more

Apache Kafka Docker Image Example

apache kafka logo

Apache Kafka is a fault tolerant publish-subscribe streaming platform that lets you process streams of records as they occur. This post is a step by step guide of how to build a simple Apache Kafka Docker image. The original Dockerfile can be found here: https://github.com/nsonntag/docker-images/tree/master/kafka-quickstart. The Dockerfile This Dockerfile is very simple. It installs Java

read more

Apache Kafka Quickstart Tutorial

apache kafka logo

Apache Kafka is a fault tolerant publish-subscribe streaming platform that lets you process streams of records as they occur. This Kafka Quickstart Tutorial walks through the steps needed to get Apache Kafka up and running on a single Linux/Unix machine. In this tutorial we use Ubuntu and Kafka 0.10.2.0. Installing Java Running Kafka requires Java.

read more

How to Remove Tags from a Git Repository

If you use tags with your Git repositories you know that sometimes it makes sense to remove/delete these tags. Below are samples of removing both local and remote tags from your Git repo. Delete Tag from Local Repository git tag -d <tag name> Delete Tag from Remote Repository (e.g. GitHub) git push origin :refs/tags/<tag name>

How to Start an Interactive Docker Container

Sometimes when working with Docker you just want to quickly start a container and interact with it through a shell. Fortunately this is easy to do. Here is an example of creating and running an Ubuntu container with a bash shell: docker run -it –rm ubuntu /bin/bash Here is the explanation of this command: docker

read more

How to List Tags in Git

Tags in Git are a way to bookmark specific commits. This is often done to indicate different versions or releases of a project. To list the tags you have previously created in the current repository use: git tag. For repositories with many tags it may be useful to find tags by name. This is possible

read more

How to Create tags in Git

“Lightweight” tags in Git are simply pointers to specific commits. You can create a lightweight tag on the command line using: git tag <tag name>. This will create a local tag on the current branch. Listing Tags in Git To list the tags you have previously created use: git tag. For repositories with many tags

read more

How to Display Window Tabs in Linux Screen

screen is a Linux program that allows users to create and manage multiple terminal instances. Using tabs to visually track multiple terminal windows is very convenient and luckily not too hard to do. Screen Window Tabs Example Here is an example of how to display window tabs in Linux screen. Simply add the below line

read more

Using Input Forms with Shell Scripts – Apache Zeppelin

Apache Zeppelin is a fantastic open source web-based software that allows users to build and share great looking data visualizations using various languages. If you aren’t familiar with using the shell interpreter in Apache Zeppelin, see our related post Creating Graphs with the Zeppelin Shell Interpreter. Apache Zeppelin allows dynamic creation of text input forms

read more

Using Input Forms with SQL Queries – Apache Zeppelin

Apache Zeppelin is a fantastic open source web-based software that allows users to build and share great looking data visualizations using various languages, including SQL. Apache Zeppelin allows dynamic creation of text input forms in your notebooks. Input forms can be created and referenced using a simple template language. For example, using ${variable_name} in a

read more