[
https://issues.apache.org/jira/browse/STORM-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15376963#comment-15376963
]
Jungtaek Lim commented on STORM-1193:
-------------------------------------
Blobstore feature which is introduced at 1.0.0 heavily uses symbolic link,
which works well with well-known Linux distro and OSX, but bothers Windows
users.
We prepared windows user guide because of that (there's deadlink on website
which should be fixed soon), so you can refer
https://github.com/apache/storm/blob/master/docs/windows-users-guide.md on
this. I guess you're already aware of.
I believe that the account which runs supervisor doesn't need to be
administrator. If not it's bad of MS (sorry!)
Personally I don't think we have to get rid of usage of symbolic link. It
should be not easy and need lots of effort.
Btw, supervisor is a daemon which should be launched only one for each node. Do
multiple users launch supervisors?
> supervisor-test error creating symlinks on windows
> --------------------------------------------------
>
> Key: STORM-1193
> URL: https://issues.apache.org/jira/browse/STORM-1193
> Project: Apache Storm
> Issue Type: Bug
> Environment: Windows7
> Java7
> Reporter: Chuck Burgess
> Priority: Minor
>
> The test-worker-launch-command-run-as-user testcase errors rather than fails,
> due to what seems to be a privilege issue with creating a symlink.
> {quote}
> 5701 \[main] INFO b.s.d.supervisor - Creating symlinks for worker-id:
> fake-worker-id storm-id: fake-storm-id to its port artifacts directory
> Uncaught exception, not in assertion.
> expected: nil
> actual: java.nio.file.FileSystemException:
> C:\path\to\Temp\storm-local8914443830909286033\workers\fake-worker-id\artifacts:
> A required privilege is not held by the client.
> at sun.nio.fs.WindowsException.translateToIOException
> (WindowsException.java:86)
> sun.nio.fs.WindowsException.rethrowAsIOException
> (WindowsException.java:97)
> sun.nio.fs.WindowsException.rethrowAsIOException
> (WindowsException.java:102)
> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink
> (WindowsFileSystemProvider.java:577)
> java.nio.file.Files.createSymbolicLink (Files.java:994)
> backtype.storm.util$create_symlink_BANG_.invoke (util.clj:604)
> backtype.storm.daemon.supervisor$create_artifacts_link.invoke
> (supervisor.clj:811)
> backtype.storm.daemon.supervisor/fn (supervisor.clj:898)
> clojure.lang.MultiFn.invoke (MultiFn.java:251)
> backtype.storm.supervisor_test$fn__498$fn__501$fn__502$fn__503.invoke
> (supervisor_test.clj:472)
> clojure.core$with_redefs_fn.invoke (core.clj:7209)
> backtype.storm.supervisor_test$fn__498$fn__501$fn__502.invoke
> (supervisor_test.clj:462)
> backtype.storm.supervisor_test$fn__498$fn__501.invoke
> (supervisor_test.clj:462)
> backtype.storm.supervisor_test/fn (supervisor_test.clj:451)
> {quote}
> I don't know if the testcase itself should be catching the error and
> presenting it as a failed test, or if the original code should be catching it
> and reacting.
> What's odd here is that if this is using my own user account and privileges,
> then it should work, because my account _does_ have permission to create
> symlinks.
> Tested against master branch (c12e28c829)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)