在hadoop2.7.4中搭建apache-storm-1.1.1集群

一、正确启动集群

1.启动hadoop集群

2、启动zookeep集群

二.启动storm集群

在master上启动nimbus,运行命令storm nimbus即可

在slave上启动supervisor,运行命令storm supervisor即可

三、配置错误

1.Caused by: java.lang.IllegalArgumentException: Field STORM_ZOOKEEPER_SERVERS must be an Iterable but was a class java.lang.String
at org.apache.storm.validation.ConfigValidationUtils$2.validateField(ConfigValidationUtils.java:125)
at org.apache.storm.validation.ConfigValidationUtils$NestableFieldValidator.validateField(ConfigValidationUtils.java:48)
at org.apache.storm.validation.ConfigValidation$ListEntryTypeValidator.validateField(ConfigValidation.java:304)
at org.apache.storm.validation.ConfigValidation$ListEntryTypeValidator.validateField(ConfigValidation.java:299)
at org.apache.storm.validation.ConfigValidation.validateField(ConfigValidation.java:640)
at org.apache.storm.validation.ConfigValidation.validateFields(ConfigValidation.java:675)
at org.apache.storm.validation.ConfigValidation.validateFields(ConfigValidation.java:654)
at org.apache.storm.config$validate_configs_with_schemas.invoke(config.clj:74)
at org.apache.storm.config$read_storm_config.invoke(config.clj:79)
at org.apache.storm.config$fn__908.invoke(config.clj:100)
at org.apache.storm.config__init.load(Unknown Source)
at org.apache.storm.config__init.(Unknown Source)
... 35 more

2、Caused by: while parsing a block mapping
 in 'reader', line 18, column 1:
    storm.zookeeper.servers: 
    ^
expected , but found BlockMappingStart
 in 'reader', line 23, column 2:
     nimbus.seeds: ["172.16.169.10"]
     ^
Caused by: while scanning a simple key
 in 'reader', line 24, column 1:
    storm.local.dir:/usr/local/storm ... 
    ^
could not found expected ':'
 in 'reader', line 25, column 1:
    supervi
Caused by: java.lang.IllegalArgumentException: Field STORM_ZOOKEEPER_SERVERS must be an Iterable but was a class java.lang.String
at org.apache.storm.validation.ConfigValidationUtils$2.validateField(ConfigValidationUtils.java:125)
at org.apache.storm.validation.ConfigValidationUtils$NestableFieldValidator.validateField(ConfigValidationUtils.java:48)
at org.apache.storm.validation.ConfigValidation$ListEntryTypeValidator.validateField(ConfigValidation.java:304)
at org.apache.storm.validation.ConfigValidation$ListEntryTypeValidator.validateField(ConfigValidation.java:299)
at org.apache.storm.validation.ConfigValidation.validateField(ConfigValidation.java:640)
at org.apache.storm.validation.ConfigValidation.validateFields(ConfigValidation.java:675)
at org.apache.storm.validation.ConfigValidation.validateFields(ConfigValidation.java:654)
at org.apache.storm.config$validate_configs_with_schemas.invoke(config.clj:74)
at org.apache.storm.config$read_storm_config.invoke(config.clj:79)
at org.apache.storm.ui.core__init.load(Unknown Source)
at org.apache.storm.ui.core__init.(Unknown Source)

上述两个错误都是由于在conf目录下的storm.yaml 的配置错误:缩进错误,下面的是正确的配置截图



你可能感兴趣的:(storm)