Member since
03-20-2017
21
Posts
0
Kudos Received
0
Solutions
03-28-2017
08:01 AM
1.not all the service can't start 2.I have setup the "sudore" permission properly for every ambari-agent as well as mentioned in "ambari_agent_for_non-root.html" 3.zookeeper can start 4. Start DN error logs bellow stderr: /var/lib/ambari-agent/data/errors-3731.txt Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 174, in <module>
DataNode().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
method(env)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 720, in restart
self.start(env, upgrade_type=upgrade_type)
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/datanode.py", line 61, in start
datanode(action="start")
File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
return fn(*args, **kwargs)
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_datanode.py", line 68, in datanode
create_log_dir=True
File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/utils.py", line 269, in service
Execute(daemon_cmd, not_if=process_id_exists_command, environment=hadoop_env_exports)
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 273, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
tries=tries, try_sleep=try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 293, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ; /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf start datanode'' returned 1. starting datanode, logging to /var/log/hadoop/hdfs/hadoop-hdfs-datanode-hadoop-namenode-1.out stdout: /var/lib/ambari-agent/data/output-3731.txt 2017-03-28 15:59:11,350 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.0.0-169
2017-03-28 15:59:11,352 - Checking if need to create versioned
... View more
03-28-2017
07:25 AM
yes ,i change user to ambari , the error gone. but another quesion occured hadoop's datanode and NameNode can't be start . resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ; /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config
... View more
03-28-2017
03:37 AM
WARN [Server Action Executor Worker 3355] ServerActionExecutor:497 - Task #3355 failed to complete execution due to thrown exception: org.apache.ambari.server.AmbariException:sudo:sa terminal is needed to exc sudo
org.apache.ambari.server.AmbariException: sudo:抱歉,您必须拥有一个终端来执行 sudo
... View more
Labels:
- Labels:
-
Apache Ambari
03-28-2017
03:12 AM
Thanks @Jay SenSharma @Robert Levas ,i find the reason when click Regenerate Keytab, a web page pop, Principle and password needed . but some time it pop up,some time nothing。i will find why .
... View more
03-28-2017
12:37 AM
yes, it happened every time when click 'Regenreate Keytab'. the Ambari version is 2.4.2.0-136
... View more
03-27-2017
10:03 AM
1. ambari is running as ambari i think the reason is "STDERR: kadmin: Cannot read password while initializing kadmin interface" but when i run kadmin at another host(not kdc server) , i can connect the kdc server like this(input kadmin password) . they are all same with kdc's. maybe the ambari-server read password from error config ??
... View more
03-27-2017
08:59 AM
from ambari-web "Admin->Kerberos->", when i click "Regenerate Keytabs" an error occured One error is "/var/log/kadmin.log: don't have permission Another is "kadmin:Can't read password while initalizing kadmin interface"
... View more
Labels:
- Labels:
-
Apache Ambari
-
Kerberos
03-24-2017
03:39 AM
thanks Jay very much! i works ;what's the reason of this error
... View more
03-24-2017
03:26 AM
so many rows in tables, last version in 'clusterconfigmapping ' table mysql>select * from clusterconfig WHERE type_name in ('kerberos-env', 'krb5-conf');
| 1059 | version1490153129291 | 41 | krb5-conf | 2 | 5 | {"domains":"","manage_krb5_conf":"false","conf_dir":"/etc","content":" ***** | 1490153128147 |
*******
82 rows in set (0.02 sec)
mysql> select * from clusterconfigmapping WHERE type_name in ('kerberos-env', 'krb5-conf'); +--------------+------------------+------------+----------+----------------------+-----------+
| type_name | create_timestamp | cluster_id | selected | version_tag | user_name | +--------------+------------------+------------+----------+----------------------+-----------+ | krb5-conf | 1490153128175 | 2 | 0 | version1490153129291 | admin | +--------------+------------------+------------+----------+----------------------+-----------+
mysql> select ccm.type_name, ccm.version_tag, ccm.selected, cc.version_tag from clusterconfigmapping ccm left join clusterconfig cc on ccm.version_tag = cc.version_tag where ccm.selected = 1 and cc.version_tag is NULL; Empty set (0.00 sec)
should i change table 'clusterconfigmapping' ,the column 'selected=1' like this update clusterconfigmapping set select=1 where version_tag='version1490153129291'and type_name='krb5-conf'
... View more
03-24-2017
01:42 AM
when i install kerberos with ambari-server ,an error logs ERROR [ambari-client-thread-35] KerberosHelperImpl:1938 - The 'krb5-conf' configuration is not available
ERROR [ambari-client-thread-35] AbstractResourceProvider:343 - Caught AmbariException when modifying a resource
i open source code of KerberosHelperImpl in ambari-server . here is the code Config configKrb5Conf = cluster.getDesiredConfigByType("krb5-conf");
if (configKrb5Conf == null) {
String message = "The 'krb5-conf' configuration is not available";
LOG.error(message);
throw new AmbariException(message);
}
then i check krb-conf in ambair server host, two files first /etc/krb5.conf second /var/lib/ambari-server/resources/scripts/krb5.conf which file ambari-server used , why the error occured
... View more
Labels:
- Labels:
-
Apache Ambari
-
Kerberos