<?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: Finding how much space is used in Hadoop using SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580595#M34456</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Please just confirm me once what version of SAS you are using.&lt;BR /&gt;&lt;BR /&gt;Also, in the area of Hadoop username and password have you passed Hadoop username and password or not!!&lt;BR /&gt;&lt;BR /&gt;Just right click on the library of Hadoop in SAS EG and have a check what username and password is been assigned then try.&lt;BR /&gt;&lt;BR /&gt;Also which path in the same library has been passed just have a check. Don't pass the username and password which you are using to login to SAS EG like for profile credentials.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Aug 2019 16:37:11 GMT</pubDate>
    <dc:creator>rajdeep</dc:creator>
    <dc:date>2019-08-12T16:37:11Z</dc:date>
    <item>
      <title>Finding how much space is used in Hadoop using SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/573994#M34253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use SAS EG to run queries for our work. We have recently been provided a Hadoop location to save our datasets. I am looking for a way to capture the space used in that server/library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use to use the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;PROC SQL ;
create table SIZE_AC as 
SELECT LIBNAME,
MEMNAME,
FILESIZE FORMAT=SIZEKMG.,
FILESIZE FORMAT=SIZEK.
FROM DICTIONARY.TABLES
WHERE LIBNAME = 'AC'
AND MEMTYPE = 'DATA' 
ORDER BY FILESIZE DESC
;QUIT ;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;to calculate the size before, but it does not work with Hadoop.&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I had an idea of someone looping the Hadoop library and capturing the data size (unless there is a direct way to do it)&lt;/P&gt;&lt;P&gt;1. Copy a table from Hadoop to Work library&lt;/P&gt;&lt;P&gt;2. Capture the size of that table with name in another table&lt;/P&gt;&lt;P&gt;3. Delete the table from work and copy the second table&lt;/P&gt;&lt;P&gt;4. Do while&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will give me size of all the tables. It is a very lengthy process specially since I have dozens of tables in Hadoop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone assist me with that code? I do not know Do while loop in SAS EG.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 20:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/573994#M34253</guid>
      <dc:creator>amity21</dc:creator>
      <dc:date>2019-07-21T20:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding how much space is used in Hadoop using SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580523#M34453</link>
      <description>&lt;P&gt;HI Amity,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try to run the code. The "hdfs ls" will show the filesize as well in the output list. Like in the code it's in *, but if you need any specific file then you can mention that. Yeah, you need to change the username password and path as per the hadoop location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The libname what you had mapped in your EG from that you might get the credentials and path probably.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a try and check. I hope you are using 9.4.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options set=SAS_HADOOP_CONFIG_PATH="\\sashq\root\u\abcdef\cdh45p1";
options set=SAS_HADOOP_JAR_PATH="\\sashq\root\u\abcdef\cdh45";
options set=SAS_HADOOP_RESTFUL 1;
proc hadoop username='sasabc' password='sasabc' verbose;
   hdfs cat='/user/sasabc/*';
    hdfs ls='/user/sasabc/*';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Aug 2019 12:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580523#M34453</guid>
      <dc:creator>rajdeep</dc:creator>
      <dc:date>2019-08-12T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Finding how much space is used in Hadoop using SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580557#M34454</link>
      <description>&lt;P&gt;Hello Rajdeep,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help, but the code did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I ran&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options set=SAS_HADOOP_JAR_PATH="/sas/thirdparty/hadoopp/final";
options set=SAS_HADOOP_CONFIG_PATH="/sas/thirdparty/hadoopp/final";
options set=SAS_HADOOP_RESTFUL 1;

proc hadoop username='SASEG_USERNAME' password='SASEG_PASSWORD' verbose;
   hdfs cat='/user/SASEG_USERNAME/*';
    hdfs ls='/user/SASEG_USERNAME/*';
run;

	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This generated a bunch of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Could not find extension: (libvas-gssapi)
ERROR: Could not find extension: (libvas-gssapi)
ERROR: Could not find extension: (libvas-gssapi)
ERROR: Could not find extension: (/opt/quest/lib64/libvas-gssapi.so)
ERROR: Could not find extension: (/opt/quest/lib64/libvas-gssapi.so)
ERROR: Could not find extension: (/opt/quest/lib64/libvas-gssapi.so)
ERROR: Could not find extension: (libgssapi_krb5)
ERROR: Could not find extension: (libgssapi_krb5)
ERROR: Could not find extension: (libgssapi_krb5)
ERROR: Could not find extension: (libgssapi)
ERROR: Could not find extension: (libgssapi)
ERROR: Could not find extension: (libgssapi)
ERROR: Could not find extension: (libgss)
ERROR: Could not find extension: (libgss)
ERROR: Could not find extension: (libgss)
ERROR: Unable to load extension: (tksecgss)
ERROR: Unable to load the authentication provider tksecgss.
ERROR: Unable to get home directory: HTTP status: Unauthorized (401)
ERROR: Failed URL: http://elxap251.xxxxx.com:50070/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;user.name=SASEG_USERNAME
ERROR: Could not find extension: (libvas-gssapi)
ERROR: Could not find extension: (libvas-gssapi)
ERROR: Could not find extension: (libvas-gssapi)
2                                                          The SAS System                              10:09 Monday, August 12, 2019

ERROR: Could not find extension: (/opt/quest/lib64/libvas-gssapi.so)
ERROR: Could not find extension: (/opt/quest/lib64/libvas-gssapi.so)
ERROR: Could not find extension: (/opt/quest/lib64/libvas-gssapi.so)
ERROR: Could not find extension: (libgssapi_krb5)
ERROR: Could not find extension: (libgssapi_krb5)
ERROR: Could not find extension: (libgssapi_krb5)
ERROR: Could not find extension: (libgssapi)
ERROR: Could not find extension: (libgssapi)
ERROR: Could not find extension: (libgssapi)
ERROR: Could not find extension: (libgss)
ERROR: Could not find extension: (libgss)
ERROR: Could not find extension: (libgss)
ERROR: Unable to load extension: (tksecgss)
ERROR: Unable to load the authentication provider tksecgss.
ERROR: Unable to list directory status: HTTP status: Unauthorized (401)
ERROR: Failed URL: http://elxap251.xxxxx.com:50070/webhdfs/v1/user/SASEG_USERNAME?op=LISTSTATUS&amp;amp;user.name=SASEG_USERNAME
ERROR: Directory /user/SASEG_USERNAME doesn't exist&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Aug 2019 14:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580557#M34454</guid>
      <dc:creator>amity21</dc:creator>
      <dc:date>2019-08-12T14:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding how much space is used in Hadoop using SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580595#M34456</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Please just confirm me once what version of SAS you are using.&lt;BR /&gt;&lt;BR /&gt;Also, in the area of Hadoop username and password have you passed Hadoop username and password or not!!&lt;BR /&gt;&lt;BR /&gt;Just right click on the library of Hadoop in SAS EG and have a check what username and password is been assigned then try.&lt;BR /&gt;&lt;BR /&gt;Also which path in the same library has been passed just have a check. Don't pass the username and password which you are using to login to SAS EG like for profile credentials.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2019 16:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580595#M34456</guid>
      <dc:creator>rajdeep</dc:creator>
      <dc:date>2019-08-12T16:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Finding how much space is used in Hadoop using SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580602#M34457</link>
      <description>&lt;P&gt;Hi Rajdeep,&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS EG version is 7.12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using SAS EG Username password.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I right click SAS EG I can't find any login credentials.&lt;/P&gt;&lt;P&gt;Path is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;jdbc:hive2://elxap251.xxxxx.com:2181,elxap252.xxxxx.com:2181,elxap253.xxxxx.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Only username password I have, beside SAS EG, is Oracle which I do not think applies here either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 16:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580602#M34457</guid>
      <dc:creator>amity21</dc:creator>
      <dc:date>2019-08-12T16:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding how much space is used in Hadoop using SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580609#M34458</link>
      <description>Okay. Just hold a sec and please go through the following link once and try to identify where something you are missing out.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1h398otek0j00n1itib5k7ch738.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n1h398otek0j00n1itib5k7ch738.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, just like to know when you clicked on the properties of the Hadoop library in SAS EG, you are just getting the path.&lt;BR /&gt;&lt;BR /&gt;Like, I am just talking about the library like SASHELP or SASWORK under app server area.&lt;BR /&gt;&lt;BR /&gt;If you have the access to SAS management console then please do check over there as well the properties of the same library, but before that please go through the link so that you might get some clarity about SAS to Hadoop JDBC bridge.</description>
      <pubDate>Mon, 12 Aug 2019 17:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-how-much-space-is-used-in-Hadoop-using-SAS-EG/m-p/580609#M34458</guid>
      <dc:creator>rajdeep</dc:creator>
      <dc:date>2019-08-12T17:25:08Z</dc:date>
    </item>
  </channel>
</rss>

