Support Questions

Find answers, ask questions, and share your expertise

Problem while configuring Namenode HA

avatar
Explorer

Hello everyone

I'm getting below error while configuring Namenode HA. Please help to fix this. I'm using hdp-select version as 2.6.4.25 but its referring 2.6.1.0 (stange). Please let me know from where its refering the old version.

: /var/lib/ambari-agent/data/errors-216.txt

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 37, in <module>
    AfterInstallHook().execute()
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 31, in hook
    setup_stack_symlinks(self.stroutfile)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 62, in setup_stack_symlinks
    stack_select.select(package, json_version)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/stack_select.py", line 313, in select
    Execute(command, sudo=True)
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 262, in action_run
    tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 303, in _call
    raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-python-wrap /usr/bin/hdp-select set hadoop-hdfs-namenode 2.6.1.0-129' returned 1. ERROR: Invalid version 2.6.1.0-129

Valid choices:
2.6.4.25-1



Thanks. 
1 ACCEPTED SOLUTION

avatar
Super Guru

@Saravana V,

Check the folders inside /usr/hdp folder. If you have folder with name "2.6.1.0-129", try moving it to some other directory and retry the operation.

.

Please "Accept" the answer if this helps 🙂

View solution in original post

7 REPLIES 7

avatar
Master Mentor

@Saravana V

Your problem is a broken symlink if you did upgrade please see how to resolve the issue in this hortonworks official documentation

HTH

avatar
Explorer

@Geoffrey Shelton Okot I've tried as you suggested but still the same error persist while installing NN in new server. Please could you let me know from which location its referring the old version.

Thanks.

avatar
Super Guru

@Saravana V,

Check the folders inside /usr/hdp folder. If you have folder with name "2.6.1.0-129", try moving it to some other directory and retry the operation.

.

Please "Accept" the answer if this helps 🙂

avatar
Explorer

@Aditya Sirna There is no such dir inside /usr/hdp/. Does it refer the old version somewhere from cache.

$ ls -la /usr/hdp/

total 20

drwxr-xr-x 5 root root 4096 Sep 22 19:54 .

drwxr-xr-x. 18 root root 4096 Apr 14 16:34 ..

drwxr-xr-x 14 root root 4096 Sep 28 21:15 2.6.4.25-1

drwxr-xr-x 2 hadoop hadoop 4096 Oct 3 18:12 current

drwxr-xr-x 3 hadoop hadoop 4096 Sep 22 19:56 share

avatar
Super Guru

@Saravana V,

Can you try running the below command and check the output

hdp-select status hadoop-hdfs-namenode

Also run the below command on the both the namenode hosts and see if it passes

yum reinstall -y hadoop*

avatar
Explorer

@Aditya Sirna

Great 🙂 this worked for me. Not sure where I was stuck up, still I want to know why it was referring previous version. By the way, thanks for your support which really appreciated.

Thanks.

avatar
Explorer

@Aditya Sirna Thanks for your reply. there is no such directory inside /usr/hdp/. Does it refer the old version in cache.

hdp]$ ls -lrt

total 12

drwxr-xr-x 3 hadoop hadoop 4096 Sep 22 19:56 share

drwxr-xr-x 14 root root 4096 Sep 28 21:15 2.6.4.25-1

drwxr-xr-x 2 hadoop hadoop 4096 Oct 3 18:12 current

Thanks.