- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Problem while configuring Namenode HA
- Labels:
-
Apache Hadoop
-
Apache YARN
Created 09-28-2018 04:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 10-03-2018 10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 🙂
Created 09-28-2018 06:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your problem is a broken symlink if you did upgrade please see how to resolve the issue in this hortonworks official documentation
HTH
Created 10-03-2018 09:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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.
Created 10-03-2018 10:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 🙂
Created 10-03-2018 11:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
Created 10-03-2018 12:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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*
Created 10-03-2018 01:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 10-03-2018 05:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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.