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

Hive Beeline parameters in shell script

Hive Beeline parameters in shell script


Hello everybody,

I want to use beeline in Shell script and it not working properly . can someone help me to resolve this .

source /file_path/ -- with 777 permission

beeline -u ${hive_connection_string} -n $USER_NAME -p $PASSWORD -f /usr/hql/query.hql




create external table ( ....) location /user/hdfs_path/landingdir/ --> this directory is also not picking in the main script .

What is the main thing am I missing or how can I achieve this .

When we try to run the the values

-n $USER_NAME/password is not picking in the main script . What am I doing wrong . I think it is taking me to beeline session . so the shell is not taking the right .

Have tried this step alone for many hours , tried all the possibilites of single quotes , double quotes , flower braces without braces. It didn't seem to work . what is right way to approach this

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