无法访问Ambari

2024-06-02 08:41:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用的是hdp2.6,我无法访问Ambari。当我试图检查状态或启动Ambari时,会出现以下错误。 错误提示某些文件夹需要数据权限,但我不知道是哪个文件夹。在

在/var/log中的文件夹权限

[root@sandbox log]# ls -ltr ambari*
ambari-metrics-monitor:
total 4
-rw-r--r-- 1 ams hadoop 4019 May  5  2017 ambari-metrics-monitor.out

ambari-metrics-grafana:
total 8
-rw-r--r-- 1 ams hadoop 7674 May  5  2017 grafana.out

ambari-metrics-collector:
total 40
-rw-r--r-- 1 ams hadoop    0 May  5  2017 hbase-ams-master-sandbox.hortonworks.com.out.1
-rw-r--r-- 1 ams hadoop 3765 May  5  2017 collector-gc.log-201705051255
-rw-r--r-- 1 ams hadoop    0 May  5  2017 hbase-ams-master-sandbox.hortonworks.com.out
-rw-r--r-- 1 ams hadoop 6611 May  5  2017 gc.log-201705051255
-rw-r--r-- 1 ams hadoop    0 May  5  2017 ambari-metrics-collector.out
-rw-r--r-- 1 ams hadoop  678 May  5  2017 ambari-metrics-collector-startup.out
-rw-r--r-- 1 ams hadoop 3511 May  5  2017 collector-gc.log-201705051301
-rw-r--r-- 1 ams hadoop 6170 May  5  2017 gc.log-201705051301
-rw-r--r-- 1 ams hadoop 9840 May  5  2017 SecurityAuth.audit

ambari-infra-solr-client:
total 0

ambari-infra-solr:
total 0

ambari-server:
total 5764
-rw-r--r-- 1 root root       0 Sep 14 10:05 ambari-alerts.log
-rw-r--r-- 1 root root       0 Sep 14 10:05 ambari-config-changes.log
drwxr-xr-x 1 root root    4096 Sep 14 10:07 slider-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 storm-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 hive20-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 pig-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 capshed-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 hive-next-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 wfmanager-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 huetoambarimigration-view
drwxr-xr-x 1 root root    4096 Sep 14 10:07 files-view
drwxr-xr-x 1 root root    4096 Sep 14 10:08 tez-view
-rw-r--r-- 1 root root   12860 Feb 22 06:27 ambari-audit.log
-rw-r--r-- 1 root root  109945 Feb 22 10:26 ambari-server-command.log
-rw-r--r-- 1 root root     147 Feb 22 10:26 ambari-server.out
-rw-r--r-- 1 root root   44002 Feb 22 10:26 ambari-server-check-database.log
-rw-r--r-- 1 root root  140376 Feb 22 10:27 ambari-eclipselink.log
-rw-r--r-- 1 root root 5523003 Feb 22 10:32 ambari-server.log

ambari-agent:
total 48764
-rw-r--r-- 1 root root 9999919 Sep 19 10:57 ambari-agent.log.4
-rw-r--r-- 1 root root 9999950 Jan 20 19:23 ambari-agent.log.3
-rw-r--r-- 1 root root 9999934 Jan 30 20:23 ambari-agent.log.2
-rw-r--r-- 1 root root 9999883 Jan 31 16:23 ambari-agent.log.1
-rw-r--r-- 1 root root       0 Feb 25 06:51 ambari-agent.out
-rw-r--r-- 1 root root 9901190 Feb 25 07:05 ambari-agent.log

有人能帮忙吗?在

^{pr2}$

我还查了安巴里-代理.log,我看到如下所示的信息

INFO 2018-02-25 05:16:55,358 main.py:436 - Connecting to Ambari server at https://sandbox.hortonworks.com:8440 (172.17.0.2)
INFO 2018-02-25 05:16:55,358 NetUtil.py:67 - Connecting to https://sandbox.hortonworks.com:8440/ca
WARNING 2018-02-25 05:16:55,360 NetUtil.py:98 - Failed to connect to https://sandbox.hortonworks.com:8440/ca due to [Errno 111] Connection refused 

Tags: hadooplogviewrootoutsepmayfeb
1条回答
网友
1楼 · 发布于 2024-06-02 08:41:16

1)您需要签入/etc/ambari-server/conf/log4j.properties属性ambari.log.dir并验证其值。默认值可以在这里找到:log4j.properties。此处使用的目录必须存在

2)检查/etc/ambari-server/conf/ambari.properties,查找属性pid.dir。验证它指向的目录和目录是否存在

相关问题 更多 >