Skip to content

Instantly share code, notes, and snippets.

@vithalsamp
Created February 25, 2018 08:07
Show Gist options
  • Save vithalsamp/b1640574953ee2de92043cd55ede8b04 to your computer and use it in GitHub Desktop.
Save vithalsamp/b1640574953ee2de92043cd55ede8b04 to your computer and use it in GitHub Desktop.
#!/bin/sh
printf "exists '%s'\n" personalnew | hbase shell 2>&1 | grep -q "does exist" 2>/dev/null
if [ $? -eq 0 ] ; then
printf "table is available.!\n"
else
printf "Table is not present.!\n"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment