在使用samza-core执行测试时,使用gradle构建Samza失败。
以下是我所面临的例外情况:
请分享您的想法...
org.apache.samza.config.factories.TestPropertiesConfigFactory > testCanReadPropertiesConfigFiles FAILED
java.lang.IllegalArgumentException: Illegal character in authority at index 7: file://C:apache-samza-0.9.1-src\samza-core/src/test/resources/test.
properties
at java.net.URI.create(URI.java:859)
at org.apache.samza.config.factories.TestPropertiesConfigFactory.testCanReadPropertiesConfigFiles(TestPropertiesConfigFactory.scala:34)
Caused by:
java.net.URISyntaxException: Illegal character in authority at index 7: file://C:\Users\z013sqm\Downloads\apache-samza-0.9.1-src\samza-core/src/test/resources/test.pro
perties
at java.net.URI$Parser.fail(URI.java:2829)
at java.net.URI$Parser.parseAuthority(URI.java:3167)
at java.net.URI$Parser.parseHierarchical(URI.java:3078)
at java.net.URI$Parser.parse(URI.java:3034)
at java.net.URI.<init>(URI.java:595)
at java.net.URI.create(URI.java:857)
... 1 more
125 tests completed, 2 failed, 2 skipped
Finished generating test XML results (0.062 secs) into: C:\Users\z013sqm\Downloads\apache-samza-0.9.1-src\samza-core\build\test-results
Generating HTML test report...
Finished generating test html results (0.128 secs) into: C:\Users\z013sqm\Downloads\apache-samza-0.9.1-src\samza-core\build\reports\tests
:samza-core_2.10:test FAILED
:samza-core_2.10:test (Thread[Daemon,5,main]) completed. Took 11.229 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':samza-core_2.10:test'.
> There were failing tests. See the report at: file:///C:apache-samza-0.9.1-src/samza-core/build/reports/tests/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED**
答案 0 :(得分:1)
Samza未经过Windows测试或构建。它没有理由不能在那里运行,只是没有人完成平滑多平台假设的工作(就像你在路径上遇到的那样)。欢迎补丁。
答案 1 :(得分:0)
我遇到了类似的问题,我的解决方案是在TestRocksDBKeyValueStore.scala中注释testTTL调用并重新运行gradle脚本。试试它是否适合你。