在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**
最佳答案
Samza尚未经过测试或未在Windows上构建。它没有理由不能在那里运行,只是没有人能够完成平滑多平台假设的工作(就像您所遇到的关于路径的假设一样)。欢迎补丁。