添加主机时,cloudera代理安装失败,并显示以下错误
/tmp/scm_prepare_node.EbLWUx2R 无法为ubuntu生成证书
其中ubuntu是我的主机名,ip是127.0.1.1
cloudera-scm-server.log中的错误是
2019-04-24 22:50:29,977 INFO scm-web-123:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/add-hosts-wizard/install
2019-04-24 22:50:29,990 INFO scm-web-123:com.cloudera.server.cmf.node.NodeConfiguratorService: Creating request with id 4
2019-04-24 22:50:29,990 INFO scm-web-123:com.cloudera.cmf.service.ServiceHandlerRegistry: Executing command GlobalHostInstall GlobalHostInstallCommandArgs{sshPort=22, userName=hadoop, password=REDACTED, passphrase=REDACTED, privateKey=REDACTED, parallelInstallCount=10, cmRepoUrl=null, gpgKeyCustomUrl=null, gpgKeyOverrideBundle=<none>, unlimitedJCE=false, javaInstallStrategy=AUTO, agentUserMode=ROOT, cdhVersion=-1, cdhRelease=NONE, cdhRepoUrl=null, buildCertCommand=/var/lib/cloudera-scm-server/certmanager/generate_host_cert, sslCertHostname=ubuntu, reqId=4, skipPackageInstall=false, skipCloudConfig=false, proxyProtocol=HTTP, proxyServer=null, proxyPort=0, proxyUserName=null, proxyPassword=REDACTED, hosts=[ubuntu], existingHosts=[]}.
2019-04-24 22:50:29,995 INFO scm-web-123:com.cloudera.cmf.command.flow.CmdStep: Executing command work: Execute 1 steps in sequence
2019-04-24 22:50:29,996 INFO scm-web-123:com.cloudera.cmf.command.flow.CmdStep: Executing command work: Install on 1 hosts.
2019-04-24 22:50:29,996 INFO scm-web-123:com.cloudera.cmf.command.flow.CmdStep: Executing command work: Install on ubuntu.
2019-04-24 22:50:29,996 INFO scm-web-123:com.cloudera.server.cmf.node.NodeConfiguratorService: Adding password-based configurator for ubuntu
2019-04-24 22:50:29,998 INFO scm-web-123:com.cloudera.server.cmf.node.NodeConfiguratorService: Submitted configurator for ubuntu with id 5
2019-04-24 22:50:30,011 INFO scm-web-123:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/add-hosts-wizard/install, Status:200
2019-04-24 22:50:30,017 INFO NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfiguratorProgress: ubuntu: Transitioning from INIT (PT0.021S) to CONNECT
2019-04-24 22:50:30,017 INFO NodeConfiguratorThread-4-0:net.schmizz.sshj.transport.TransportImpl: Client identity string: SSH-2.0-SSHJ_0_14_0
2019-04-24 22:50:30,028 INFO NodeConfiguratorThread-4-0:net.schmizz.sshj.transport.TransportImpl: Server identity string: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.8
2019-04-24 22:50:30,048 INFO NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfiguratorProgress: ubuntu: Transitioning from CONNECT (PT0.031S) to AUTHENTICATE
2019-04-24 22:50:30,091 INFO NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfiguratorProgress: ubuntu: Transitioning from AUTHENTICATE (PT0.043S) to MAKE_TEMP_DIR
2019-04-24 22:50:30,505 INFO scm-web-113:com.cloudera.enterprise.JavaMelodyFacade: Entering HTTP Operation: Method:POST, Path:/express-wizard/updateHostsState
2019-04-24 22:50:30,508 INFO scm-web-113:com.cloudera.enterprise.JavaMelodyFacade: Exiting HTTP Operation: Method:POST, Path:/express-wizard/updateHostsState, Status:200
2019-04-24 22:50:31,538 INFO NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfigurator: Executing mktemp -d /tmp/scm_prepare_node.XXXXXXXX on ubuntu
2019-04-24 22:50:31,545 INFO NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfiguratorProgress: ubuntu: Transitioning from MAKE_TEMP_DIR (PT1.454S) to COPY_FILES
2019-04-24 22:50:31,760 INFO NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfigurator: Using key bundle from URL: https://archive.cloudera.com/cm6/6.2.0/allkeys.asc
2019-04-24 22:50:33,718 ERROR NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfigurator: Failed to generate certificates for ubuntu: null
2019-04-24 22:50:33,719 INFO NodeConfiguratorThread-4-0:com.cloudera.server.cmf.node.NodeConfiguratorProgress: ubuntu: Setting COPY_FILES as failed and done state
2019-04-24 22:50:33,719 INFO NodeConfiguratorThread-4-0:net.schmizz.sshj.transport.TransportImpl: Disconnected - BY_APPLICATION
2019-04-24 22:50:35,052 ERROR CommandPusher:com.cloudera.cmf.command.flow.WorkOutputs: CMD id: 18 Failed to complete installation on host ubuntu.
2019-04-24 22:50:35,053 ERROR CommandPusher:com.cloudera.cmf.model.DbCommand: Command 18(GlobalHostInstall) has completed. finalstate:FINISHED, success:false, msg:Failed to complete installation.
2019-04-24 22:50:35,446 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive: Unable to retrieve non-local non-loopback IP address. Seeing address: ubuntu/127.0.1.1.
2019-04-24 22:50:35,446 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive failed. Bootup = false
2019-04-24 22:50:35,446 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive was not able to access CM identity to validate it.
2019-04-24 22:50:35,446 ERROR ScmActive-0:com.cloudera.server.cmf.components.ScmActive: ScmActive is deferring the validation to the next run in 15 seconds.
2019-04-24 22:50:35,446 INFO ScmActive-0:com.cloudera.enterprise.AbstractWrappedEntityManager: Rolling back transaction that wasn't marked for rollback-only.
java.lang.Exception: Non-thrown exception for stack trace.
at com.cloudera.enterprise.AbstractWrappedEntityManager.close(AbstractWrappedEntityManager.java:161)
at com.cloudera.cmf.persist.CmfEntityManager.close(CmfEntityManager.java:367)
at com.cloudera.server.cmf.components.ScmActive.markScmActive(ScmActive.java:224)
at com.cloudera.server.cmf.components.ScmActive.run(ScmActive.java:87)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
请有人救我。
答案 0 :(得分:0)
已解决。 我发现生成证书需要使用cert-manager实用程序,它是cloudera-manager-agent的一部分,在安装cloudera-manager-agent的过程中,它以某种方式被跳过,安装并像宝石一样工作。
感谢以下链接的“自动TLS'注释”部分:https://www.cloudera.com/documentation/enterprise/latest/topics/install_cm_server.html] 1