Member since
01-19-2017
3679
Posts
632
Kudos Received
372
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 845 | 06-04-2025 11:36 PM | |
| 1426 | 03-23-2025 05:23 AM | |
| 715 | 03-17-2025 10:18 AM | |
| 2557 | 03-05-2025 01:34 PM | |
| 1672 | 03-03-2025 01:09 PM |
12-04-2017
11:46 PM
@Michael Bronson Did you run your command as root instead of hdfs [root@master01 hdfs]# hdfs haadmin -getServiceState master02 Illegal argument: Unable to determine service address for namenode 'master02' To validate master02 can you check the names of the namenodes in hdfs-site.xml
... View more
12-04-2017
11:40 PM
@Michael Bronson The commands failed because the namenodes were already dead. The ls /hadoop-ha/hdfsha is now responding correctly .Election issue means the zookeeper can't put the namenode in Active and standby they all remain in a Can you restart the name nodes and get their status and quickly run with one command $ hdfs haadmin -getAllServiceState Check the health hdfs haadmin -checkHealth There is a difference in your command and the one I posted ,please use the correct serviceId $ hdfs haadmin -transitionToActive <serviceId> --forceactive and yours $ hdfs haadmin -transitionToActive master01 --forceactiv transitionToActive:
... View more
12-04-2017
11:11 PM
@Michael Bronson Can you validate the entry was created. [zk: localhost:2181(CONNECTED) 1] ls /hadoop-ha/hdfsha Check lock [zk: localhost:2181(CONNECTED) 2] get /hadoop-ha/hdfsha/ActiveStandbyElectorLock Check the status $ hdfs haadmin -getServiceState namenode1 $ hdfs haadmin -getServiceState namenode2 Try to failover $ hdfs haadmin -failover Use the below to force one to Active $ hdfs haadmin -transitionToActive <serviceId> --forceactive or $ hdfs haadmin -transitionToStandby <serviceId> Hope that helps
... View more
12-04-2017
10:34 PM
@Michael Bronson Can you delete the entry in zookeeper and restart [zk: localhost:2181(CONNECTED) 1] rmr /hadoop-ha Validate that there is no hadoop-ha entry, [zk: localhost:2181(CONNECTED) 2] ls / Then restart the all components HDFS service. This will create a new ZNode with correct lock(of Failover controller). Also see https://community.hortonworks.com/questions/12942/how-to-clean-up-files-in-zookeeper-directory.html#
... View more
12-04-2017
10:22 PM
@Michael Bronson localhost:2181(CONNECTED) 2] ls /hadoop-ha
[hdfsha] Next localhost:2181(CONNECTED) 2] get /hadoop-ha/hdfsha/ActiveStandbyElectorLock What output do you get ?
... View more
12-04-2017
10:00 PM
@Michael Bronson Can you attach your namenode log How's your /etc/hosts entry? 103.114.28.13 master01.sys4.com
103.114.28.12 master03.sys4.com or IP/hostname /Alias 103.114.28.13 master01.sys4.com master01
103.114.28.12 master03.sys4.com master03 What is the output of $ zkCli.sh [zk: localhost:2181(CONNECTED) 0] ls /hadoop-ha If this cluster is not critical then you might have to have to go through these steps
... View more
12-04-2017
08:44 PM
@Lukas Müller Can you copy and paste the contents of your /etc/yum.repos.d ? The filename /etc/yum.repos.d/ambari-hdp-2.repo doesn't look correct you should see something like this # ls -al /etc/yum.repos.d/
total 56
drwxr-xr-x. 2 root root 4096 Oct 19 13:13 .
......
-rw-r--r-- 1 root root 306 Oct 19 13:04 ambari.repo
-rw-r--r--. 1 root root 575 Aug 30 21:34 hdp.repo
-rw-r--r-- 1 root root 128 Oct 19 13:13 HDP.repo
-rw-r--r-- 1 root root 151 Oct 19 13:13 HDP-UTILS.repo Please correct that and retry
... View more
12-04-2017
08:07 PM
@ Christian Nunez Can you check in the ambari database whether the hosts have been registered below is from mysql mysql> select host_id,host_name,last_registration_time, public_host_name from hosts; Please let me know, an advice always open a new thread because this is closed thread and members usually ignore.
... View more