Simple and effective Workarounds !
Tuesday, 2 February 2016
How to pass Parameter in HIVE hql
hive -e 'create database ${db}' -define db='twitter_stream'
OR
if you are calling hive hql in shell script :
hive -e 'create database ${db}' -define db=$1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment