New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Petrel on localhost OS X #10
Comments
The setup_*.sh scripts are created from the string template in the intercept() function of petrel/petrel/package.py. Petrel uses the "flock" command in order to create a single virtualenv per Storm worker machine and share it across all the processes from that topology. It appears the "flock" command is not available on Mac OS X: http://stackoverflow.com/questions/10526651/mac-os-x-equivalent-of-linux-flock1-command I have made some experimental changes to package.py and attached a copy for you to try. The changes begin at the comment: On Mac OS X, the "flock" command is not availablePlease test these changes and let me know if they work. I'll get them in the Petrel trunk for you. With these changes, each job on OS X will always create a new virtualenv. This will make jobs start up slower and use more disk space, but it should work. For your production environment, you will probably want to use an operating system which supports the "flock" command. |
Here's a patch file with the changes mentioned in the previous comment - I think github.com discarded my email attachment.
|
The patch you supplied did not work, the flock command is still called. As far as I can tell, shlock is called when has_flock == 0, which in turn flock (as defined on line 201) - is this correct? |
I want it to skip the code in this section:
if "flock" is not available on the machine. When "flock" is missing it should always enter this "if":
I will post an updated patch with a couple of additional fixes. It may still not work but it should be pretty close. I'm pretty busy with some other projects this week, so I don't have time to test the patches before sending them to you. Sorry! With these patches as a starting point, can you try to get it working and send me an updated patch when it is working for you? |
|
Closing due to no response. Please open a new ticket if you can help test this on a Mac. |
Fixed by pull request #20 |
I can't run the sample wordcount topology on my Mac OS X 10.7.4 localhost because of the following error:
The "flock" utility is missing from OS X, and I can't find the setup_splitsentence.sh file that is using it.
Link to a more complete stack-trace: http://pastie.org/5718499
The text was updated successfully, but these errors were encountered: