Table of Contents
Today’s blog will walk you through the introduction of Sahara, how it integrates with swift and the steps to install Sahara on your system. Elastic Map Reduce (Sahara) is one of the components of OpenStack and with this component; we are going to continue our discussion on components of OpenStack through our series!
Sahara:
An objective of Sahara is to offer simple methods to the users to preplanned Hadoop clusters via referring multiple options such as cluster topology, Hadoop version, hardware details of nodes and some more. Once the users fill out each and every parameter after that Sahara installs the clusters in a few periods of time.
Sahara also offers ways to escalate previously planned cluster by means of adding or removing worker nodes as per the demand. The solution obtained through this task will tackle with below mentioned used cases:
Main features of Sahara are: –
It offers Graphic User Interface due to the capacity to use all features of Sahara.
It verifies the users and also provides safety token which can be used for working with the OpenStack, therefore, restricting the users’ capabilities inside Sahara to its privileges from OpenStack.
Nova supports in provisioning of virtual machines required for the Hadoop cluster.
The Virtual Machine images of Hadoop are stored in Glance, at the same time, every image contains a preinstalled Operating System and Hadoop. Already installed Hadoop helps us by giving a good advantage for startup nodes.
It may be used as a repository for data which can be dealt with Hadoop jobs.
As discussed in the previous blog, Swift service is common object storage in the environment of OpenStack or equivalent of Amazon S3. According to the rule, it is installed on the bare metal machines or systems. For processing the data stored on OpenStack, Hadoop is already present on OpenStack. For helping the task of data processing, a few advancements are on their way.
First is, a file system execution for Swift: With the help of HADOOP -8545 in place, jobs related to Hadoop could work with Swift as normally as with HDFS.
There is a request for change: which is Change 16b1ba25b (merged). This executes the capability to register the objects’ endpoints, accounts for making it possible to merge the swift with the software which depends upon information about the location of data for avoiding the network overhead.
Pluggable installation and Controlling:
Along with the monitoring or controlling abilities offered specifically by the Hadoop management tooling which is vendor specific, Sahara will offer pluggable incorporation with outer scrutinizing systems like Nagios or Zabbix.
These both tools related to installation and monitoring will be deployed on a single virtual machine, thus offering only one event to handle multiple clusters at a time.
Architecture of Sahara contains multiple components as follows:
The entire logic of business is stored here.
It is accountable for the verification and approval of the client.
DAL Stays internal models in database.
This component is accountable for the interaction between the Nova and Glance.
The plugin method is accountable for installing Hadoop on the pre-planned virtual machines; management solutions such as Apache Ambari and Cloudera Management Console can be used for installing Hadoop on provisioned virtual machines.
Reveals the functionality of Sahara through REST API.
Same as other components of OpenStack, Sahara owns its own Python client.
The Graphic user Interface for Sahara is situated on Horizon.
Installation of Sahara:
Before moving on with the installation, it is recommended that you should install Sahara in such a way that it will maintain the consistent state of your system. For this purpose, we recommend the following 3 alternatives:
Let’s discuss each of these installation methods:
$ yum install openstack-sahara
/etc/sahara/sahara.conf
$ sahara-db-manage –config-file /etc/sahara/sahara.conf upgrade head
$ service openstack-sahara-api start
First of all, using your Operating System manager, you will require installing several packages, which depends upon the operating system that you are using.
$ sudo apt-get install python-setuptools python-virtualenv python-dev
$ sudo yum install gcc python-setuptools python-virtualenv python-deve1
$ sudo yum install gcc python-setuptools python-deve1
$ sudo easy_install pip
$ sudo pip install virtualenv
$ virtualenv sahara-venv
Above command will install python virtual environment into Sahara-venv directory present in your current working directory. There is no need of any superuser privileges for this command and this command can be executed in any directory to which, the current user has to write permission.
$ sahara-venv/bin/pip install sahara
Or
You could get a Sahara archive from http://tarballs.openstack.org/sahara/
And install it using pip:
$ sahara-venv/bin/pip install ’http://tarballs.openstack.org/sahara/sahara-master.tar.gz’
Important Note:
Remember that Sahara-master.tar.gz consists of the current changes and therefore it may not be stable at present. Therefore, we would recommend you to browse: http://tarballs.openstack.org/sahara/
And choose the current and stable version of Sahara.
$ mkdir sahara-venv/etc
$ cp sahara-venv/share/sahara/sahara.conf.sample-basic sahara-venv/etc/sahara.conf
Then it is important to make the required changes in:
sahara-venv/etc/sahara.conf.
…
[mysqld]
… max_allowed_packet = 256M
And after that restart mysql server.
$ sahara-venv/bin/sahara-db-manage –config-file sahara-venv/etc/sahara.conf upgrade head
$ sahara-venv/bin/sahara-api –config-file sahara-venv/etc/sahara.conf
Here we have completed the installation of Sahara!
That’s all for today! Please do not forget to leave a comment in the comment section below. Thank you for reading the blog. See you soon with another interesting blog!
also read:-
In today's digital landscape, timing is everything. Whether you're a social media manager, business owner, or content creator, the success…
Are you a website owner? Maintaining the website is the prime concern for any website owner. Yes, it’s equally important…
If you’ve planned to launch a WordPress website, you might get a question, “How do I log in to WordPress?”…
As the demand for virtual private servers (VPS) continues to grow, businesses and individuals are faced with a crucial decision:…
Web hosting is a large industry, as many other factors help any web hosting provider to form a company. The…