Fork me on GitHub
#onyx
<
2016-06-28
>
agile_geek09:06:45

Hi, I'm just trying out the new onyx lein template (I'm also an onyx noob in general) and I'm getting a failure when running lein test:

lein test :only try-onyx-template.jobs.basic-test/basic-test

ERROR in (basic-test) (core.clj:151)
Uncaught exception, not in assertion.
expected: nil
  actual: clojure.lang.ExceptionInfo: Value does not match schema: {:onyx.log/config (not (map? nil))}
 at schema.core$validator$fn__11050.invoke (core.clj:151)
    schema.core$validate.invokeStatic (core.clj:160)
Any ideas?

lucasbradstreet09:06:47

Lemme have a look for you. How was this generated? lein new onyx-app my-app-name?

agile_geek09:06:22

FYI - I've been working my way through https://github.com/onyx-platform/onyx-starter and that's been running OK

lucasbradstreet09:06:14

Yeah, this is almost definitely a bug in onyx-template

lucasbradstreet09:06:26

we probably changed the schema recently, or something like that

lucasbradstreet09:06:10

Ah, new config feature (bug)

lucasbradstreet09:06:19

edit resources/config.edn

lucasbradstreet09:06:20

:onyx.log/config #profile {:default nil
                             :docker {:level :info}}}

agile_geek09:06:24

K. At least I surfaced it for you 😄

lucasbradstreet09:06:50

change :default nil to be default {:level :info}. Our schema doesn’t like it ever being nil

agile_geek09:06:07

Cool. I'll give that a try.

lucasbradstreet09:06:42

It looks like you’ll hit another error

agile_geek09:06:05

I changed that :default entry in two places in config.edn and it ran OK

agile_geek09:06:36

in :env-config and in :peer-config

lucasbradstreet09:06:48

mine was another transient issue that we’ve fixed upstream

lucasbradstreet09:06:54

We’ll get that fixed. Thanks

agile_geek09:06:08

No prob. Thank you.

agile_geek13:06:56

I am trying out the docker version of the template now. I have figured out how to run the docker services using docker-compose up for the template, but I'm struggling with how to run basic-job after that. Any pointers?

gardnervickers13:06:55

Yea you can run it through lein test

gardnervickers13:06:15

But in order to have it running on a docker cluster it needs to either have some sample data supplied to it through a lifecycle or fleshed out a little more. Refer to onyx-Twitter-sample repository.

gardnervickers13:06:23

I can link momentarily

gardnervickers14:06:11

@agile_geek: this is an example of using the template structure to build out a functional Onyx job https://github.com/onyx-platform/onyx-twitter-sample

agile_geek14:06:23

@gardnervickers: thanks. I saw this in your hangout but haven't got around to trying it out.