Posts

CentOS: Create and share your own YUM repository

This blog explains how to create your own yum repository with the createrepo tool and to distribute specialized packages within an organization. In this blog I have given an example of kernel RPMs repository.

Creating your own yum repository is very simple, and very straightforward. In order to do it, you need the createrepo tool, which can be found in the createrepo package, so to install it, execute as root: # yum install createrepoOnce the package is installed, you can begin creating your repository. You will also need some RPM packages to create the repository with. Decide where you want to store your repository; let's say, /var/ftp/pub will be the base directory . Depending on how particular you want to get, you can dump everything to a single repository or keep things organized. # mkdir -p /var/ftp/pub/repo/CentOS/7/{SRPMS,aarch64}Now copy your aarch64 packages to /var/ftp/pub/repo/CentOS/7/aarch64, and the SRPMS you have (if wanted) to /var/ftp/pub/repo/CentOS/7/SRPMS. To…

How to setup git and configure send-email

The following steps will explain how to setup a git on Ubuntu bash shell  and configure your mail ID.

Install git and git -core

sudo apt-get install git git-core
You can also clone, compile and install the latest version of the git

git clone https://github.com/git/git.git make configure ./configure --prefix=/usr make -j8 sudo make install
You need to install the following dependency packages

sudo apt-get update sudo apt-get upgrade sudo apt-get install perl-IO-Socket-SSL libio-socket-ssl-perl libcrypt-ssleay-perl libnet-ssleay-perl libio-socket-ssl-perl perl-mime-tools perl-authen-sasl libauthen-sasl-perl libmime-tools-perl
The .gitconfig file will be as below,

$ cat .gitconfig [user]         name = [Username]         email = [Your Mail ID] [sendemail]         smtpencryption = tls         smtpserver = smtp.gmail.com         smtpuser = [Your mail ID]         smtpserverport = 587         confirm = auto
        smtppass = [You need to generate a password in your google account for this application]
Now you…

How to update from Ubuntu 16.04 to 18.04 on Windows 10

The Windows 10  is having default Ubuntu is of version "Ubuntu 16.04.03 LTS".  If you want to update to the latest available you can follow the below steps.

Check the distribution version on bash shell.

lsb_release -d
To update to Ubuntu 18.04 on Windows 10, first update and upgrade all the packages.

sudo apt-get update sudo apt-get upgrade -y
If you face the below error message then run the dist-upgrade.

Checking for a new Ubuntu release Please install all available updates for your release before upgrading.sudo apt-get dist-upgrade
And now you all set to do the release upgrade.

sudo do-release-upgrade
You will be asked to intervene twice during the upgrade process. The first time, Ubuntu will ask you if you want to install the latest version of the sshd_config file. You can keep the current version, or you can get the latest one.

Next, a little further during the upgrade process, Ubuntu will ask you if you want to remove obsolete packages. You can choose to remove them…

Apache Drill on ARM64

Image
Apache Drill on ARM64
What is Drill ?
Apache Drill is a distributed MPP query layer that supports SQL and alternative query languages against NoSQL and Hadoop data storage systems. It was inspired in part by Google's Dremel.  Apache Drill is an Apache Foundation project.
Query any non-relational datastore
With the exponential growth of data in recent years, and the shift towards rapid application development, new data is increasingly being stored in non-relational datastores including Hadoop, NoSQL and cloud storage. Apache Drill enables analysts, business users, data scientists and developers to explore and analyze this data without sacrificing the flexibility and agility offered by these datastores.  
Drill supports a variety of NoSQL databases and file systems, including HBase, MongoDB, MapR-DB, HDFS, MapR-FS, Amazon S3, Azure Blob Storage, Google Cloud Storage, Swift, NAS and local files. A single query can join data from multiple datastores. For example, you can join a user pro…

usermod/groupmod tools - Rename username and usergroup in Ubuntu

The laptop come with default ubuntu installed.  In that case the username, usergroup they have created by default.  This blog explains you how you can rename the default username and group with your own username, group.

Unix-like operating systems decouple the user name from the user identity, so you may safely change the name without affecting the ID. All permissions, files, etc are tied to your identity (uid), not your username.

To manage every aspect of the user database, you use the usermod tool.  To change username (it is probably best to do this without being logged in):

STEP 1: Reboot your laptop with 1 as a command line parameter.
The laptop will be booted into a rescue mode with 1 as a parameter.  You can also boot your laptop in a single user mode.

STEP 2: Change your root password with the command "passwd"
This is just tobe secured in future,  because one can easily hack your laptop with your default user password.

STEP 3: Rename oldUsername with newUsername

# us…

Apache Ambari on ARM64

Overview:
In this blog we try to explain about Ambari and its uses, Status of the Ambari on ARM64.
Apache Ambari is an open source administration tool deployed on top of Hadoop cluster and responsible for keeping track of running applications and their status. Apache Ambari can be referred to as an open source web-based management tool that manages, monitors and provisions the health of Hadoop clusters.
The Apache Ambari is currently one of the leading projects running under Apache Software Foundation.  The reason is that Ambari eliminates the need for manual tasks used to watch over Hadoop operations. It gives a simple secure platform for provisioning, managing and monitoring Hortonworks Data Platform (HDP) deployments. 
How Apache Ambari came into existence
The genesis of Apache Ambari traces the emergence of Hadoop when its distributed and scalable computing took the world by storm. More and more technologies were incorporated in the existing infrastructure. Gradually Hadoop matured …