Check out the Latest Articles:

Thursday, 3 September 2015

TIBCO EMS (Enterprise Messaging Service) is a standard messaging platform that simplifies and accelerates the integration and management of data distribution in high-performance, enterprise environments – enabling real-time decision-making and event-driven execution of business operations

Here i am going to show you how to install Tibco EMS on your Ubuntu 12.04, a scary tale for beginners, though Tibco EMS best suited for Cent-Os, but what if you have Ubuntu and you dont want to move on to other OS just to install Tibco EMS.

Tibco EMS stands for Enterprise Messaging Service.

Here i am going to show you installation of Tibco using Graphical software method (The easiest one)


Before installation of Tibco your system must have X11 desktop, if you it is well and good otherwise you must follow these steps...

X11 Client Installation


ip@user$ sudo apt-get install xorg openbox


Then  install the xauth pachage, then simply install the applications you need, and apt-get will bring in other packages as needed to satisfy the dependencies


ip@user$sudo apt-get install xauth


To install a minimal X11 on Ubuntu Server Edition enter the following:

ip@user$sudo apt-get install xorg
ip@user$sudo apt-get install openbox

If you are on a Ubuntu based system install the package ia32-libs. If ia32-libs is not available on the version of Ubuntu that is being used, install the following packages:
lib32z1 lib32ncurses5 lib32bz2-1.0 libxtst6:i386 lib32stdc++6 libgtk2.0-0:i386 (lib32stdc++6 libgtk2.0-0:i386 is to support GUI mode) OR

openjdk-7-jdk:i386

ip@user$sudo apt-get install libgl1-mesa-dri:i386

ip@user$sudo apt-get install ia32-libs-multiarch:i386

ip@user$sudo apt-get install ia32-libs-multiarch

ip@user$sudo apt-get install ia32-libs

INSTALLED BY double click on this
 /<home>/tibcoHandson/TIB_ems-dev_8.2.0_linux_x86/TIBCOUniversalInstaller-lnx-x86.bin


you will able to install Tibco using graphical window.

have a good luck :D

For starting Tibco you follow this link

Thursday, 18 December 2014

Steps required to complete Hadoop 2.4.x installation

1.    Install  Java 

       you should have installed java 6 or more version of your ubuntu machine,
       if not install it by executing this command

      sudo apt-get install java-<version>jdk.

2.    Password less ssh among your cluster nodes. If you intended for single
       node setup, then do password less ssh for your own localhost.

      
     $ ssh-keygen -t rsa
     $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
     $ chmod 0600 ~/.ssh/authorized_keys


3.    Download Hadoop 2.4.0 <version>
       you can download and unpacked it in any directory you want, in our case
       it is /home/<username>/hadoop

4.    Configuration and Variable to set.

       4.1
       Go to bash file located in /home/<username>/.bashrc
       set these variables in bashrc file.
      4.2
       Configure hadoop configuration files. These file used for setting your hadoop cluster  infrastr-ucture according to your need .Configuration files can be found in this location.

       $HADOOP_HOME/etc/ hadoop/

       Edit core-site.xml
   
       Edit hdfs-site.xml
       

    
       Edit mapred-site.xml

       Edit yarn-site.xml
   
       4.3
 
       Formate NameNode
   
       Now format the namenode using following command, make sure that 
       Storage directory is

5.   Start  Hadoop Cluster

      Lets start your hadoop cluster using the scripts provides by hadoop. Just
      navigate to your hadoop sbin directory and execute scripts one by one.
      Now run start-yarn.sh script.
     
   
5.   Access Hadoop Cluster
     you can access namenode or hdfs by typing below url to your browser
      address bar
      http://localhost:50070

      for access yarn job runner web UI
      http://localhost:50030

6.   Varify Installation
      run jps on cosole and if console has output similar to this then your hadoop
      cluster is running.

$ jps
      22859 Jps
      18989 DataNode
      12356 ResourceManager
      15897 NodeManager
      23564 NameNode

Monday, 15 December 2014

Quickly emerging as a mainstream use of Hadoop is the concept of the data lake, sometimes called the bit bucket or the landing zone. Organizations know that all of the data they originate or buy could be the source of valuable insights that will create value. Currently most companies use very little of their data, because the current technologies used to process and manage data are prohibitively expensive to consider using for ALL of the data.

Data Lake - a place to store practically unlimited amounts of data of any format, schema and type that is relatively inexpensive and massively scaleable. Data processing software is available to transform the data from its raw state to a finished product.

Hadoop is ideally suited to this use case and no other technology is so well suited. The Hadoop software is relatively inexpensive to buy and operate and is supported by many companies. Hadoop was designed to run on very cheap servers and in fact it works best on these inexpensive servers and many companies have stepped forward to build, sell and service this “commodity hardware”. Hadoop implements a very scalable parallel processing framework that will process exceedingly large amounts of data in a tractable way, and makes it almost impossible to lose data, as it is replicated in triplicate across the cluster.

Hadoop, unlike traditional database management systems (DBMS), deals well with data of any type. Current DBMS’s require that the data managed by the system all fit into a common schema or metamodel. 

So, Hadoop has all of the attributes to be a data lake.

Is a data lake useful to a large enterprise? Most companies use very little of the data generated in the course of business mainly because it is very expensive and time consuming to actually use it for analysis. It can easily cost tens or hundreds of millions of dollars and two to three years using current technology to build a custom analysis of, for example, customer behavior using data from say, a dozen of your customer-oriented IT systems. Many companies bear these costs now because the insight gained from the analysis is so valuable, but they have not applied the same kind of analytical effort to the hundreds or thousands of other data sources they create and own, because of the prohibitive cost.

What if a data lake in conjunction with a small set of relatively inexpensive tools can help an organization derive critical analytical insights from ALL of their data, not just the small sliver they are currently working with? 

It can, right now.

Thursday, 6 November 2014

Default HDP hadoop directory structure

Whenever we install or making a framework around hadoop, every developer come across a common question 
what is the direcotry structure of HDP (hortonworks) distribution of hadoop.

For this i have put the default directory structure of hortonworks distribution
hope it useful to you.



Hadoop ServiceParameterDefinition
HDFS
DFS_NAME_DIR
Space separated list of directories where NameNode should store the file system image.
For example,
/grid/hadoop/hdfs/nn
/grid1/hadoop/hdfs/nn
HDFS
DFS_DATA_DIR
Space separated list of directories where DataNodes should store the blocks.
For example,
/grid/hadoop/hdfs/dn
/grid1/hadoop/hdfs/dn
/grid2/hadoop/hdfs/dn
HDFS
FS_CHECKPOINT_DIR
Space separated list of directories where SecondaryNameNode should store the checkpoint image.
For example,
/grid/hadoop/hdfs/snn
/grid1/hadoop/hdfs/snn
/grid2/hadoop/hdfs/snn
HDFS
HDFS_LOG_DIR
Directory for storing the HDFS logs. This directory name is a combination of a directory and the$HDFS_USER.
For example, /var/log/hadoop/hdfs
where hdfs is the $HDFS_USER
HDFS
HDFS_PID_DIR
Directory for storing the HDFS process ID. This directory name is a combination of a directory and the $HDFS_USER.
For example, /var/run/hadoop/hdfs
where hdfs is the $HDFS_USER
HDFS
HADOOP_CONF_DIR
Directory for storing the Hadoop configuration files.
For example, /etc/hadoop/conf
MapReduce
MAPREDUCE_LOCAL_DIR
Space separated list of directories where MapReduce should store temporary data.
For example,
/grid/hadoop/mapred
/grid1/hadoop/mapred
/grid2/hadoop/mapred
MapReduce
MAPRED_LOG_DIR
Directory for storing the HDFS logs.
For example, /var/log/hadoop/mapred
This directory name is a combination of a directory and the $MAPRED_USER. In the examplemapred is the $MAPRED_USER
MapReduce
MAPRED_PID_DIR
Directory for storing the MapReduce pro­cess ID.
For example, /var/run/hadoop/mapred
This directory name is a combination of a directory and the $MAPRED_USER. In the example,mapred is the $MAPRED_USER.

Friday, 30 May 2014

Now, to install MySQL, run the following command from a terminal prompt:
$ sudo apt-get install mysql-server
$ sudo apt-get install mysql-client
During the installation process you will be prompted to enter a password for the MySQL root user.
Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:
$sudo netstat -tap | grep mysql
When you run this command, you should see the following line or something similar:
tcp        0      0 localhost.localdomain:mysql           *:* LISTEN -
If the server is not running correctly, you can type the following command to start it:
$ sudo /etc/init.d/mysql restart
You can edit the /etc/mysql/my.cnf file to configure the basic settings: log file, port number, etc.

Wednesday, 14 May 2014

Installing Apache web server httpd manually

1. Download Apache Http server from Apache website (e.g httpd-2.2.13.tar.gz)


2. Unzip it with “tar” command.
tar xvfz httpd-2.2.13.tar.gz
 
3. Configure the folder location with “./configure” command.
  ./configure --prefix=/usr/local/apache --enable-shared=max

4. Build it with “make” command.
make
 

5. Install it with “install” command, you need “sudo” 
privileged for this installation. 
sudo make install
 
6. Done, all the Apache http server’s files and folders are located
 at /usr/local/apache 
 


 

Monday, 10 March 2014

What is swappiness and how do I change it?

The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for system and applications if processes are too aggressively moved out of memory.
  1. swappiness can have a value of between 0 and 100
  2. swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible
  3. swappiness=100 tells the kernel to aggressively swap processes out of physical memory and move them to swap cache
The default setting in Ubuntu is swappiness=60. Reducing the default value of swappiness will probably improve overall performance for a typical Ubuntu desktop installation. A value of swappiness=10 is recommended, but feel free to experiment. Note: Ubuntu server installations have different performance requirements to desktop systems, and the default value of 60 is likely more suitable.
To check the swappiness value
cat /proc/sys/vm/swappiness
To change the swappiness value A temporary change (lost on reboot) with a swappiness value of 10 can be made with
sudo sysctl vm.swappiness=10
To make a change permanent, edit the configuration file with your favorite editor:
gksudo gedit /etc/sysctl.conf
Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:
vm.swappiness=10
Save the file and reboot.