Skip to content
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

can't serialize field alter the var to unbound. #30

Open
clojurians-org opened this issue Mar 31, 2017 · 2 comments
Open

can't serialize field alter the var to unbound. #30

clojurians-org opened this issue Mar 31, 2017 · 2 comments

Comments

@clojurians-org
Copy link

when i run the following code, i get var a, then i run "into" on it.
it say:
Warning: can't serialize #'bolome.ods.d_bolome_product_category/a it won't be sent to workers
then the var a turn into unbound var.

  (def a                                                                                                                                                  
    (->> (keg/join (keg/by-key [[:a 3] [:b 4]]) :or nil (keg/by-key [[:a 5] [:b 7]]) :or nil)                                                             
         .cache))                                                                                                                                         
                                                                                                                                                          
  (into [] a)    
@cgrand
Copy link
Contributor

cgrand commented Mar 31, 2017

What's your setup? I tested with spark 2.10 in local and standalone cluster and it worked, I get [[:b [4 7]] [:a [3 5]]].

@clojurians-org
Copy link
Author

i run it in standalone mode in spark 2.10.

it's not about run without right result.
rather than, after you got result, the var a turn into the unbound

  (def a => #object[clojure.lang.Var$Unbound 0x31ee0bf8 "Unbound: #'bolome.ods.d_bolome_product_category/a"]                           
    (->> (keg/join (keg/by-key [[:a 3] [:b 4]]) :or nil (keg/by-key [[:a 5] [:b 7]]) :or nil)                                          
         .cache))                                                                                                                      

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants