This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-17
Channels
- # admin-announcements (4)
- # boot (93)
- # cider (4)
- # cljsrn (61)
- # clojure (137)
- # clojure-austin (2)
- # clojure-brasil (2)
- # clojure-dev (11)
- # clojure-dusseldorf (10)
- # clojure-greece (245)
- # clojure-russia (37)
- # clojure-spec (60)
- # clojure-taiwan (1)
- # clojure-uk (24)
- # clojurescript (36)
- # cursive (18)
- # datomic (20)
- # emacs (20)
- # funcool (1)
- # hoplon (29)
- # jobs (1)
- # keechma (1)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (3)
- # om (10)
- # om-next (1)
- # onyx (60)
- # other-languages (14)
- # planck (26)
- # random (3)
- # re-frame (21)
- # ring (2)
- # spacemacs (8)
- # specter (56)
- # spirituality-ethics (2)
- # uncomplicate (1)
- # untangled (68)
- # yada (3)
New beefed up FAQ/error-diagnosis doc: https://github.com/onyx-platform/onyx/blob/e4f432364c9ce3c7b75271f04c8bbbf21fb487d4/doc/user-guide/faq.md
It will land on the website with the 0.9.7 release.
quick question... is the expectation that I should be able to do:
lein new onyx-app myapp
cd myapp
lein run -m myapp.core
and that should work?It depends what you’re trying to do
But generally no, the template is not setup for that
The -main
function in myapp.core serves to startup peers or submit a job to a cluster
You can run the tests (spawns an end to end test with a live onyx in-memory instance)
No, it’s just lein test
however if you want to run a docker-compose cluster you can refer to the readme https://github.com/onyx-platform/onyx-template
Could you post the gist of some?
Caused by: java.lang.UnsupportedClassVersionError: uk/co/real_logic/agrona/collections/Int2ObjectHashMap : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
at clojure.lang.DynamicClassLoader.loadClass(DynamicClassLoader.java:77)
at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
at clojure.lang.DynamicClassLoader.loadClass(DynamicClassLoader.java:77)
at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
$ lein test
Exception in thread "main" java.lang.UnsupportedClassVersionError: uk/co/real_logic/agrona/collections/Int2ObjectHashMap : Unsupported major.minor version 52.0, compiling:(onyx/messaging/aeron/peer_manager.clj:1:1)
at clojure.lang.Compiler.load(Compiler.java:7391)
at clojure.lang.RT.loadResourceScript(RT.java:372)
at clojure.lang.RT.loadResourceScript(RT.java:363)
at clojure.lang.RT.load(RT.java:453)
at clojure.lang.RT.load(RT.java:419)
at clojure.core$load$fn__5677.invoke(core.clj:5893)
at clojure.core$load.invokeStatic(core.clj:5892)
at clojure.core$load.doInvoke(core.clj:5876)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invokeStatic(core.clj:5697)
at clojure.core$load_one.invoke(core.clj:5692)
at clojure.core$load_lib$fn__5626.invoke(core.clj:5737)
at clojure.core$load_lib.invokeStatic(core.clj:5736)
at clojure.core$load_lib.doInvoke(core.clj:5717) ...
if I open up src/myapp/core.clj
and try to evaluate the first stanza (namespace) in Cider, it also gives me errors
Whats your java version java -version
needs to be 1.8
https://www.jayway.com/2014/01/15/how-to-switch-jdk-version-on-mac-os-x-maverick/
I use that
to switch JDK's
Hmm I’m not sure then
Awesome good luck
hey - another question. The older meetup example was really cool. I saved a copy of it and at one point it was working great. But now upon docker-compose up
I get errors at some point
peer_1 | Exception in thread "main" java.io.IOException: No space left on device
I'm not sure which device this is (which container?) any ideas on where this might be?Can you post the full exception?
We also have this now
Just put in your Twitter API keys and follow the instructions and it'll get you an easier to use job feeding off the Twitter stream
I wanted to look into the twitter example as well, I don't as yet have twitter keys... (believe it or not, never used Twitter)
Maybe you need to set a shm_size
? e.g. https://github.com/onyx-platform/onyx-template/blob/0.9.x/src/leiningen/new/onyx_app/docker-compose.yaml#L6
In the older example that was manually set in the media driver script, the two settings are mutually exclusive though, only use one or the other, and for everything new prefer setting shm_size explicitly
Yea it should be pretty straightforward to get the meetup example going but the problem with that was the tempermental setup between the curling kafkacat container and kafka
We opted to write a Twitter plugin in order to avoid that complexity
Yup sounds good any questions just shoot 😄
If you have a Twitter account it's like two buttons to generate them
Not sure where, I google search for the link every time haha
Just make a fake account
I would have done that but they rate limit