<?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: Hadoop: Renaming a HDFS file from SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500256#M133195</link>
    <description>Yes. It is created when I run the insert to code.</description>
    <pubDate>Mon, 01 Oct 2018 02:41:25 GMT</pubDate>
    <dc:creator>DrBigAl</dc:creator>
    <dc:date>2018-10-01T02:41:25Z</dc:date>
    <item>
      <title>Hadoop: Renaming a HDFS file from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/499968#M133080</link>
      <description>&lt;P&gt;Hi, I have successfully loaded data into a hdfs file as a txt/ pipe delimited. My only problem is that the name of the file is not changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HDFS path: /home/user/data/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The name of the file is.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sasdata-2018-09-28-12-32....dlv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to be...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my_file_info.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every time the code is ran, the former name changes, but still keeps the sasdata: prefix. How do I, from SAS, change the name of the .dlv file and rename it to my_file_info.txt, while accounting for the sasdata: name changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to hadoop (server="&amp;amp;serv" port=&amp;amp;portn. user="&amp;amp;user" password="&amp;amp;dbpass"&lt;BR /&gt;SCHEMA=lw subprotocol=hive2 DBMAX_TEXT=&amp;amp;mxtext.);&lt;BR /&gt;execute(create external table my_file_info(&lt;BR /&gt;num_cd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string)&lt;/P&gt;&lt;P&gt;row format delimited fields terminated by '|'&lt;BR /&gt;LOCATION "/home/user/data/") by hadoop;&lt;BR /&gt;disconnect from hadoop;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname lw hadoop server="&amp;amp;serv" port=&amp;amp;portn. user="&amp;amp;user" password="&amp;amp;dbpass"&lt;BR /&gt;SCHEMA=lw_research subprotocol=hive2 DBMAX_TEXT=&amp;amp;mxtext.&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;insert into lw.my_file_info select * from &amp;amp;processlib.mytable;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 16:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/499968#M133080</guid>
      <dc:creator>DrBigAl</dc:creator>
      <dc:date>2018-09-28T16:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop: Renaming a HDFS file from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500215#M133180</link>
      <description>&lt;P&gt;I no longer have access to Hadoop, so my help will be limited.&lt;/P&gt;
&lt;P&gt;When is the dlv file created? When you run &lt;FONT face="courier new,courier"&gt;insert into&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Sep 2018 21:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500215#M133180</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-09-30T21:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop: Renaming a HDFS file from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500256#M133195</link>
      <description>Yes. It is created when I run the insert to code.</description>
      <pubDate>Mon, 01 Oct 2018 02:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500256#M133195</guid>
      <dc:creator>DrBigAl</dc:creator>
      <dc:date>2018-10-01T02:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop: Renaming a HDFS file from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500261#M133199</link>
      <description>&lt;P&gt;Why do you care what the file name is? This is internal Hadoop sausage-making isn't it? You only access the metadata layer (table &lt;SPAN&gt;&amp;nbsp;my_file_info)&amp;nbsp;&lt;/SPAN&gt;don't you?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 03:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500261#M133199</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-10-01T03:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop: Renaming a HDFS file from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500338#M133227</link>
      <description>&lt;P&gt;You are right. A lot of internal sausage-making. If it were up to me, I'd keep it as it is.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 13:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500338#M133227</guid>
      <dc:creator>DrBigAl</dc:creator>
      <dc:date>2018-10-01T13:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hadoop: Renaming a HDFS file from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500559#M133332</link>
      <description>&lt;P&gt;Sorry, I can't help further. It is a bit too long ago to remember if I went to look at the actual file names, though I suspect I was never interested. Ask tech support if no one here knows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 21:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hadoop-Renaming-a-HDFS-file-from-SAS/m-p/500559#M133332</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-10-01T21:22:03Z</dc:date>
    </item>
  </channel>
</rss>

