簡體   English   中英

Cloudera內存不足,無法繼續Java Runtime Environment

[英]Cloudera insufficient memory for the Java Runtime Environment to continue

我嘗試將我的公共DNS實例連接到端口7180上的cloudera

我的網絡瀏覽器中顯示“無法連接”消息。

我使用EC2 AWS + RedHat7 + Cloudera 5

啟動Cloudera Server時,出現以下消息:

root@ip-100-10-10-10 sysconfig]#  service cloudera-scm-server start 
Starting cloudera-scm-server (via systemctl):              [  OK  ]

當我卷曲時,我得到:

[root@ip-100-10-10-10 sysconfig]# curl -i -u ‘admin:admin’ http://localhost:7180/api/v1/tools/echo
curl: (7) Failed connect to localhost:7180; Connection refused

這是使用命令sudo ls -l /var/log/cloudera-scm-server cloudera服務器的日志文件

[root@ip-172-31-45-90 sysconfig]# $sudo cat /var/log/cloudera-scm-server/cloudera-scm-server.out 
JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000787295000, 155291648, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 155291648 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid2370.log

如何解決?

我使用EC2 AWS ...我選擇了基本的一個,免費的一個

閱讀《 Cloudera Manager安裝指南》

RAM -4 GB適用於大多數情況,並且在使用Oracle數據庫時是必需的。 對於少於100個主機的非Oracle部署,2 GB可能就足夠了。 但是,如果要在具有2 GB RAM的計算機上運行Cloudera Manager Server,則必須調低其最大堆大小(通過修改/ etc / default / cloudera-scm-server中的-Xmx)。 否則,內核可能會因為消耗過多內存而殺死服務器

我會進一步說這是建議的可用空間 ,因此,如果您計划運行所有服務,則建議使用6或8GB。 t2.micro或t2.nano或您擁有的任何實例類型都沒有那么多的內存。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM