<?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: Override Hive Default Path in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55686#M62288</link>
    <description>&lt;P&gt;&amp;gt;&amp;gt; why don't it it creates folder with &amp;lt;dbname&amp;gt;.db folder&amp;nbsp; when you pass the location to create a database(overriding the default path) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because that is how hive works when you provide the path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you specify the path it uses this path. It's not adding a sub folder to the path you have provided.&lt;/P&gt;&lt;P&gt;It assumes you have provided the path you want to use exactly.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2017 10:15:12 GMT</pubDate>
    <dc:creator>mathieu.d</dc:creator>
    <dc:date>2017-06-12T10:15:12Z</dc:date>
    <item>
      <title>Override Hive Default Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55408#M62284</link>
      <description>&lt;P&gt;Hi Hive Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a Hive database by overrrinding the defailt path as follows,&lt;/P&gt;&lt;P&gt;SQL:&lt;/P&gt;&lt;P&gt;Create database diff location '/user/cloudera/sat';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After creating this databse, I tried to access this path to see wether it's created a .db folder , but I don't see anything with this name there. Even I created a table in this database and I only see the new folder with name as test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why its not crated diff.db folder in this path. Please refer the attached screen shots for more details. Please let me know if i am missing anything here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-06-04 at 9.32.57 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/3037i778699AC99EE5A49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2017-06-04 at 9.32.57 AM.png" alt="Screen Shot 2017-06-04 at 9.32.57 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-06-04 at 9.37.42 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/3038i1315D3DB633BD5DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2017-06-04 at 9.37.42 AM.png" alt="Screen Shot 2017-06-04 at 9.37.42 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-06-04 at 9.38.27 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/3039i9A08F9894E764CC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2017-06-04 at 9.38.27 AM.png" alt="Screen Shot 2017-06-04 at 9.38.27 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-06-04 at 9.38.51 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/3040i374841A68F70E208/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2017-06-04 at 9.38.51 AM.png" alt="Screen Shot 2017-06-04 at 9.38.51 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:42:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55408#M62284</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2022-09-16T11:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Override Hive Default Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55617#M62285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could anyone please let me know on this? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 10:28:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55617#M62285</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-09T10:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Override Hive Default Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55632#M62286</link>
      <description>&lt;P&gt;Why do you expect to see a *.db folder if you don't specify it yourself ? This is not "how it works".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following command sets the root dir of the database "diff" to "/user/cloudera/sat" :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Create database diff location '/user/cloudera/sat';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This will not create a folder "diff.db" inside "sat".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is what you want then use the following command :&lt;/P&gt;&lt;PRE&gt;Create database diff location '/user/cloudera/sat/diff.db';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 14:48:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55632#M62286</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2017-06-09T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Override Hive Default Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55648#M62287</link>
      <description>&lt;P&gt;When I create a database without passing the location, then it will create that database in default location with &amp;lt;dbname&amp;gt;/db&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; CREATE DATABASE Override1;
OK
Time taken: 0.06 seconds&lt;/PRE&gt;&lt;P&gt;it will create a Override1.db folder in the default path as&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart ~]$ hadoop fs -ls /user/hive/warehouse
Found 1item
drwxrwxrwx   - cloudera supergroup          0 2017-06-09 14:46 /user/hive/warehouse/override1.db
[cloudera@quickstart ~]$ &lt;/PRE&gt;&lt;P&gt;why don't it it creates folder with &amp;lt;dbname&amp;gt;.db folder&amp;nbsp; when you pass the location to create a database(overriding the default path) ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 22:00:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55648#M62287</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-09T22:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Override Hive Default Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55686#M62288</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt; why don't it it creates folder with &amp;lt;dbname&amp;gt;.db folder&amp;nbsp; when you pass the location to create a database(overriding the default path) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because that is how hive works when you provide the path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you specify the path it uses this path. It's not adding a sub folder to the path you have provided.&lt;/P&gt;&lt;P&gt;It assumes you have provided the path you want to use exactly.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 10:15:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-Hive-Default-Path/m-p/55686#M62288</guid>
      <dc:creator>mathieu.d</dc:creator>
      <dc:date>2017-06-12T10:15:12Z</dc:date>
    </item>
  </channel>
</rss>

