<?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>topic Re: hive show table and column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908051#M358401</link>
    <description>&lt;P&gt;I have never worked with HADOOP (or HIVE) but a couple of points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) You original query is using pass thru to run HADOOP code.&amp;nbsp; So if you want to do the same thing then find out what HADOOP code lists the variables in a dataet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Why not just see if you can't use normal SAS code to get the contents of the datasets?&amp;nbsp; Make a LIBREF using the HADOOP engine and run normal SAS code. So something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib hadoop .....;
proc contents data=mylib.my_dataset;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where MY_DATASET is one of the "table" names you got from the SHOW TABLES command.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 18:49:11 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-12-14T18:49:11Z</dc:date>
    <item>
      <title>hive show table and column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908044#M358398</link>
      <description>&lt;P&gt;I found the below solution in our community but would like to adapt it to include columns:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;this is passing through to hadoop:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;select * from connection to hadoop (show tables);&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Is there a modification that can show tables and columns?&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Dec 2023 17:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908044#M358398</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2023-12-14T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: hive show table and column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908046#M358399</link>
      <description>&lt;P&gt;How are you connecting to HADOOP?&lt;/P&gt;
&lt;P&gt;Are you using ODBC?&amp;nbsp; Do these the ODBC specific queries help?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/15/721.html" target="_blank"&gt;https://support.sas.com/kb/15/721.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 18:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908046#M358399</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-14T18:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: hive show table and column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908048#M358400</link>
      <description>&lt;P&gt;this is not ODBC:&lt;/P&gt;
&lt;DIV&gt;proc sql;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; connect to hadoop&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; (READ_METHOD=HDFS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* this attemps HDFS read which is faster than JDBC */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; server=''&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* the hiveserver we talk to */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; LOGIN_TIMEOUT=300&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; schema=&amp;amp;schema.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* this is the schema where you want to read or write data to */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; uri=&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Dec 2023 18:34:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908048#M358400</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2023-12-14T18:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: hive show table and column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908051#M358401</link>
      <description>&lt;P&gt;I have never worked with HADOOP (or HIVE) but a couple of points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) You original query is using pass thru to run HADOOP code.&amp;nbsp; So if you want to do the same thing then find out what HADOOP code lists the variables in a dataet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Why not just see if you can't use normal SAS code to get the contents of the datasets?&amp;nbsp; Make a LIBREF using the HADOOP engine and run normal SAS code. So something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib hadoop .....;
proc contents data=mylib.my_dataset;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where MY_DATASET is one of the "table" names you got from the SHOW TABLES command.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 18:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/hive-show-table-and-column/m-p/908051#M358401</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-14T18:49:11Z</dc:date>
    </item>
  </channel>
</rss>

