<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to check the existence of the table in Beeline Hive using shell script in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-existence-of-the-table-in-Beeline-Hive/m-p/181219#M73216</link>
    <description />
    <pubDate>Mon, 08 Jan 2018 13:35:21 GMT</pubDate>
    <dc:creator>Gayathridevi</dc:creator>
    <dc:date>2018-01-08T13:35:21Z</dc:date>
    <item>
      <title>How to check the existence of the table in Beeline Hive using shell script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-existence-of-the-table-in-Beeline-Hive/m-p/181219#M73216</link>
      <description />
      <pubDate>Mon, 08 Jan 2018 13:35:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-existence-of-the-table-in-Beeline-Hive/m-p/181219#M73216</guid>
      <dc:creator>Gayathridevi</dc:creator>
      <dc:date>2018-01-08T13:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to check the existence of the table in Beeline Hive using shell script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-existence-of-the-table-in-Beeline-Hive/m-p/181220#M73217</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/39249/gayathrimtechcse.html" nodeid="39249"&gt;@Gayathri Devi&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can use the below script .&lt;/P&gt;&lt;PRE&gt;beeline -u "{connection-string}" -e "show tables"  | grep $1
if [ $? -eq 0 ]
then
  echo "table found"
else
  echo "table not found"
fi&lt;/PRE&gt;&lt;P&gt;But the content in a file say checktable.sh and run the below steps&lt;/P&gt;&lt;PRE&gt;chmod +x checktable.sh
./checktable.sh {tablename to check}&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 15:11:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-the-existence-of-the-table-in-Beeline-Hive/m-p/181220#M73217</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-01-08T15:11:02Z</dc:date>
    </item>
  </channel>
</rss>

