-2

在 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**
4

2 回答 2

1

Samza 没有在 Windows 上测试或构建。没有理由它不能在那里运行,只是没有人完成了消除多平台假设的工作(就像你遇到的关于路径的假设)。欢迎补丁。

于 2016-01-23T00:35:01.343 回答
0

我遇到了类似的问题,我的解决方案是在 TestRocksDBKeyValueStore.scala 中注释 testTTL 调用并重新运行 gradle 脚本。试试如果它适合你。

于 2015-09-22T08:54:44.820 回答