ambari安装oozie时报错,
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64//bin/java -cp '/var/lib/ambari-agent/cred/lib/*' org.apache.ambari.server.credentialapi.CredentialUtil get oozie.service.JPAService.jdbc.password -provider jceks://file/var/lib/ambari-agent/cred/conf/oozie/oozie-site.jceks' returned 1. Error: Could not find or load main class org.apache.ambari.server.credentialapi.CredentialUtil
检查日志:
DownloadSource('http://node1:8080/resources/CredentialUtil.jar'), 'mode': 0755}
2018-01-31 17:23:03,643 - Not downloading the file from http://node1:8080/resources/CredentialUtil.jar, because /var/lib/ambari-agent/tmp/CredentialUtil.jar already exists
2018-01-31 17:23:03,643 - Writing File['/var/lib/ambari-agent/cred/lib/CredentialUtil.jar'] because contents don't match
2018-01-31 17:23:03,643 - checked_call[('/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64//bin/java', '-cp', u'/var/lib/ambari-agent/cred/lib/*', 'org.apache.ambari.server.credentialapi.CredentialUtil', 'get', 'oozie.service.JPAService.jdbc.password', '-provider', u'jceks://file/var/lib/ambari-agent/cred/conf/oozie/oozie-site.jceks')] {}
于是删除
rm /var/lib/ambari-agent/cred/lib/CredentialUtil.jar
rm /var/lib/ambari-agent/tmp/CredentialUtil.jar
重试,恢复正常