Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Amabri blueprint syntax

Highlighted

Amabri blueprint syntax

Expert Contributor

Dear community,

I am little bit confused with variables in ambari blueprints. Actually had not found any manual about syntax in ambari blueprints.

Just found something like this {{nifi_install_dir}} which I guess refers to nifi.install.dir option, but I am not sure because had not found any description how it works. Also I had noticed such variables ${hbase.tmp.dir} are they the same as {{hbase_tmp_dir}}? Also found something like {hbase_tmp_dir}. What usage of blueprint variables is correct?

2 REPLIES 2

Re: Amabri blueprint syntax

Expert Contributor

Also noticed some conditional expressions like "{% if security_enabled %}". How does this works? Which other constructions blueprint supports?

Re: Amabri blueprint syntax

Expert Contributor

I had found out that amabri uses jinja2 templates, so the syntax should be the same as used in jinja2.

https://github.com/apache/ambari/tree/trunk/ambari-common/src/main/python/ambari_jinja2/docs

However I am still not sure about variables. In stacks definitions variables are in format "nifi.install.dir", but in blueprints they are in format nifi_install_dir. Which variant is correct?

Don't have an account?
Coming from Hortonworks? Activate your account here