Skip to content

Instantly share code, notes, and snippets.

@nsabharwal
Created November 11, 2015 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsabharwal/1a75f2ca99ec72c57e15 to your computer and use it in GitHub Desktop.
Save nsabharwal/1a75f2ca99ec72c57e15 to your computer and use it in GitHub Desktop.
read -p "enter HS2 hostname: " HS2
read -p "enter username: " username
echo "enter password"
read -s passwd
read -p "enter filename: " filename
beeline -u jdbc:hive2://$HS2:10000/default -n $username -p $passwd -f $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment