【发布时间】:2015-08-13 11:04:02
【问题描述】:
我是 Kafka 和 Hadoop 技术的新手。我试图在 AWS EC2 VM 实例上安装和运行我的第一个单节点、单代理集群,我已经完成了:
1)java安装
2) 使用 java 相关条目更新 ~/.bashrc and ~/.nash_profile 文件
3) 能够运行内部 zookeeper 实例,但是
4) 一旦我尝试启动 kafka 代理,它就会向我抛出以下错误消息:
$ bin/kafka-server-start.sh config/server.properties
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0130000, 986513408, 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 986513408 bytes for committing reserved memory.
An error report file with more information is saved as:
/usr/local/kafka/hs_err_pid2549.log
我不确定我做错了什么。此 AWS EC2 VM 实例是一个新创建的 Ubuntu-t2.micro 实例,具有 8 GB 通用 SSD 卷。
【问题讨论】:
-
通过 free -m 命令检查主存是否空闲
标签: hadoop ubuntu-14.04 apache-kafka hadoop-streaming