airflow icon indicating copy to clipboard operation
airflow copied to clipboard

auth parameter change for beeline (based on the newest commit 2015-11-20)

Open syvineckruyk opened this issue 11 years ago • 2 comments

oddly enough in my environment ... I am passing user, schema, and extra parameters to beeline.

{"use_beeline": true, "auth":"plain", "hive_cli_params": "-i /home/airflow/hiveconf.hql"}

The connection string is actually causing the trailing params/arguments to fail. (-bash: -n: command not found)

enclosing the connection string in quotes has resolved the issue for me.

Would adding: jdbc_url = '"{jdbc_url}"'.format(jdbc_url=jdbc_url) following:

jdbc_url = jdbc_url.format(**locals())

be acceptable to you ? It could also be done in a single statement ... but would look a bit odd.

syvineckruyk avatar Nov 20 '15 21:11 syvineckruyk

@syvineckruyk would single quotes be enough? then it probably could be done higher up

bolkedebruin avatar Nov 27 '15 08:11 bolkedebruin

@bolkedebruin may actually have been a mistake on my end ... need to do a few more tests and will confirm ... thanks for the help though.

syvineckruyk avatar Dec 01 '15 18:12 syvineckruyk