-
Notifications
You must be signed in to change notification settings - Fork 55
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
Rendering SLS 'base:hadoop.hdfs' failed: Jinja variable No first item, sequence was empty. #20
Comments
What happens if you try to run completely without the pillar block? |
It still happens. I've made a little bit of progress though. Caveat - I'm trying to get a master and slave working under Vagrant and two
The error is basically saying that first can't return anything because I'm just guessing that because I'm running 'masterless' with a local setup that I'm stuck. On Wed, Mar 4, 2015 at 4:20 PM, Steffen Roegner [email protected]
|
You might have guessed that what the code is trying to do is to collect the list of hosts that match expression and targeting_method (in your case the default - grains).
|
Ah. That might be better/easier than what I ended up doing:
And manually spelling 'em out in the pillar config: namenode_host: 192.168.100.100
datanode_hosts: [192.168.100.200] On Thu, Mar 5, 2015 at 7:09 AM, Steffen Roegner [email protected]
|
I'm experiencing this too right out of the box. I have tried with and without the pillar block from the example. Can we call it a bug? Even if it is just a documentation issue. |
FWIW, I'm not using a masterless setup. |
@blbradley Can you share the result of 'salt * grains.get roles' ? |
I have this working now. My minion config did have the roles set but was still getting this. I am not able to reproduce again. Can this error be put in a troubleshooting section? It's hard to debug because no real contextual info (line number, rendered jinja) is given. |
I'll do it if someone says it's alright. |
send a pull request with the update |
I ran into the same issue. I had my Pillar conf setup like this:
excepting the default grain matching to work, but it doesn't seem to? I was getting the I changed the Pillar to this:
and it worked, though I'm not sure if it was the config change or if Salt cleared its cache or something? |
@lextoumbourou FWIW: when these problems come up (with the ever same unhelpful error message) I'd try to investigate a bit on the command line trying to figure out what to expect from the salt setup and then maybe change the files. Comparing
with
should be the equivalent of the two examples you gave. In my experience the targeting depends on both the salt version mix in use and the current state of the cluster - at the same time the jinja code doesn't really allow for error handling. The good news: it usually works pretty reliably once all the pieces are in place. hth |
I'm pretty sure it's my pillar config, but I can't get it. Anybody else see this when trying to use hadoop.hdfs?
The text was updated successfully, but these errors were encountered: