Wednesday, February 3, 2016

Mongo DB Installation

Mongo DB Installation Steps:
Step 1:
Click this link to get the mongo DB software http://www.mongodb.org/downloads  
Step 2:
We will get this window, select one option based on O.S configured in your system
Step 3:
By selecting the above option we will get setup file

Step 4:
Double click on setup file we will get this window
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 1.PNG

Step 5:
Click the license agreement check box
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 2.PNG
Step 6:
Select Typical as setup type
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 3.PNG

Step 7:
Click Install option
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 4.PNG
Step 8:
Click Finish option
C:\Users\SSS2014033\Desktop\Mogadb Intallation\step 6.PNG

Mongo DB Connection:
Step 9:
After installing the mongo DB
We will get that installation path in this above location
C:\Program Files\MongoDB 2.6 Standard\bin
Step 10:
Open command prompt and copy the mongo DB installation path
cmd>cd C:\Program Files\MongoDB 2.6 Standard\bin


Step 11:
Mongo DB requires a data folder to store its files. The default location for the Mongo DB data directory is c:\data\db. So you need to create this folder using the Command Prompt. Execute the following command sequence
C:\>md data
C:\md data\db

Step 12:
C:\Program Files\MongoDB 2.6 Standard\bin >mongod.exe --dbpath "c:\data\db"
in this dB path represents the path where to store data, we will put that path in double-quotes(“ “)
This will show waiting for connections message on the console output indicates that the mongod.exe process is running successfully.




Step 13:
Now to run the mongo db you need to open another command prompt and issue the following command
C:\Program Files\MongoDB 2.6 Standard\bin >mongo.exe
MongoDB shell version: 2.4.6
Connecting to: test
>


Windows 7 Installation

Windows 7 installation
General disclaimer: backup all files before installing Windows.
Insert your Windows 7 DVD/USB and boot from it.
    (To boot from anything, you have to press a certain key as soon as your computer starts to access the boot menu. This key is usually displayed on the screen when the computer starts. If not, Google for "<your PC manufacturer/model> boot menu key".)
http://i0.wp.com/www.door2windows.com/files/install-windows/7/1.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/14.png

Select your language, time & currency format, keyboard or input method and click Next.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/2.png

Click Install now.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/3.png
Check I accept the license terms and click Next.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/4.png

Click Upgrade if you already have a previous Windows version and want to upgrade it or Custom if you don't have a previous Windows version or want to install a fresh copy of Windows 7.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/5.png
(Skip this step if you chose Upgrade and have only one partition)
Select the drive where you want to install Windows 7 and click Next. If you want to make any partitions,
Click Drive options (advanced), make the partitions and then click Next.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/6.png
The setup will now start installing Windows 7. The first step, Copying Windows files will complete instantly.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/8.png

The second step will take the most time.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/9.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/10.png

The third and fourth step will also complete instantly like the first step.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/11.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/12.png

After that it will automatically restart after 15 seconds and continue the setup. You can also click Restart now to restart without any delays.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/13.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/14.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/15.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/16.png

It will now automatically restart again and continue the setup. You can click Restart now to restart without any delays.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/13.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/14.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/18.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/19.png

Type your desired user name in the text-box and click Next. It will automatically fill up the computer name.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/20.png

If you want to set a password, type it in the text-boxes and click Next.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/21.png

Type your product key in the text-box and click Next. You can also skip this step and simply click Next if you want to type the product key later. Windows will run only for 30 days if you do that.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/22.png

Select your desired option for Windows Updates.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/23.png

Select your time and click Next.

http://i0.wp.com/www.door2windows.com/files/install-windows/7/24.png

If you are connected to any network, it will ask you to set the network's location.
http://i0.wp.com/www.door2windows.com/files/install-windows/7/25.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/26.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/27.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/28.png


http://i0.wp.com/www.door2windows.com/files/install-windows/7/29.png



http://i0.wp.com/www.door2windows.com/files/install-windows/7/30.png

And there you have Windows 7 installed!

Monday, December 14, 2015

Hadoop EcoSystem

Hadoop

Hadoop is an open-source framework that allows to store and process big data in a distributed environment across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.
HDFS
(Hadoop Distributed File System) core component of Hadoop which is used for storage of large data sets.It is a fault-tolerant, distributed, horizontally scalable storage system that works across multiple commodity servers. It can be used as part of a Hadoop cluster or as a stand-alone generic file system. HDFS is open source which means an organization can run this file system to process of data with no licensing costs.

MapReduce

MapReduce is a programming paradigm that runs in the background of Hadoop to provide scalability and easy data-processing solutions. This tutorial explains the features of MapReduce and how it works to analyze Big Data.
YARN
YARN forms an integral part of Hadoop 2.0.YARN is great enabler for dynamic resource utilization on Hadoop framework as users can run various Hadoop applications without having to bother about increasing workloads.
Impala
Cloudera Impala is a query engine that runs on Apache Hadoop. The project was announced in October 2012 with a public beta test distribution and became generally available in May 2013.

Impala brings scalable parallel database technology to Hadoop, enabling users to issue low-latency SQL queries to data stored in HDFS and Apache HBase without requiring data movement or transformation. Impala is integrated with Hadoop to use the same file and data formats, metadata, security and resource management frameworks used by MapReduce, Apache Hive, Apache Pig and other Hadoop software.

Impala is promoted for analysts and data scientists to perform analytics on data stored in Hadoop via SQL or business intelligence tools. The result is that large-scale data processing (via MapReduce) and interactive queries can be done on the same system using the same data and metadata – removing the need to migrate data sets into specialized systems and/or proprietary formats simply to perform analysis

Hive

Hive is a data warehouse infrastructure tool to process structured data in Hadoop. It resides on top of Hadoop to summarize Big Data, and makes querying and analyzing easy.
This is a brief tutorial that provides an introduction on how to use Apache Hive HiveQL with Hadoop Distributed File System.

HBase

HBase is a data model that is similar to Google’s big table designed to provide quick random access to huge amounts of structured data. This tutorial provides an introduction to HBase, the procedures to set up HBase on Hadoop File Systems, and ways to interact with HBase shell. It also describes how to connect to HBase using java, and how to perform basic operations on HBase using java.

Mahout

Apache Mahout is an open source project that is primarily used in producing scalable machine learning algorithms. This brief tutorial provides a quick introduction to Apache Mahout and explains how it can be applied to make recommendations and organize documents in more usable clusters.

Sqoop

Sqoop is a tool designed to transfer data between Hadoop and relational database servers. It is used to import data from relational databases such as MySQL, Oracle to Hadoop HDFS, and export from Hadoop file system to relational databases. 

Zookeeper 

ZooKeeper is a distributed co-ordination service to manage large set of hosts. Co-ordinating and managing a service in a distributed environment is a complicated process. ZooKeeper solves this issue with its simple architecture and API. ZooKeeper allows developers to focus on core application logic without worrying about the distributed nature of the application.
The ZooKeeper framework was originally built at “Yahoo!” for accessing their applications in an easy and robust manner. Later, Apache ZooKeeper became a standard for organized service used by Hadoop, HBase, and other distributed frameworks. For example, Apache HBase uses ZooKeeper to track the status of distributed data.

Apache Pig

Apache Pig is a platform for analyzing large data sets that consists of a high-level language for expressing data analysis programs, coupled with infrastructure for evaluating these programs. The salient property of Pig programs is that their structure is amenable to substantial parallelization, which in turns enables them to handle very large data sets.
At the present time, Pig's infrastructure layer consists of a compiler that produces sequences of Map-Reduce programs, for which large-scale parallel implementations already exist (e.g., the Hadoop sub project). Pig's language layer currently consists of a textual language called Pig Latin, which has the following key properties:
  • Ease of programming. It is trivial to achieve parallel execution of  simple, "embarrassingly parallel" data analysis tasks. Complex tasks comprised of multiple interrelated data transformations are explicitly encoded as data flow sequences, making them easy to write, understand, and maintain.
  • Optimization opportunities. The way in which tasks are encoded permits the system to optimize their execution automatically, allowing the user to focus on semantics rather than efficiency.
  • Extensible. Users can create their own functions to do special-purpose processing.

Apache Oozie

Oozie is the only workflow manager with built-in Hadoop actions, making workflow development, maintenance and troubleshooting easier that lets users define a series of jobs written in multiple languages – such as Map Reduce, Pig and Hive.


Apache Flume
Flume is a standard, simple, robust, flexible, and extensible tool for data ingestion from various data producers (web servers) into Hadoop. In this tutorial, we will be using simple and illustrative example to explain the basics of Apache Flume and how to use it in practice.
Apache Flume is a tool/service/data ingestion mechanism for collecting aggregating and transporting large amounts of streaming data such as log files, events (etc...) from various sources to a centralized data store.
Flume is a highly reliable, distributed, and configurable tool. It is principally designed to copy streaming data (log data) from various web servers to HDFS.

Apache Spark

Apache Spark is a lightning-fast cluster computing designed for fast computation. It was built on top of Hadoop MapReduce and it extends the MapReduce model to efficiently use more types of computations which includes Interactive Queries and Stream Processing

AVRO

Apache Avro is a language-neutral data serialization system, developed by Doug Cutting, the father of Hadoop.
Data serialization is a mechanism to translate data in computer environment (like memory buffer, data structures or object state) into binary or textual form that can be transported over network or stored in some persistent storage media.
Java and Hadoop provides serialization APIs, which are java based, but Avro is not only language independent but also it is schema-based.

CouchDB

CouchDB is an open source database developed by Apache software foundation. The focus is on the ease of use, embracing the web. It is a NoSQL document store database.
It uses JSON, to store data (documents), java script as its query language to transform the documents, HTTP protocol for API to access the documents, query the indices with the web browser. It is a multi master application released in 2005 and it became an Apache project in 2008.