Posts by Year

2026

2025

2023

Automating GCE Image Creation with Packer

15 minute read

Ensuring consistency and streamlining infrastructure provisioning is crucial for effective cloud management. Creating custom virtual machine (VM) images on G...

Design IAM on Google Cloud Platform

14 minute read

Security is paramount when setting up resources in the cloud or on-premises. It encompasses various layers of protection, including network security, encrypt...

Exploring Data Extraction from BigQuery

3 minute read

BigQuery, Google’s fully-managed and serverless data warehouse, empowers organizations to analyze massive datasets with remarkable speed and efficiency. But ...

Effective Terraform Validation Techniques

4 minute read

Validation in Terraform is an essential practice to detect and prevent errors early in the infrastructure provisioning process. By incorporating robust valid...

2021

Python - Virtual Environment.

2 minute read

Python virtual environment creates a isoloated workspace of python work. This helps in creating project specific virtual environment without worrying about ...

Cloud VPN - GCP Learning Notes.

12 minute read

Cloud VPN securely connects your peer network to your Virtual Private Cloud (VPC) network through an IPsec VPN connection.

Python - List Comprehensions.

9 minute read

List Comprehensions provides easy and functional way to create list in python. We could make a single line of code which otherwise would take a few lines. l...

Python Getting Started - Learning Notes.

66 minute read

Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java. This is basic documentation for getting star...

getmerge Operation not Permitted

1 minute read

getmerge command takes a source directory and a destination file as input and concatenates files in src into the destination local file.

Cloud IAM - GCP Learning Notes.

8 minute read

Google Cloud offers IAM, which lets you give more granular access to specific Google Cloud resources and prevents unwanted access to other resources.

2018

Long Running Jobs in YARN distcp.

1 minute read

Usually distcp and other batch jobs run for a very long time. This is fine if you are running a HADOOP environment without kerberos. When we kerberize a clus...

Checking HDFS health using fsck.

3 minute read

When we have large data sets on the cluster, there will be corruptions of blocks. This could be due to disk or any other.

MongoDB to Neo4j Using neo4j_doc_manager.

10 minute read

We had a requirement where we wanted to have all the data which is in mongodb to be replicated on neo4j to show few graphs. Here is quick way to demonstrate ...

Cropping Bulk Images Using Python.

3 minute read

I was working on getting post headers for my post on this blog. I had couple of images from unsplash. But the header for the post need to be a little more ho...

2017

Kafka Kerberos Enable and Testing.

19 minute read

Apache Kafka is a distributed streaming platform. Kafka 2.0 supports Kerberos authentication, Enabling Kerberos Authentication Using the Wizard on cloudera m...

Parcel Not Distributing Cloudera CDH.

1 minute read

We were deploying one of the cluster on our lab environment which is used by everyone. So the lab has it own share of stale information on it.

Creating /etc/hosts file in Chef.

4 minute read

We had a cluster environment which we needed to update the /etc/hosts file. Which would help communicate between the server over a private network. Our serve...

Enable Kerberos Using Cloudera API.

9 minute read

Python API for cloudera is really nice, apart from getting the cluster setup, we can also do configuration and automation. We use a lot of automation using C...

Setting Hue to Listen on 0.0.0.0 [Cloudera]

less than 1 minute read

We were working on setting up a cluster, but the Hue URL was set to a private IP of the server. As we had setup all the nodes to access each other using a pr...

2016

Nagios - Service Group Summary ERROR

6 minute read

After migrating or restoring a Nagios XI server, navigating to the Servicegroup Summary, Hostgroup Summary, or legacy Nagios Core CGI views may fail with one...

Zabbix History Table Clean Up

8 minute read

In large Zabbix deployments, the raw history tables (history, history_uint, history_str, history_log, and history_text) frequently grow to tens or hundreds o...

Windows Testing Using Kitchen Chef

6 minute read

Test Kitchen (kitchen-vagrant) can provision disposable Microsoft Windows Server virtual machines on a Linux or macOS workstation using VirtualBox, Vagrant, ...

Package Installer for Cygwin [apt-cyg].

3 minute read

When working on a Windows machine after spending years in Linux, Cygwin provides a POSIX-compatible environment where your custom .bashrc and .vimrc configur...

Installing CouchDB on Ubuntu 14 LTS.

4 minute read

Apache CouchDB is an open-source, document-oriented NoSQL database that stores JSON documents, exposes a native HTTP/RESTful API (on TCP port 5984 by default...

Installing MongoDB on Ubuntu 14 LTS.

8 minute read

MongoDB is a document-oriented NoSQL database that stores records as BSON (binary JSON) documents with flexible schemas and rich indexing. This guide covers ...

Encrypted Data Bags - Chef

8 minute read

Chef Data Bags store global JSON data on the Chef Infra Server that can be queried by any cookbook or node. When storing sensitive data—such as user password...

Bootstrap Windows - knife-windows - Chef

10 minute read

The knife-windows plugin extends Chef’s knife CLI with subcommands to bootstrap and manage Microsoft Windows nodes over Windows Remote Management (WinRM) or ...

knife Quick Reference

5 minute read

knife is the command-line tool that bridges your local chef-repo on a Chef Workstation and the Chef Infra Server. It allows administrators to manage nodes, c...

Remove Old Files using find Command

3 minute read

Automated log cleanup and backup rotation scripts on Linux frequently rely on GNU find to locate and delete files older than a retention threshold. Evaluatin...

Setting up SSL https On Nagios XI Server

7 minute read

Configuring HTTPS (TLS/SSL) on a Nagios XI server encrypts web UI logins, API calls (/nagiosxi/api/v1/), and passive check submissions (/nrdp/). Enabling HTT...

Update hosts file in Windows 8

4 minute read

The local hosts file maps IP addresses to hostnames (FQDNs and short aliases) on the local machine before querying external DNS servers. This is especially u...

Creating Documents Using pandoc

6 minute read

Pandoc is an open-source universal document converter capable of transforming technical documentation written in Markdown into PDF, Microsoft Word (.docx), H...

Setup/Configuration Nagios XI on Centos6.6

11 minute read

Nagios XI monitors hosts, network services, and application metrics across Linux and Windows environments, alerting administrators when checks enter warning ...

RPM Command Cheat Sheet

6 minute read

RPM (RPM Package Manager) is the low-level package management system used across Red Hat Enterprise Linux (RHEL), CentOS, Rocky Linux, AlmaLinux, Fedora, and...

Creating a large file in Windows / Linux

4 minute read

When testing disk-space monitoring alerts (such as Nagios or Zabbix filesystem thresholds), network throughput, or backup performance, it is helpful to quick...

Chef Workstation Setup on Windows Machine.

11 minute read

Developing and testing Chef cookbooks locally on a Windows workstation requires three core components: the Chef Development Kit (ChefDK) (since superseded by...

LUKS Disk encryption for CentOS 6.6/RHEL 6

15 minute read

Linux Unified Key Setup (LUKS) is the standard on-disk block encryption format for Linux. Using the kernel’s dm-crypt device-mapper subsystem and the cryptse...

Mysql Database Disk Usage.

6 minute read

When a MySQL or MariaDB server runs low on disk space, identifying which schemas and tables consume the most storage is the first step in capacity troublesho...

Installing python 2.7.x on Centos 6.5/6.6

7 minute read

CentOS 6 was distributed with Python 2.6, while some older applications require Python 2.7. This guide describes two historical installation approaches: usin...

2015

Zabbix Template Creation using CSV file.

8 minute read

In zabbix we dont have a better way to capture snmptraps. we have to manually create an item and corresponfding trigger to handle a trap arriving from the de...

Setting up SNMP Trapper for Zabbix.

11 minute read

Receiving SNMP traps is the opposite to querying SNMP-enabled devices. In this case the information is sent from a SNMP-enabled device and is collected or “t...

Access Filter Setup with SSSD

7 minute read

SSSD can use an LDAP filter to decide which directory users are allowed to log in to a Linux host. This is useful when accounts should remain visible in the ...

Getting started with Hive with Kerberos.

9 minute read

Apache Hive is a powerful data warehousing application built on top of Hadoop; it enables you to access your data using Hive QL, a language that is similar t...

Installing ansible on RHEL 6.6.

4 minute read

Ansible is a radically simple IT automation engine that automates cloud provisioning, configuration management, application deployment, intra-service orchest...

Mounting RAID10 using parted.

11 minute read

GUID Partition Table (GPT) is a standard for the layout of the partition table on a physical hard disk, using globally unique identifiers (GUID). Although it...

Ansible Playbook - Setup Storm Cluster.

2 minute read

This is a simple Storm Cluster Setup. We are using a dedicated Zookeeper Cluster/Node, instead of the standalone zkserver. Below is how we will deploy our c...

Ansible Playbook - Setup Kafka Cluster.

2 minute read

This is a simple Kafka setup. In this setup we are running kafka over a dedicated zookeeper service. (NOT the standalone zookeeper which comes with kafka)

Streaming Data Processing - Storm Vs Spark.

6 minute read

Apache Spark is an in-memory distributed data analysis platform– primarily targeted at speeding up batch analysis jobs, iterative machine learning jobs, inte...

Tuning Hadoop Performance with sysctl.conf

13 minute read

This post delves into optimizing Hadoop performance at the kernel level using sysctl. The sysctl interface provides a way to dynamically modify a running Lin...

Performance Tuning for nginx

6 minute read

Nginx (pronounced “engine x”) is a powerful and versatile web server renowned for its high concurrency, exceptional performance, and efficient memory utiliza...

How To Configure Swappiness

7 minute read

Swappiness is a crucial Linux kernel parameter that dictates how aggressively the system uses swap space. Understanding and configuring swappiness can signif...

Setting up Tomcat Cluster for SpagoBI 5.1.

14 minute read

This post details how to set up a Tomcat cluster for SpagoBI 5.1, building upon a previous guide for installing SpagoBI with MySQL (post). This configuration...

2014

Zabbix Installation 2.4 - CentOS 6.5

1 minute read

Zabbix is the ultimate enterprise-level software designed for monitoring availability and performance of IT infrastructure components. Zabbix is open source ...

Zabbix Hadoop Monitoring.

6 minute read

This script can be used to monitor Namenode Parameters. This script can be used to Generate Zabbix Import XML or Send monitoring data to Zabbix server.

SFTP Data Collector

3 minute read

Easy way to collect files recursively over a sftp server is to connect to the server over scp and do scp -r. Problem was that the device we were connecting ...