Сервер Ambari удален, к сожалению. как переустановить, не затрагивая другие узлы и сервисы. Выход с кодом выхода -1 - PullRequest
0 голосов
/ 06 января 2020

Я неправильно удалил ambari-сервер в уже существующей настройке кластера.

Я пытался переустановить его, но ambari-сервер не запускается.

Выдает ошибку «Выход с кодом завершения -1. ПРИЧИНА: Сервер Ambari java процесс остановлен. Пожалуйста, проверьте журналы для получения дополнительной информации»

Настройка сделано с использованием локального репозитория (без доступа к inte rnet)

06 1 2020 16:04:37,062  INFO [Stack Version Loading Thread] RepoUrlInfoCallable:94 - Loading latest URL info from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json for stacks HDP-2.3.GlusterFS,HDP-2.3.ECS,HDP-2.5,HDP-2.6,HDP-2.3,HDP-2.4,HDP-2.1.GlusterFS,HDP-2.1,HDP-2.2,HDP-2.0
06 1 2020 16:04:39,101  INFO [Stack Version Loading Thread] RepoUrlInfoCallable:107 - Could not load the URI from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json, stack defaults will be used
06 1 2020 16:04:39,101  INFO [Stack Version Loading Thread] RepoUrlInfoCallable:110 - Loaded URI http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json for stacks HDP-2.3.GlusterFS,HDP-2.3.ECS,HDP-2.5,HDP-2.6,HDP-2.3,HDP-2.4,HDP-2.1.GlusterFS,HDP-2.1,HDP-2.2,HDP-2.0 in 2040ms
06 1 2020 16:04:39,102  INFO [main] StackContext:208 - Loaded urlinfo in 2045ms
06 1 2020 16:04:39,102 ERROR [main] StackContext:217 - Could not load repo results
java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
    at sun.net.www.http.HttpClient.New(HttpClient.java:339)
    at sun.net.www.http.HttpClient.New(HttpClient.java:357)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at org.apache.ambari.server.controller.internal.URLStreamProvider.processURL(URLStreamProvider.java:218)
    at org.apache.ambari.server.controller.internal.URLStreamProvider.processURL(URLStreamProvider.java:142)
    at org.apache.ambari.server.controller.internal.URLStreamProvider.readFrom(URLStreamProvider.java:116)
    at org.apache.ambari.server.controller.internal.URLStreamProvider.readFrom(URLStreamProvider.java:121)
    at org.apache.ambari.server.state.stack.RepoUrlInfoCallable.call(RepoUrlInfoCallable.java:96)
    at org.apache.ambari.server.state.stack.RepoUrlInfoCallable.call(RepoUrlInfoCallable.java:50)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
06 1 2020 16:04:39,104  INFO [main] StackContext:250 - Loaded all VDF in 0ms
06 1 2020 16:04:39,125  INFO [main] StackManager:252 - Creating links
06 1 2020 16:04:39,128  INFO [main] ActionDefinitionManager:130 - Added custom action definition for check_host
06 1 2020 16:04:39,128  INFO [main] ActionDefinitionManager:130 - Added custom action definition for update_repo
06 1 2020 16:04:39,128  INFO [main] ActionDefinitionManager:130 - Added custom action definition for clear_repocache
06 1 2020 16:04:39,128  INFO [main] ActionDefinitionManager:130 - Added custom action definition for validate_configs
06 1 2020 16:04:39,128  INFO [main] ActionDefinitionManager:130 - Added custom action definition for install_packages
06 1 2020 16:04:39,128  INFO [main] ActionDefinitionManager:130 - Added custom action definition for ru_execute_tasks
06 1 2020 16:04:39,128  INFO [main] ActionDefinitionManager:130 - Added custom action definition for remove_previous_stacks
06 1 2020 16:04:39,129  INFO [main] ActionDefinitionManager:130 - Added custom action definition for force_remove_packages
06 1 2020 16:04:39,134  INFO [main] UpdateActiveRepoVersionOnStartup:80 - Updating existing repo versions with service repos.
06 1 2020 16:04:39,160 ERROR [main] AmbariServer:1078 - Failed to run the Ambari Server
org.apache.ambari.server.AmbariException: An error occured during updating current repository versions with stack repositories.
    at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.process(UpdateActiveRepoVersionOnStartup.java:99)
    at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
    at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:1066)
Caused by: java.lang.NullPointerException
    at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.updateRepoVersion(UpdateActiveRepoVersionOnStartup.java:106)
    at org.apache.ambari.server.stack.UpdateActiveRepoVersionOnStartup.process(UpdateActiveRepoVersionOnStartup.java:92)
    ... 2 more
...