2016-07-17 2 views
1

나는 Ambari에게 spark의 일부 기능을 테스트하기위한 플랫폼을 구축하고 싶습니다. CentOS 7과 함께 설치된 두 개의 VM (mercury.gc 및 venus.gc)을 만들기 위해 Win 10 + Hyper-V를 사용합니다. Ambari 2.2.2.0이 하나의 VM (mercury.gc)에 설치되었으며이를 사용하여 설정하려고합니다 2 대의 VM. 확인 호스트를 실행할 때 두 리턴의 진행이 실패했습니다. 다음은 한 시스템의 로그입니다.Ambari 확인 호스트 단계 실패 : 서버 등록 실패

Connection to mercury.gc closed. 
SSH command execution finished 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:58 

Registering with the server... 
Registration with the server failed. 

암호가없는 ssh 로그인이 제대로 작동하고 방화벽과 selinux가 꺼져 있는지 확인했습니다. 로그에서 어떤 일이 발생하는지 파악할 수 없습니다. 이 문제를 해결할 수있는 사람이 있습니까? mercury.gc

INFO 2016-07-19 20:35:33,732 main.py:74 - loglevel=logging.INFO 
INFO 2016-07-19 20:35:33,732 main.py:74 - loglevel=logging.INFO 
INFO 2016-07-19 20:35:33,733 DataCleaner.py:39 - Data cleanup thread started 
INFO 2016-07-19 20:35:33,734 DataCleaner.py:120 - Data cleanup started 
INFO 2016-07-19 20:35:33,734 DataCleaner.py:122 - Data cleanup finished 
INFO 2016-07-19 20:35:33,775 PingPortListener.py:50 - Ping port listener started on port: 8670 
INFO 2016-07-19 20:35:33,776 main.py:289 - Connecting to Ambari server at https://mercury.gc:8440 (192.168.137.100) 
INFO 2016-07-19 20:35:33,776 NetUtil.py:60 - Connecting to https://mercury.gc:8440/ca 
INFO 2016-07-19 20:35:33,870 threadpool.py:52 - Started thread pool with 3 core threads and 20 maximum threads 
WARNING 2016-07-19 20:35:33,870 AlertSchedulerHandler.py:246 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs. 
INFO 2016-07-19 20:35:33,870 AlertSchedulerHandler.py:142 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0x1a0aad0>; currently running: False 
INFO 2016-07-19 20:35:35,874 hostname.py:89 - Read public hostname 'mercury.gc' using socket.getfqdn() 
INFO 2016-07-19 20:35:35,999 ExitHelper.py:53 - Performing cleanup before exiting... 
INFO 2016-07-19 20:35:36,000 ExitHelper.py:67 - Cleanup finished, exiting with code:0 

에서 내 ambari-agent.log 다음이며, 다음은/etc/hosts 파일이다 :

========================== 
Creating target directory... 
========================== 

Command start time 2016-07-18 00:29:51 

Connection to mercury.gc closed. 
SSH command execution finished 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:51 

========================== 
Copying common functions script... 
========================== 

Command start time 2016-07-18 00:29:51 

scp /usr/lib/python2.6/site-packages/ambari_commons 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:52 

========================== 
Copying OS type check script... 
========================== 

Command start time 2016-07-18 00:29:52 

scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:52 

========================== 
Running OS type check... 
========================== 

Command start time 2016-07-18 00:29:52 
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7 

Connection to mercury.gc closed. 
SSH command execution finished 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:52 

========================== 
Checking 'sudo' package on remote host... 
========================== 

Command start time 2016-07-18 00:29:52 
sudo-1.8.6p7-17.el7_2.x86_64 

Connection to mercury.gc closed. 
SSH command execution finished 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:53 

========================== 
Copying repo file to 'tmp' folder... 
========================== 

Command start time 2016-07-18 00:29:53 

scp /etc/yum.repos.d/ambari.repo 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:53 

========================== 
Moving file to repo dir... 
========================== 

Command start time 2016-07-18 00:29:53 

Connection to mercury.gc closed. 
SSH command execution finished 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:53 

========================== 
Changing permissions for ambari.repo... 
========================== 

Command start time 2016-07-18 00:29:53 

Connection to mercury.gc closed. 
SSH command execution finished 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:54 

========================== 
Copying setup script file... 
========================== 

Command start time 2016-07-18 00:29:54 

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:54 

========================== 
Running setup agent script... 
========================== 

Command start time 2016-07-18 00:29:54 
("INFO 2016-07-18 00:16:30,697 threadpool.py:52 - Started thread pool with 3 core threads and 20 maximum threads 
WARNING 2016-07-18 00:16:30,697 AlertSchedulerHandler.py:246 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs. 
INFO 2016-07-18 00:16:30,697 AlertSchedulerHandler.py:142 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0x1de0ad0>; currently running: False 
INFO 2016-07-18 00:16:32,701 hostname.py:89 - Read public hostname 'mercury.gc' using socket.getfqdn() 
INFO 2016-07-18 00:16:32,805 ExitHelper.py:53 - Performing cleanup before exiting... 
INFO 2016-07-18 00:16:32,805 ExitHelper.py:67 - Cleanup finished, exiting with code:0 
INFO 2016-07-18 00:29:55,955 main.py:74 - loglevel=logging.INFO 
INFO 2016-07-18 00:29:55,957 main.py:74 - loglevel=logging.INFO 
INFO 2016-07-18 00:29:55,958 DataCleaner.py:39 - Data cleanup thread started 
INFO 2016-07-18 00:29:55,961 DataCleaner.py:120 - Data cleanup started 
INFO 2016-07-18 00:29:55,961 DataCleaner.py:122 - Data cleanup finished 
INFO 2016-07-18 00:29:56,012 PingPortListener.py:50 - Ping port listener started on port: 8670 
INFO 2016-07-18 00:29:56,013 main.py:289 - Connecting to Ambari server at https://mercury.gc:8440 (192.168.137.100) 
INFO 2016-07-18 00:29:56,013 NetUtil.py:60 - Connecting to https://mercury.gc:8440/ca 
INFO 2016-07-18 00:29:56,099 threadpool.py:52 - Started thread pool with 3 core threads and 20 maximum threads 
WARNING 2016-07-18 00:29:56,100 AlertSchedulerHandler.py:246 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs. 
INFO 2016-07-18 00:29:56,100 AlertSchedulerHandler.py:142 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0x10e6ad0>; currently running: False 
INFO 2016-07-18 00:29:58,103 hostname.py:89 - Read public hostname 'mercury.gc' using socket.getfqdn() 
INFO 2016-07-18 00:29:58,207 ExitHelper.py:53 - Performing cleanup before exiting... 
INFO 2016-07-18 00:29:58,207 ExitHelper.py:67 - Cleanup finished, exiting with code:0 
", None) 
("INFO 2016-07-18 00:16:30,697 threadpool.py:52 - Started thread pool with 3 core threads and 20 maximum threads 
WARNING 2016-07-18 00:16:30,697 AlertSchedulerHandler.py:246 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs. 
INFO 2016-07-18 00:16:30,697 AlertSchedulerHandler.py:142 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0x1de0ad0>; currently running: False 
INFO 2016-07-18 00:16:32,701 hostname.py:89 - Read public hostname 'mercury.gc' using socket.getfqdn() 
INFO 2016-07-18 00:16:32,805 ExitHelper.py:53 - Performing cleanup before exiting... 
INFO 2016-07-18 00:16:32,805 ExitHelper.py:67 - Cleanup finished, exiting with code:0 
INFO 2016-07-18 00:29:55,955 main.py:74 - loglevel=logging.INFO 
INFO 2016-07-18 00:29:55,957 main.py:74 - loglevel=logging.INFO 
INFO 2016-07-18 00:29:55,958 DataCleaner.py:39 - Data cleanup thread started 
INFO 2016-07-18 00:29:55,961 DataCleaner.py:120 - Data cleanup started 
INFO 2016-07-18 00:29:55,961 DataCleaner.py:122 - Data cleanup finished 
INFO 2016-07-18 00:29:56,012 PingPortListener.py:50 - Ping port listener started on port: 8670 
INFO 2016-07-18 00:29:56,013 main.py:289 - Connecting to Ambari server at https://mercury.gc:8440 (192.168.137.100) 
INFO 2016-07-18 00:29:56,013 NetUtil.py:60 - Connecting to https://mercury.gc:8440/ca 
INFO 2016-07-18 00:29:56,099 threadpool.py:52 - Started thread pool with 3 core threads and 20 maximum threads 
WARNING 2016-07-18 00:29:56,100 AlertSchedulerHandler.py:246 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs. 
INFO 2016-07-18 00:29:56,100 AlertSchedulerHandler.py:142 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0x10e6ad0>; currently running: False 
INFO 2016-07-18 00:29:58,103 hostname.py:89 - Read public hostname 'mercury.gc' using socket.getfqdn() 
INFO 2016-07-18 00:29:58,207 ExitHelper.py:53 - Performing cleanup before exiting... 
INFO 2016-07-18 00:29:58,207 ExitHelper.py:67 - Cleanup finished, exiting with code:0 
", None) 

Connection to mercury.gc closed. 
SSH command execution finished 
host=mercury.gc, exitcode=0 
Command end time 2016-07-18 00:29:58 

Registering with the server... 
Registration with the server failed. 

UPDATE :

다음은 ambari에 의해 주어진 전체 로그입니다 양쪽 호스트 모두

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 
::1   localhost localhost.localdomain localhost6 localhost6.localdomain6 

192.168.137.100 mercury.gc mercury 
192.168.137.101 venus.gc venus 

이것은/etc/ambari-server/c의 내 ambari.properties입니다. ONF/

jdk1.7.dest-file=jdk-7u67-linux-x64.tar.gz 
kerberos.keytab.cache.dir=/var/lib/ambari-server/data/cache 
views.request.read.timeout.millis=10000 
agent.package.install.task.timeout=1800 
server.connection.max.idle.millis=900000 
bootstrap.script=/usr/lib/python2.6/site-packages/ambari_server/bootstrap.py 
server.version.file=/var/lib/ambari-server/resources/version 
recovery.type=AUTO_START 
api.authenticate=true 
http.strict-transport-security=max-age=31536000 
server.persistence.type=local 
jdk1.8.jcpol-url=http://public-repo-1.hortonworks.com/ARTIFACTS/jce_policy-8.zip 
jdk1.8.dest-file=jdk-8u60-linux-x64.tar.gz 
rolling.upgrade.skip.packages.prefixes= 
common.services.path=/var/lib/ambari-server/resources/common-services 
http.x-frame-options=DENY 
server.task.timeout=1200 
jce.download.supported=true 
agent.threadpool.size.max=25 
recovery.lifetime_max_count=1024 
jdk1.8.re=(jdk.*)/jre 
ambari.python.wrap=ambari-python-wrap 
ambari-server.user=root 
agent.task.timeout=900 
jdk1.7.url=http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-7u67-linux-x64.tar.gz 
server.jdbc.user.name=ambari 
server.os_family=redhat7 
java.home=/usr/java/jdk1.8.0_92/ 
server.jdbc.postgres.schema=ambari 
jdk.name=jdk-8u60-linux-x64.tar.gz 
user.inactivity.timeout.default=0 
java.releases=jdk1.8,jdk1.7 
skip.service.checks=false 
shared.resources.dir=/usr/lib/ambari-server/lib/ambari_commons/resources 
jdk.download.supported=true 
recommendations.dir=/var/run/ambari-server/stack-recommendations 
ulimit.open.files=10000 
agent.stack.retry.tries=5 

rolling.upgrade.min.stack=HDP-2.2 
jdk1.8.desc=Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8 
server.os_type=centos7 
views.http.strict-transport-security=max-age=31536000 
views.ambari.request.connect.timeout.millis=5000 
views.request.connect.timeout.millis=5000 
resources.dir=/var/lib/ambari-server/resources 
custom.action.definitions=/var/lib/ambari-server/resources/custom_action_definitions 
views.http.x-frame-options=SAMEORIGIN 
recovery.enabled_components=METRICS_COLLECTOR 
jdk1.7.re=(jdk.*)/jre 
server.execution.scheduler.maxDbConnections=5 
jdk1.7.desc=Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7 
agent.stack.retry.on_repo_unavailability=false 
views.ambari.request.read.timeout.millis=10000 
jdk1.8.jcpol-file=jce_policy-8.zip 
rolling.upgrade.max.stack= 
server.http.session.inactive_timeout=1800 
jdk1.7.jcpol-file=UnlimitedJCEPolicyJDK7.zip 
server.execution.scheduler.misfire.toleration.minutes=480 
security.server.keys_dir=/var/lib/ambari-server/keys 
stackadvisor.script=/var/lib/ambari-server/resources/scripts/stack_advisor.py 
server.tmp.dir=/var/lib/ambari-server/data/tmp 
server.execution.scheduler.maxThreads=5 
metadata.path=/var/lib/ambari-server/resources/stacks 
server.fqdn.service.url=http://169.254.169.254/latest/meta-data/public-hostname 
views.http.x-xss-protection=1; mode=block 
webapp.dir=/usr/lib/ambari-server/web 
bootstrap.dir=/var/run/ambari-server/bootstrap 
#jdk1.7.home=/usr/jdk64/ 
jdk1.7.home=/usr/java/jdk1.8.0_92/ 
jdk1.8.url=http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-8u60-linux-x64.tar.gz 
#jdk1.8.home=/usr/jdk64/ 
jdk1.8.home=/usr/java/jdk1.8.0_92/ 
user.inactivity.timeout.role.readonly.default=0 
http.x-xss-protection=1; mode=block 
jce.name=jce_policy-8.zip 
client.threadpool.size.max=25 
jdk1.7.jcpol-url=http://public-repo-1.hortonworks.com/ARTIFACTS/UnlimitedJCEPolicyJDK7.zip 

server.jdbc.user.passwd=/etc/ambari-server/conf/password.dat 
server.execution.scheduler.isClustered=false 
server.stages.parallel=true 
bootstrap.setup_agent.script=/usr/lib/python2.6/site-packages/ambari_server/setupAgent.py 
server.jdbc.database=postgres 
server.jdbc.database_name=ambari 
+0

'/ var/log/ambari-agent'에있는 ambari-agent 로그를보고 실패에 대한 자세한 내용이 있는지 확인하십시오. 해당 컴퓨터 각각에서/etc/hosts 파일은 어떻게 생겼을까요? – cjackson

+0

나는 약간 세부 사항을 가진 포스트를 새롭게했다. 아무도 나에게 손을 줄 수 있기를 바란다. – greencomet

답변

0

내가 (

내가 영어 이외의 언어를 설정하기 때문입니다 생각 https://community.hortonworks.com/questions/23409/there-is-a-problem-when-install-hdp-on-the-stepcon.html의 논의에 따라 발견하고 문제를 해결 한은 즉 ,. 트레이드 중국어)를 기본 언어로 사용합니다. 호스트 확인시 charset 문제 (UTF-8 < -> ascii)가 발생합니다. 기본 언어를 영어로 변경 한 후에이 문제가 해결되었습니다.