我非常感謝一些幫助,讓cloudera manager在AWS EC2上運行。 它是我第一次安裝,我打算使用AWS Free Tier來創建幾個節點,並對Hadoop集羣和cloudera分發進行一些培訓。我在AWS EC2上使用RedHat RHEL 7.2映像。無法連接到Cloudera Manager,不在端口7180上監聽
我下面這些指令...... Cloudera Manager installation
我已經安裝了Cloudera管理器確定,得到的地方,它允許您使用瀏覽器登錄到了Cloudera Manager服務器屏幕。但這就是問題出現的地方。看起來這款應用並沒有在7180端口上收聽,所以沒有希望通過網絡連接另一臺電腦。我甚至無法在服務器本地連接,但該服務似乎運行正常。但它不聽7180端口。
Q1 - 如何確認配置設置爲使用端口7180.?
第二季度 - 是否有明顯的步驟,我在這裏失蹤?
由於提前,
[編輯..] 我開始如果自由EC2主機上的內存所剩無幾運行Cloudera的經理懷疑。我看到一條評論暗示...... AWS Forum post。但該進程不會崩潰或報告其日誌文件中的任何問題。所以它一定是好的,對吧?
[編輯....更多的診斷信息,....]
下面是我檢查診斷的列表: -
- 的SELinux沒有運行[用於安裝和測試目的]
- WAN防火牆,
- EC2防火牆/安全組,
- 在服務器本地防火牆,
- Cloudera的管理r日誌,
- 服務是否正常運行?
- 你可以在本地連接嗎?
在EC2實例Securtity組,它包含: - 在RedHat的實例 SSH和端口7180,
防火牆/ iptables的/ firewalld,嘗試: - 添加端口的iptables,然後 dissabling的iptables,然後 添加端口firewalld,然後 dissabling的firewalld服務,
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:7180
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:7182
但是我感覺到cloudera manager的安裝是不開心,或者運行不正確。
我檢查了cloudera管理器日誌,並以下列結尾。
$ tail /var/log/cloudera-scm-server/cloudera-scm-server.log
2016-02-25 11:02:23,581 INFO main:com.cloudera.cmon.components.MetricSchemaUpdate: persisting 19264 new metrics
2016-02-25 11:02:28,920 INFO main:com.cloudera.cmon.components.MetricSchemaUpdate: persisting 0 updated metrics
2016-02-25 11:02:28,924 INFO main:com.cloudera.cmon.components.MetricSchemaManager: Cross entity aggregates processed.
當我用tail -f命令,然後重新啓動Cloudera的-SCM服務器服務,日誌滾動了很多,回來相同的狀態。如果我搜索ERROR,則不會有「ERR」行。
$ sudo service cloudera-scm-server start
Starting cloudera-scm-server (via systemctl): [ OK ]
$ sudo systemctl status cloudera-scm-server
● cloudera-scm-server.service - LSB: Cloudera SCM Server
Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-server)
Active: active (exited) since Thu 2016-02-25 12:23:03 EST; 44s ago
Docs: man:systemd-sysv-generator(8)
Process: 747 ExecStart=/etc/rc.d/init.d/cloudera-scm-server start (code=exited, status=0/SUCCESS)
所以,如果我嘗試測試該服務,通過從本地機器我得到的那種品行的,這讓我的東西它只是不聽,也許不能正確啓動連接。
嘗試從相同的外殼採用了捲曲捅它作爲Cloudera的-SCM服務器服務已啓動
$ curl localhost:7180
curl: (7) Failed connect to localhost:7180; Connection refused
$ wget localhost:7180
--2016-02-25 08:00:16-- http://localhost:7180/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:7180... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:7180... failed: Connection refused.
嘗試檢查哪些端口是那臺機器上聽,沒有7180,什麼與回事? ?
$ netstat -nltp
(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:7432 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp6 0 0 :::7432 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:25 :::* LISTEN -
賓果 - 發現內存不足的問題 - 日誌中的消息 '$ sudo tail -100 /var/log/cloudera-scm-server/cloudera-scm-server.out JAVA_HOME =的/ usr /爪哇/ jdk1.7.0_67-的Cloudera 爪哇熱點(TM)64位服務器VM警告:信息:OS :: commit_memory(0x000000078dc58000,265809920,0)失敗;錯誤='無法分配內存'(errno = 12) # #沒有足夠的內存讓Java運行時環境繼續運行。 #本機的存儲器分配(malloc的)未能分配265809920個字節用於犯保留存儲器。 #/tmp/hs_err_pid831.log ' –