How Do You Troubleshoot the Message “error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory”?

Problem scenario
You are using a Red Hat derivative of Linux (e.g., CentOS/RHEL/Fedora).  When trying to run a mongod command you receive this message: “error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory”

What should you do?

Solution
Get different installation media.  If you try to install a .tgz file for Ubuntu on CentOS/RHEL/Fedora, you will get this message. 

 » Read more..

How Do You Install MongoDB on a Linux Server?

Problem scenario
You want to install MongoDB on a Linux server.  How do you do this?

Solution
1.  If you know your distribution of Linux, go to step #2.  Otherwise try this command:  cat /etc/*-release

2.  Do one of the following that corresponds to your distribution of Linux:

On Debian:  sudo apt-get -y install mongodb mongodb-server

On Ubuntu 16.x or Ubuntu 17.x run these two commands (that may span three lines):

curl http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.4_amd64.deb >

 » Read more..

How Do You Troubleshoot the Cassandra Problem about “Connection refused”?

Problem Scenario
You have installed Apache Cassandra on Linux.  It is deployed as a single node configuration (not a cluster).  When you run “cqlsh” you get this error:

“Connection error: (‘Unable to connect to any servers’, {‘127.0.0.1’: error(111, “Tried connecting to [(‘127.0.0.1’, 9042)]. Last error: Connection refused”)})”

How do you troubleshoot cqlsh when you get this message “”Tried connecting to [(‘127.0.0.1’, 9042)]. Last error: Connection refused”)})”?

 » Read more..

How Do You Install Zookeeper on Any Type of Linux?

Problem scenario
You want to install Apache Zookeeper with a script.  You want the same script to work regardless of what distribution of Linux you are using (e.g., Ubuntu/Debian, RedHat (including CentOS/Fedora), or SUSE).  How do you write a script to install the latest version of Zookeeper?

Solution
The file that is attached called zki.txt is not needed.  Create a file in /tmp/ and call it zookeeper.sh. 

 » Read more..

How Do You Install Apache Cassandra on Linux SUSE?

Problem scenario
You are running Linux SUSE and want to install Apache Cassandra.  How do you install Apache Cassandra on Linux SUSE?

Solution
Prerequisites
i.  This solution assumes that you have Java installed.  If you need assistance, see this link.

ii.  This solution assumes your server has a total of 2.5 GB of memory (a combination of either virtual memory or RAM). 

 » Read more..

How Do You Install Apache Cassandra on Ubuntu 16.04?

Problem scenario
You are running Ubuntu 16.x Linux and want to install Apache Cassandra.  How do you install Apache Cassandra on Linux Ubuntu Linux as a single-server configuration?

Solution
These directions will work to deploy Debian 9 Linux too.  They have been tested to work in AWS and GCP.

Prerequisites
i.  This solution assumes that you have installed Apache Ant and Git. 

 » Read more..

How Do You Install Apache Cassandra on a RedHat Derivative of Linux?

Problem scenario
You want to install Apache Cassandra on CentOS, RHEL, or Fedora Linux.  What do you do?

Solution
These directions will deploy Apache Cassandra in a solo-server configuration.  This will not create a cluster.  These directions will work for a physical server, a VM, an EC-2 instance in AWS or a virtual machine in GCP.

Prerequisites

i.  This assumes that you have 3 GB of memory (in combination of either RAM or virtual memory,

 » Read more..

How Do You List the Hostnames of the Nodes in Your HDFS Cluster?

Problem scenario
You want to see what servers are in your HDFS cluster (e.g., the DataNodes and the NameNodes).  What command can display the FQDNs of such servers?

Solution
Run this command from the NameNode:

hdfs dfsadmin -report | grep Hostname

 » Read more..

How Do You Install Apache Avro?

Problem scenario
You have a Linux server (a Debian/Ubuntu, CentOS/RedHat/Fedora or SUSE distribution).  You want to install Apache Avro.  What do you do?

Solution
These directions work for any type of Linux.

#1  Do one of the following (either option A or option B).

Option A
Find the latest download from here and download it.

Option B
cd /tmp
curl http://mirror.metrocast.net/apache/avro/avro-1.8.2/avro-src-1.8.2.tar.gz >

 » Read more..

A List of Elastic Stack (Elasticsearch, Logstash, Beat, and Kibana) Books

The Elastic Stack used to be called the ELK Stack; this link provides more information. 

Applied Network Security Monitoring: Collection, Detection, and Analysis by Chris Sanders and Jason Smith
The Art of Monitoring by James Turnbull
ElasticSearch 5.0 Cookbook – Third Edition by Alberto Paro
Elasticsearch Blueprints by Vineeth Mohan
Elasticsearch: A Complete Guide by Bharvi Dixit,

 » Read more..