<?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 Re: SET Location in dbwrite table in r in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SET-Location-in-dbwrite-table-in-r/m-p/330079#M230592</link>
    <description>&lt;P&gt;AFAIK the table location should be set at the time of Creation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set files in a different location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;&lt;SPAN&gt;ALTER TABLE jsont1 SET LOCATION "hdfs://mycluster:8020/jsam/j1"; to change the location and need to move the files manually from old location to new location.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 10:15:49 GMT</pubDate>
    <dc:creator>asish</dc:creator>
    <dc:date>2021-11-12T10:15:49Z</dc:date>
    <item>
      <title>SET Location in dbwrite table in r</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SET-Location-in-dbwrite-table-in-r/m-p/329983#M230566</link>
      <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I am using Rstudio and I need to save some tables in my sandbox, however I cannot specify the location, because by default we send the tables to the path:&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;hdfs: //haprod/warehouse/tablespace/managed/hive/cld_ml_bi_eng.db/iris&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;How can I specify the location when writing the&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;table is in the&amp;nbsp;LOCATION '/sandbox/CLD_ML_BI_ENG/iris'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;library(DBI)
library(odbc)
con_Hive &amp;lt;- dbConnect(odbc::odbc(), "Hive_produccion", database = "cld_ml_bi_eng", encoding = "latin1")
colnames(iris) &amp;lt;- gsub(pattern = "\\.", replacement = "_", x = colnames(iris))
dbWriteTable(conn = con_Hive, name = Id(schema = "cld_ml_bi_eng", table = "iris"), value = iris)&lt;/LI-CODE&gt;&lt;P&gt;LOCATION '/sandbox/CLD_ML_BI_ENG/iris'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 08:03:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SET-Location-in-dbwrite-table-in-r/m-p/329983#M230566</guid>
      <dc:creator>RafaelDiaz</dc:creator>
      <dc:date>2026-04-21T08:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: SET Location in dbwrite table in r</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SET-Location-in-dbwrite-table-in-r/m-p/330079#M230592</link>
      <description>&lt;P&gt;AFAIK the table location should be set at the time of Creation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set files in a different location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;&lt;SPAN&gt;ALTER TABLE jsont1 SET LOCATION "hdfs://mycluster:8020/jsam/j1"; to change the location and need to move the files manually from old location to new location.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 10:15:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SET-Location-in-dbwrite-table-in-r/m-p/330079#M230592</guid>
      <dc:creator>asish</dc:creator>
      <dc:date>2021-11-12T10:15:49Z</dc:date>
    </item>
  </channel>
</rss>

