[
https://issues.apache.org/jira/browse/STORM-1579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15170218#comment-15170218
]
Jungtaek Lim commented on STORM-1579:
-------------------------------------
[~Cody]
I also can see the issue you stated from test-report.
Maybe the change comes from this commit,
https://github.com/apache/storm/commit/0fc58437badb0f6b464141889d532dea87ff4457
Related configuration are here.
- storm.log.dir
- storm.home
- storm.workers.artifacts.dir
You can refer ConfigUtils.workerArtifactsRoot() to track down why your test
tried to write "events.log" file to "/logs/workers-artifacts/<topology
id>/<port>/events.log".
Unfortunately if we doesn't set any of these root dir of worker artifacts is
set to /logs/workers-artifacts.
The user account we normally use doesn't have permission to create /logs, so
mkdirs() fails "quitely" and we see NoSuchFileException when creating or append
actual file.
> Got NoSuchFileException when running tests in storm-core
> --------------------------------------------------------
>
> Key: STORM-1579
> URL: https://issues.apache.org/jira/browse/STORM-1579
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-core
> Affects Versions: 2.0.0
> Environment: Mac OS X, jdk1.7
> Reporter: Cody
> Assignee: Cody
> Fix For: 2.0.0
>
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> Stacktrace:
> 125277 [Thread-1736-__eventlogger-executor[4 4]] ERROR
> o.a.s.m.FileBasedEventLogger - Error setting up FileBasedEventLogger.
> java.nio.file.NoSuchFileException:
> /logs/workers-artifacts/metrics-tester-1-0/1024/events.log
> at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
> ~[?:1.7.0_75]
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
> ~[?:1.7.0_75]
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
> ~[?:1.7.0_75]
> at
> sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
> ~[?:1.7.0_75]
> at
> java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:430)
> ~[?:1.7.0_75]
> at java.nio.file.Files.newOutputStream(Files.java:172) ~[?:1.7.0_75]
> at java.nio.file.Files.newBufferedWriter(Files.java:2722) ~[?:1.7.0_75]
> at
> org.apache.storm.metric.FileBasedEventLogger.initLogWriter(FileBasedEventLogger.java:51)
> [classes/:?]
> at
> org.apache.storm.metric.FileBasedEventLogger.prepare(FileBasedEventLogger.java:97)
> [classes/:?]
> at
> org.apache.storm.metric.EventLoggerBolt.prepare(EventLoggerBolt.java:48)
> [classes/:?]
> at
> org.apache.storm.daemon.executor$fn__6507$bolt_transfer_fn__6522.invoke(executor.clj:792)
> [classes/:?]
> at clojure.lang.AFn.call(AFn.java:18) [clojure-1.7.0.jar:?]
> at org.apache.storm.utils.Utils$6.run(Utils.java:2177) [classes/:?]
> at java.lang.Thread.run(Thread.java:745) [?:1.7.0_75]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)