exceptionininitializererror

vs3odd8k  于 2021-06-24  发布在  Storm
关注(0)|答案(1)|浏览(322)

我尝试在MacOS上安装ApacheStorm high Sierra 他在听一个教程。我遵循一篇文章中的步骤,步骤如下:,

  1. i. Install Zookeeper using the brew
  2. $ brew install zookeeper
  3. To have launched start zookeeper now and restart at login:
  4. $ brew services start zookeeper
  5. If you don't want/need a background service you can just run:
  6. $ zkServer start
  7. Zookeeper installation directory, /usr/local/Cellar/zookeeper/3.4.12
  8. ii. Install ZeroMQ using the brew
  9. $ brew install zeromq
  10. ZeroMQ installation directory, /usr/local/Cellar/zeromq/4.2.5
  11. iii. Install Apache storm using the brew
  12. $ brew install storm
  13. Storm installation directory, /usr/local/Cellar/storm/1.2.2 and will have a symlink in ‘/usr/local/opt/storm’
  14. folder.
  15. iv. Update the storm config file storm.yaml located in the /usr/local/opt/storm/libexec/conf folder. After
  16. opening this file add the following:
  17. storm.zookeeper.servers: – “localhost” # – “server2” # nimbus.host: “localhost” nimbus.thrift.port: 6627
  18. ui.port: 8772 storm.local.dir: “/Users/chaklader/storm/data” java.library.path: /usr/lib/jvm”
  19. supervisor.slots.ports: – 6700 – 6701 – 6702 – 6703
  20. v. Start zookeeper, nimbus, supervisor and UI in the given sequence,
  21. $ zkServer start
  22. $ /usr/local/opt/storm/libexec/bin/storm nimbus
  23. $ /usr/local/opt/storm/libexec/bin/storm supervisor
  24. $ /usr/local/opt/storm/libexec/bin/storm ui
  25. When I run the second command (for the nimbus), I get the following error message,
  26. $ /usr/local/opt/storm/libexec/bin/storm nimbus
  27. Exception in thread "main" java.lang.ExceptionInInitializerError
  28. at org.apache.storm.config$read_storm_config.invoke(config.clj:78)
  29. at org.apache.storm.config$fn__906.invoke(config.clj:100)
  30. at org.apache.storm.config__init.load(Unknown Source)
  31. at org.apache.storm.config__init.<clinit>(Unknown Source)
  32. at java.lang.Class.forName0(Native Method)
  33. at java.lang.Class.forName(Class.java:348)
  34. at clojure.lang.RT.classForName(RT.java:2154)
  35. at clojure.lang.RT.classForName(RT.java:2163)
  36. at clojure.lang.RT.loadClassForName(RT.java:2182)
  37. at clojure.lang.RT.load(RT.java:436)
  38. at clojure.lang.RT.load(RT.java:412)
  39. at clojure.core$load$fn__5448.invoke(core.clj:5866)
  40. at clojure.core$load.doInvoke(core.clj:5865)
  41. at clojure.lang.RestFn.invoke(RestFn.java:408)
  42. at clojure.core$load_one.invoke(core.clj:5671)
  43. at clojure.core$load_lib$fn__5397.invoke(core.clj:5711)
  44. at clojure.core$load_lib.doInvoke(core.clj:5710)
  45. at clojure.lang.RestFn.applyTo(RestFn.java:142)
  46. at clojure.core$apply.invoke(core.clj:632)
  47. at clojure.core$load_libs.doInvoke(core.clj:5753)
  48. at clojure.lang.RestFn.applyTo(RestFn.java:137)
  49. at clojure.core$apply.invoke(core.clj:634)
  50. at clojure.core$use.doInvoke(core.clj:5843)
  51. at clojure.lang.RestFn.invoke(RestFn.java:408)
  52. at org.apache.storm.command.config_value$loading__5340__auto____12530.invoke(config_value.clj:16)
  53. at org.apache.storm.command.config_value__init.load(Unknown Source)
  54. at org.apache.storm.command.config_value__init.<clinit>(Unknown Source)
  55. at java.lang.Class.forName0(Native Method)
  56. at java.lang.Class.forName(Class.java:348)
  57. at clojure.lang.RT.classForName(RT.java:2154)
  58. at clojure.lang.RT.classForName(RT.java:2163)
  59. at clojure.lang.RT.loadClassForName(RT.java:2182)
  60. at clojure.lang.RT.load(RT.java:436)
  61. at clojure.lang.RT.load(RT.java:412)
  62. at clojure.core$load$fn__5448.invoke(core.clj:5866)
  63. at clojure.core$load.doInvoke(core.clj:5865)
  64. at clojure.lang.RestFn.invoke(RestFn.java:408)
  65. at clojure.lang.Var.invoke(Var.java:379)
  66. at org.apache.storm.command.config_value.<clinit>(Unknown Source)
  67. Caused by: mapping values are not allowed here
  68. in 'reader', line 111, column 30:
  69. ui.port: 8772 storm.local.dir: “/Users/chaklader/storm/data” ...
  70. ^
  71. at org.apache.storm.shade.org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:866)
  72. at org.apache.storm.shade.org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:360)
  73. at org.apache.storm.shade.org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226)
  74. at org.apache.storm.shade.org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:558)
  75. at org.apache.storm.shade.org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
  76. at org.apache.storm.shade.org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143)
  77. at org.apache.storm.shade.org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
  78. at org.apache.storm.shade.org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159)
  79. at org.apache.storm.shade.org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
  80. at org.apache.storm.shade.org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
  81. at org.apache.storm.shade.org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120)
  82. at org.apache.storm.shade.org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481)
  83. at org.apache.storm.shade.org.yaml.snakeyaml.Yaml.load(Yaml.java:424)
  84. at org.apache.storm.utils.Utils.findAndReadConfigFile(Utils.java:367)
  85. at org.apache.storm.utils.Utils.readStormConfig(Utils.java:468)
  86. at org.apache.storm.utils.Utils.<clinit>(Utils.java:178)
  87. ... 39 more

下面提供了更多的错误输出,

  1. Running: /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/bin/java -server -Ddaemon.name=nimbus -Dstorm.options= -Dstorm.home=/usr/local/Cellar/storm/1.2.2/libexec -Dstorm.log.dir= -Djava.library.path= -Dstorm.conf.file= -cp /usr/local/Cellar/storm/1.2.2/libexec/*:/usr/local/Cellar/storm/1.2.2/libexec/lib/*:/usr/local/Cellar/storm/1.2.2/libexec/extlib/*:/usr/local/Cellar/storm/1.2.2/libexec/extlib-daemon/*:/usr/local/opt/storm/libexec/conf -Dlogfile.name=nimbus.log -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlog4j.configurationFile=/usr/local/Cellar/storm/1.2.2/libexec/cluster.xml org.apache.storm.daemon.nimbus
  2. ERROR StatusLogger File not found in file system or classpath: /usr/local/Cellar/storm/1.2.2/libexec/cluster.xml
  3. ERROR StatusLogger Reconfiguration failed: No configuration found for 'AsyncContext@45ee12a7' at 'null' in 'null'

我读了错误信息,但没有任何经验,很难找到演练。这里有什么问题?
顺便说一句,这个位置没有文件夹, storm.local.dir: “/Users/chaklader/storm/data” . 我需要创造并提供 chmod -R 777 许可?

zazmityj

zazmityj1#

看看这个异常,它正好指出了问题所在

  1. Caused by: mapping values are not allowed here
  2. in 'reader', line 111, column 30:
  3. ui.port: 8772 storm.local.dir: “/Users/chaklader/storm/data ...
  4. ^

我想你对链接文章的格式感到困惑
配置文件应该是有效的yaml语法
尝试

  1. storm.zookeeper.servers:
  2. - "localhost"
  3. # – "server2"
  4. # nimbus.host: "localhost"
  5. nimbus.thrift.port: 6627
  6. ui.port: 8772
  7. storm.local.dir: "/Users/chaklader/storm/data"
  8. java.library.path: /usr/lib/jvm
  9. supervisor.slots.ports:
  10. - 6700
  11. - 6701
  12. - 6702
  13. - 6703

顺便说一句,storm.local.dir位置中没有文件夹
数据目录不需要是一个用户文件夹,但是如果您确实希望数据进入其中,请确保用户目录是您的用户,而不是从随机博客复制的

展开查看全部

相关问题