Saturday, July 27, 2019

Book Review: "Laughable Loves"

Image Source: https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1547124116i/26101._UY1024_SS1024_.jpg

It is a collection of seven love stories. It indeed is laughable if we take it in a light way otherwise it is full of erotic games and a sexual relationship between a man and a woman. Here is the review about seven different stories:
  1. Nobody will laugh: The first story is revolving around few characters but is very humorous. It is about the lie effect, how one lie leads to another and so on. The moral of the story is woman don't like liers, The one who caught red handed though. 
  2. The golden apple of eternal desire: This is the story of two friends who loves hunting girls. They show different ways to impress a woman and control her! I don't find it funny anyway.
  3. The hitchhiking game: This is a story of a couple who play erotic games when they are on a vacation. It is more of an erotic than funny.
  4. Symposium: It is an erotic comedy. It is getting interesting after Elisabeth's suicide attempt but then story got wrapped up too early.
  5. Let the old dead make room for young dead: The story revolve around two characters but it is very interesting one. It shows a lifelong love.
  6. Dr. Havel after twenty years: It is story about Dr. Havel and his expertise in handling women. Though story becomes little humorous after the meeting between Dr. Havel and the editor.
  7. Eduard and God: This is the best story of the book. It shows true love over erotic feelings.












Saturday, July 20, 2019

Hadoop 1.2.1 Installation and Configuration on Multiple Nodes

There are few changes one has to make for multi-node setup from single node. First you need to complete single node setup up to DFS formatting step.

Mainly there are five steps to follow for multi-node setup from single node:

STEPS:
  1. SSH COPY ID to all nodes
  2. Configure masters and slaves
  3. Configure CORE-SITE.XML and MAPRED-SITE.XML
  4. Format DFS
  5. START-ALL.SH
Now I am going to explain this steps in detail:




Step-1 SSH COPY ID to all nodes:
From NAME NODE, We need to generate SSH KEY and distribute it to all the SLAVE NODES and also SECONDARY NAME NODE (if any)
Command:
ssh-copy-id -i $HOME/.ssh/id_rsa.pub hadoop@datanode1
here "hadoop" is an user name and "datanode1" is a system name, which you need to change according to your setup.
COPY FINGERPRINT : GIVE YES
Do the same for all DATA NODES and for SECONDARY NAME NODE (if any)
Check whether it is successfully copied or not
ssh datanode1
it should not ask for password
eg.
ssh-copy-id -i $HOME/.ssh/id_rsa.pub hadoop@datanode1
ssh-copy-id -i $HOME/.ssh/id_rsa.pub hadoop@datanode2
ssh-copy-id -i $HOME/.ssh/id_rsa.pub hadoop@datanode3
 



Step-2 Configure masters and slaves:
We need to do it on NAME NODE alone (not on the DATA NODES and SECONDARY NAME NODE)
Go to NAME NODE
Command:
cd /usr/local/hadoop/conf
Find the two files: masters, and slaves
Masters for NAME NODE and SECONDARY NAME NODE
Slaves for DATA NODES
Command:
sudo nano /usr/local/hadoop/conf/masters
By default it contains 'localhost', Change it to the name of NAME NODE (i.e. namenode in my case)
Ctrl + o to save
Enter
Ctrl + x to exit
sudo nano /usr/local/hadoop/conf/slaves
By default it contains 'localhost', Change it to contain names of all DATA NODES one per line, in my case
datanode1
datanode2
datanode3
Ctrl + o to save
Enter
Ctrl + x to exit




Step-3 Configure CORE-SITE.XML and MAPRED-SITE.XML
go to SLAVES/SECONDARY NAME NODE and we need to make them point to the master
Command:
sudo nano /usr/local/hadoop/conf/core-site.xml
Check whether it is pointing to NAME NODE (i.e. namenode in my case) in 'FS.DEFAULT.NAME', if it is pointing to localhost:10001, update localhost with namenode
Ctrl + o to save
Enter
Ctrl + x to exit
Same way for MAPRED-SITE.XML
Command:
sudo nano /usr/local/hadoop/conf/mapred-site.xml
Check whether it is pointing to the JOB TRACKER / NAME NODE (i.e. namenode, in my case)
If it is 'localhost:10002', update it as 'namenode:10002'
Remove LOCAL HOST entries from /ETC/HOSTS file
Command:
sudo nano /etc/hosts
remove localhost and entries for 127.0.0.1




Step-4 Format DFS:
If converting the existing single node installation then you must delete the /USR/LOCAL/HADOOP/TMP and then create it again in all the nodes and then format it from NAME NODE alone. skip up to formatting steps if you haven't formatted your HDFS with single node setup.
Command:
To remove directory:
sudo rm -r /usr/local/hadoop/tmp
Create tmp directory
sudo mkdir /usr/local/hadoop/tmp
Changing ownership of tmp as well as hadoop directory
sudo chown hadoop /usr/local/hadoop/tmp
sudo chown hadoop /usr/local/hadoop
Format NAME NODE
hadoop namenode -format
Check for 'name node successfully formatted' message




Step-5 START-ALL.SH
To start hadoop cluster with multi-node, we have to run this command from NAME NODE and it starts respective services on all NODES
Command:
start-all.sh
jps
check each system separately to find specific JVMs running on them
Check number of live nodes in web GUI (it will take few minuets)
stop-all.sh

For any queries you can write in a comment or mail me at: “brijeshbmehta@gmail.com”

Courtesy: Mr. Anand Kumar, NIT, Trichy













Saturday, July 13, 2019

Book Review: "Dhirubhaism (Gujarati)"

Image Source: https://rukminim1.flixcart.com/image/832/832/book/8/7/8/dhirubhaism-original-imadrkjptnbfnfh9.jpeg?q=70




Dhirubhaism is a story of the work ethics Dhirubhai Ambani believes in. How a small town boy become the most successful businessman in India. He believe in some ideology and he follows it through out his life and most of the people around him believe that those ideologies has make him successful. The author Mr. A. G. Krishnamurthy is one the closest friend to Dhirubhai. In this book he discuss the ideologies of Dhirubhai and his success story due to those ideology. It is worth reading for all the entrepreneurs and the one dream of it.














Friday, July 5, 2019

Book Review: "EM and the big HOOM"

Image Source: https://images-na.ssl-images-amazon.com/images/I/51omE0F1hPL._SX326_BO1,204,203,200_.jpg

The book was gifted by one of my colleague as a farewell gift. I love reading books but this is something different! It is a story of a family 'EM' the mother, 'HOOM' the father, a son (who tells the story), and a daughter. Story is more focused on EM than HOOM. The author added all the possible feelings in the story. EM is a mentally unstable character but her family loves and support her a lot. It is very difficult to take care of a person with suicidal tendency but the family stood strong. The story starts with EM and HOOM's relationship and end with EM's death but every moment of it is very well written in the book. I really like the book and I recommend it to the serious story lovers.

Wisdoms:

  1. I used to wonder: What must it mean for a lower middle-class woman to tell a strange about her sexual history and her fantasy life? Does she understand the free association that is sometimes used, or why the psychiatric social worker wants to know so much about her childhood? Those who have some experience with homeopathy may not be shaken or shamed by the bizarreness of the question, but which Indian woman will talk about masturbation? And what can mental health mean in a nation that wants an injection to put it back on its feet the next morning.
  2. God listens to the prayers of mental because they are touched by his hands.
  3. I believe in Jesus Christ and the Buddha and Krishna and Allah because you can believe in anything if you look straight at the message:
    • Love one another? Good idea
    • Detach yourself? Good idea
    • Do your duty? Good idea
    • Submit to the will of God and go with the flow? Good idea
  4. If anyone ever does you a favor, you cannot forget it. You must always credit them, especially in public, especially to those they love and those who love them. You must pay your debts, even those that you can never fully repay. Anything less makes you less.
  5. It occurred to me then that the mad in India are not the mentally ill, they are, simply mad. They have no other identity. Here, everyone was mad. They had lost their hair so that the institution could keep them free of lice. They had lost their clothes because their families had abandoned them, and they had lost their lives because they had lost their families. They were now free in a bizarre sort of way. They were also alone except for the shoulder in front and the touch of the fingers of the person following behind.
  6. When you're a child, cast the runes. When you're an adult, ask an expert.