<?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 default Hive Database Path in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196117#M62248</link>
    <description>&lt;P&gt;when we override the path, it won't create any &amp;lt;dbname&amp;gt;.db folder, assuming that the specified path it self is the db /main folder for the mentioned database.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 07:55:12 GMT</pubDate>
    <dc:creator>SatishS</dc:creator>
    <dc:date>2017-06-13T07:55:12Z</dc:date>
    <item>
      <title>Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196106#M62237</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I was trying to create a hive database by specifying a different location. The query got executed successfully, but I don't see the database in the specified location. Am I missing anything here?&lt;/P&gt;&lt;P&gt;PFA for the screenshots.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15950-screen-shot-2017-06-02-at-113454-am.png" style="width: 1863px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17962iBA639FB481E6178F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15950-screen-shot-2017-06-02-at-113454-am.png" alt="15950-screen-shot-2017-06-02-at-113454-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15951-screen-shot-2017-06-02-at-113841-am.png" style="width: 1547px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17963iCD8934057E69E7BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15951-screen-shot-2017-06-02-at-113841-am.png" alt="15951-screen-shot-2017-06-02-at-113841-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:32:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196106#M62237</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2019-08-18T06:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196107#M62238</link>
      <description>&lt;P&gt;When I execute with describe to check the location of the database, it gives me the same path that was mentioned while creating it, but when I browse the location, i don't see anything there. PFA for the screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15952-screen-shot-2017-06-02-at-114854-am.png" style="width: 1788px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17961i00176B1A71DA53A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15952-screen-shot-2017-06-02-at-114854-am.png" alt="15952-screen-shot-2017-06-02-at-114854-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:31:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196107#M62238</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2019-08-18T06:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196108#M62239</link>
      <description>&lt;P&gt;cross checked on the path through command prompt with hadoop command, even I don't see any .db folder. Please let me know if I am missing anything here.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 22:55:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196108#M62239</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-03T22:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196109#M62240</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1373/satish-sarapuri.html"&gt;Satish Sarapuri&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How did you look for  the db folder?&lt;/P&gt;&lt;P&gt;Usually running the below command&lt;/P&gt;&lt;PRE&gt;# su - hdfs
$ hdfs dfs -ls /&lt;/PRE&gt;&lt;P&gt;This should give you ,the most probably &lt;/P&gt;&lt;PRE&gt;hdfs dfs -ls /apps/hive/warehouse/&lt;/PRE&gt;&lt;P&gt;And also check the below property in  the hive-site.xml file&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;hive.metastore.warehouse.dir&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;/usr/hive/warehouse &amp;lt;/value&amp;gt;
   &amp;lt;description&amp;gt;location of the warehouse directory&amp;lt;/description&amp;gt;
 &amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 03:53:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196109#M62240</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-06-04T03:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196110#M62241</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271" target="_blank"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have created this database by overriding the default path (used user/hive).&lt;/P&gt;&lt;P&gt;I used both hdfs dfs and hadoop fs commands to check the .db folder. I don't see anything on the mentioned path that was used while creating. PFA for the attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15982-screen-shot-2017-06-03-at-75423-pm.png" style="width: 957px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17960iDA6C002FD27B2811/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15982-screen-shot-2017-06-03-at-75423-pm.png" alt="15982-screen-shot-2017-06-03-at-75423-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:31:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196110#M62241</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2019-08-18T06:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196111#M62242</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html" rel="nofollow noopener noreferrer" target="_blank"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried to create a table in this db, when I created, I see a folder with same name as table in /user/hive path. but no folder with .db. PFA for the screenshots.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15986-screen-shot-2017-06-03-at-81047-pm.png" style="width: 1507px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17958i7D9FC9141057B5D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15986-screen-shot-2017-06-03-at-81047-pm.png" alt="15986-screen-shot-2017-06-03-at-81047-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15984-screen-shot-2017-06-03-at-81059-pm.png" style="width: 1353px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17959iA174C6307298C05E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15984-screen-shot-2017-06-03-at-81059-pm.png" alt="15984-screen-shot-2017-06-03-at-81059-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6484iB9B4FB76768A855B/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screen-shot-2017-06-03-at-81039-pm.png" title="screen-shot-2017-06-03-at-81039-pm.png" /&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:31:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196111#M62242</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2019-08-18T06:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196112#M62243</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The default path is /apps/hive/warehouse. But, for this database, I have mentioned different path to create and I am am not able to find the .db folder in the mentioned path, I can see the table folder when I create one. The .db folder should be created under the same mentioned path right?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 04:47:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196112#M62243</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-05T04:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196113#M62244</link>
      <description>&lt;P&gt;Could anyone please let me know on this?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 21:18:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196113#M62244</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-06T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196114#M62245</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1373/satish-sarapuri.html" nodeid="1373"&gt;@Satish Sarapuri&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;My default hive warehouse: 

hive&amp;gt; dfs -ls /user/hive/warehouse/;        
Found 8 items
drwxrwxrwx   - hive     hive          0 2016-02-22 23:04 /user/hive/warehouse/clickstream
drwxrwxrwx   - hive     hive          0 2015-12-02 21:52 /user/hive/warehouse/clickstream1
drwxrwxrwx   - cloudera hive          0 2017-02-15 23:03 /user/hive/warehouse/emp1
drwxrwxrwx   - cloudera hive          0 2016-09-07 23:10 /user/hive/warehouse/emp1_1
drwxrwxrwx   - cloudera hive          0 2016-09-07 23:12 /user/hive/warehouse/emp1_2
drwxrwxrwx   - cloudera hive          0 2017-02-15 23:03 /user/hive/warehouse/emp1_orc
drwxrwxrwx   - cloudera hive          0 2016-09-07 23:09 /user/hive/warehouse/emp2
drwxrwxrwx   - hive     hive          0 2017-02-16 01:24 /user/hive/warehouse/employee&lt;/PRE&gt;&lt;P&gt; Creating database without LOCATION:&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; create database testing1;                             
OK
Time taken: 0.048 seconds
hive&amp;gt; dfs -ls /user/hive/warehouse/;
Found 9 items
drwxrwxrwx   - hive     hive          0 2016-02-22 23:04 /user/hive/warehouse/clickstream
drwxrwxrwx   - hive     hive          0 2015-12-02 21:52 /user/hive/warehouse/clickstream1
drwxrwxrwx   - cloudera hive          0 2017-02-15 23:03 /user/hive/warehouse/emp1
drwxrwxrwx   - cloudera hive          0 2016-09-07 23:10 /user/hive/warehouse/emp1_1
drwxrwxrwx   - cloudera hive          0 2016-09-07 23:12 /user/hive/warehouse/emp1_2
drwxrwxrwx   - cloudera hive          0 2017-02-15 23:03 /user/hive/warehouse/emp1_orc
drwxrwxrwx   - cloudera hive          0 2016-09-07 23:09 /user/hive/warehouse/emp2
drwxrwxrwx   - hive     hive          0 2017-02-16 01:24 /user/hive/warehouse/employee
drwxrwxrwx   - cloudera hive          0 2017-06-06 23:38 /user/hive/warehouse/testing1.db&lt;/PRE&gt;&lt;P&gt;Creating database with LOCATION:&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; create database testing location '/user/hive/testing';
OK
Time taken: 0.147 seconds
hive&amp;gt; dfs -ls /user/hive/;                                  
Found 2 items
drwxrwxrwx   - cloudera hive          0 2017-06-06 23:35 /user/hive/testing
drwxrwxrwx   - hive     hive          0 2017-02-15 23:01 /user/hive/warehouse
&lt;/PRE&gt;&lt;P&gt;In hive explicit LOCATION is just a pointer. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 14:10:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196114#M62245</guid>
      <dc:creator>poojachawda_10</dc:creator>
      <dc:date>2017-06-07T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196115#M62246</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2867/poojachawda10.html" nodeid="2867"&gt;@Pooja Chawda&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here my question is,  It should create the &amp;lt;dbname&amp;gt;.db folder (as it does in default path), why It's not creating  the &amp;lt;dbname&amp;gt;.db folder when I pass /override the default location? There supposed to be Testing.db under the testing folder right (in your case)?&lt;/P&gt;&lt;P&gt;It's strange behaviour when you override the database default path.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 02:53:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196115#M62246</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-08T02:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196116#M62247</link>
      <description>&lt;P&gt;I found that  this is how hive works when I provide (override the default ) the path.&lt;/P&gt;&lt;P&gt;It will use the specified path assuming the path subdirectory ex: /user/hive/warehouse/, "warehouse" folder in this case as the main DB folder and it will create all the tables underneath.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 07:53:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196116#M62247</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-13T07:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Override default Hive Database Path</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196117#M62248</link>
      <description>&lt;P&gt;when we override the path, it won't create any &amp;lt;dbname&amp;gt;.db folder, assuming that the specified path it self is the db /main folder for the mentioned database.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 07:55:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Override-default-Hive-Database-Path/m-p/196117#M62248</guid>
      <dc:creator>SatishS</dc:creator>
      <dc:date>2017-06-13T07:55:12Z</dc:date>
    </item>
  </channel>
</rss>

