Open Arlinlol opened 8 years ago
你用 jstorm list 看一下supervisor有多少可用的slots
{
"nimbus": {
"nimbusMaster": {
"host": "127.0.1.1:8627",
"uptimeSecs": "4570"
},
"nimbusSlaves": [],
"supervisorNum": 1,
"totalPortNum": 0,
"usedPortNum": 0,
"freePortNum": 0,
"version": "2.1.1",
"__isset_bitfield": 15
},
"supervisors": [
{
"host": "127.0.1.1",
"supervisorId": "222ac3f8-1530-48e7-958a-e7ad7cd8d800",
"uptimeSecs": 4381,
"numWorkers": 0,
"numUsedWorkers": 0,
"__isset_bitfield": 7
}
],
"topologies": []
}
是我哪里设置错误了么
找到Supervisor进程,看jstorm.home引用的位置是否一致
@fengjian428 是一样的.... > echo $JSTORM_HOME /home/arlin/jstorm/jstorm-2.1.1 > ps -ef | grep supervisor arlin 7340 7296 0 15:17 pts/20 00:00:20 java -server -Djstorm.home=/home/arlin/jstorm/jstorm-2.1.1 -Dstorm.options= -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Xms1g -Xmx1g -Xmn512m -XX:PermSize=64m -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:CMSFullGCsBeforeCompaction=5 -XX:+HeapDumpOnOutOfMemoryError -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100M -XX:+UseCMSCompactAtFullCollection -XX:CMSMaxAbortablePrecleanTime=5000 -Xloggc:/home/arlin/jstorm/jstorm-2.1.1/logs/supervisor-gc-1461820409.log -Dlogfile.name=supervisor.log -Dlogback.configurationFile=/home/arlin/jstorm/jstorm-2.1.1/conf/jstorm.logback.xml -Djstorm.log.dir=/home/arlin/jstorm/jstorm-2.1.1/logs ........
supervisor.log 里面有error信息吗
@Arlinlol 2.1.1 包里面有个bug, github 源码里面已经打了patch, 我重新编译一下代码,你重新安装一下
@longdafeng 谢谢你,昨天我给您gmail邮箱发了一封邮件,是咨询业务场景,技术选型的适用性问题的。其中描述了业务场景,想要您在百忙之中给一些意见。
@Arlinlol , 不好意思,我没有收到你的邮件,你能单独再发我一份邮件吗?
zhongyan.feng@alibaba-inc.com
@Arlinlol 昨晚重新打包了, 把最新的几个patch打进去了
@longdafeng 我昨天下载最新的2.1.1 的包,部署后运行 sequence_test 还是这样的问题,通过 jstorm list 可以看到,共有"totalPortNum": 16, "freePortNum": 12, 异常还是:2781 [main] WARN backtype.storm.StormSubmitter - Failed to assign Fail to sumbit topology, Root cause:there's no enough worker. allocWorkerNum=3, availableWorkerNum=0
Successfully get cluster info { "nimbus": { "nimbusMaster": { "host": "10.12.9.171:8627", "uptimeSecs": "4086" }, "nimbusSlaves": [ { "host": "10.12.9.170:8627", "uptimeSecs": "3971" } ], "supervisorNum": 4, "totalPortNum": 16, "usedPortNum": 4, "freePortNum": 12, "version": "2.1.1", "isset_bitfield": 15 }, "supervisors": [ { "host": "10.12.8.174", "supervisorId": "2d7ecbf2-6da9-4165-8497-17b061f8755c", "uptimeSecs": 3600, "numWorkers": 4, "numUsedWorkers": 0, "__isset_bitfield": 7 }, { "host": "10.12.8.175", "supervisorId": "5d764ef6-80b5-4f3a-95e7-40f79959e08e", "uptimeSecs": 3481, "numWorkers": 4, "numUsedWorkers": 0, "isset_bitfield": 7 },
配置文件如下,大神帮看一下: