Created 06-13-2017 06:15 AM
Hi gurus,
Is there a way to identify which is the address to set in the host file? I am trying with 127.0.0.1 and I am getting errors, all the time. I would like to set an address and be able to configure the node in cloudera manager.
Thanks a lot,
Regards,
Created 06-13-2017 06:39 AM
were you able to fix it ? if not i can help you that
Created 06-13-2017 06:40 AM
No, i could not.
I don´t know which is the address that I have to set in the host file.
If you could help me it would be great.
Thanks,
Regards
Created 06-13-2017 06:42 AM
Gotcha . its just matter of two files that you need to tweak.
are you plaining to perform single node or multi node cluster ?
Created 06-13-2017 06:45 AM
it will be a 2 node cluster.
Created on 06-13-2017 06:57 AM - edited 06-13-2017 06:58 AM
I assume you are using vm .
so edit the file accordingly , to perform the SSH configuration follow the link
On both the nodes .
/etc/hosts 192.168.200.201 master 192.168.200.202 slave
On the master node
/etc/sysconfig/network master
on the slave node
/etc/sysconfig/network slave
Below is the best link to walk through the rest of the configuration ,mate
https://www.tutorialspoint.com/hadoop/hadoop_multi_node_cluster.htm
Created 06-13-2017 06:59 AM
thanks. what if i am using a single node cluster?
Thanks a lot!
Regards,
Created 06-13-2017 07:11 AM
if you are plaining for Single node cluster ,
then just the hostname would be of your choice .
/etc/hosts 192.168.200.201 Hello
/etc/sysconfig/network Hello
You have to configure Yum repository , MR2 yarn setup - the below is good link from Cloudera for Single node cluster setup .
https://www.cloudera.com/documentation/enterprise/5-4-x/topics/cdh_qs_yarn_pseudo.html
Created 06-13-2017 08:58 AM
Great, i will try it. Then with this information, which is the IP that I should look for specifying the hosts? Is this the same that I specified in the hosts file?
Thanks a lot,
Regards,
Created 06-13-2017 12:43 PM
@mercedes012345 The hosts file is a mapping between IPs and hostnames. Each lines corresponds to a single entry. The first column if for the IP address, the second column is for the fully qualified domain name, and the last column is for the hostname (columns can be separated by spaces or tabs).
You can have as many entires as needed. I honestly haven't done an install that didn't use DNS first, but unless my memory is failing all hosts need to be resolve each other. So if you are only using hosts files for name resolution you need to include all hosts in the cluster.
@csguna provided some examples. I would flesh it out by include all three columns
/etc/host 192.168.1.1 master.example.com master 192.168.1.2 worker.example.com worker
The hostname in the network file should be in the format of HOSTNAME=master.example.com
Created 06-13-2017 06:38 PM
@mbigelow it come be a dumb question please bear with me .
is it mandatory to use fully qualified domain name ? because we dont not mention them in any of the hadoop configuration files. when it comes to networking not really my area. could you clarify
Created 06-14-2017 08:58 PM
Created 06-15-2017 12:35 AM
Thanks,
Just a question, file /etc/sysconfig/network does not exist, should I create from scratch?
Created 06-15-2017 01:51 AM
which operating system are you using ?
if you are using ubuntu
it should be
/etc/network/, /etc/network/interfaces
if you are using Centos do an ls command - below directory
/etc/sysconfig/
you should see one as network .
Created 06-15-2017 02:00 AM
I am using Ubuntu 14.04. I have a a folder with name /etc/network but no file inside. Should I directly create it? How should I name it?
Thanks a lot,
Kind regards,
Created on 06-15-2017 05:36 AM - edited 06-15-2017 05:40 AM
if you want to change the hostname then do either one of the following
sudo nano /etc/hostname
or
sudo vi /etc/hostname
then restart the machine
to check your hostname after restart - open the terminal and type
hostname
To configure IP address do the following
sudo nano /etc/hosts
Created 06-15-2017 06:23 AM
I have already done this and after checked those file, I can see that the host has changed.
However, I can´t still access to cloudera manager web...is there something else I should do?
Thanks a lot,
Kind regards,
Created 06-16-2017 06:07 PM
are you using vm ?
what error are u getting when you try to hit cloduera manager ?
Created 06-16-2017 07:07 PM
Created 06-15-2017 01:46 AM
@mbigelowThanks for the information , will follow the same and adher the standards.
Created 06-13-2017 12:44 PM