Pacific-Design.com

    
Home Index

1. Apache Hive

2. Beeline

Apache Hive / Beeline /

Beeline

#----------------------------------------------------------------------------------------------------------#
sql_file() {
    beeline -u jdbc:hive2://spark.pacificair.com:10001/default -n 'kevinduraj' -w  ~/password.txt  -f ${1}
}
#----------------------------------------------------------------------------------------------------------#
sql_line() {
    beeline -u jdbc:hive2://spark.pacificair.com:10001/default -n 'kevinduraj' -w  ~/password.txt -e "${1}"
}
#----------------------------------------------------------------------------------------------------------#