<?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: External Table Not Present At the Specified Location in Hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143634#M19733</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2404/deepakgirdher.html" nodeid="2404"&gt;@Deepak Girdher&lt;/A&gt; &lt;/P&gt;&lt;P&gt;1. I figured out that once the data is loaded into the External Table, Only then the file will appear in HDFS as create table just stores the metadata and data is not present for HDFS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Incorrect :  Data resides in HDFS. HCatalog stores the data &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. My root was not having write access to /tmp . When I tried to load the data I got the error. That is how it stuck my mind that there could be some permission issue. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You never point a table to /tmp ---&amp;gt; Permission issue is there because you are trying to read other users directries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once I gave the path for which my root had the access i.e. /user/root in my case which i created and loaded the data into the table, I could see the file and its contents.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;That's correct&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2016 03:42:14 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2016-02-17T03:42:14Z</dc:date>
    <item>
      <title>External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143630#M19729</link>
      <description>&lt;P&gt;I created an External Table and gave the location as '/tmp'&lt;/P&gt;&lt;P&gt;Now the table has been created and i can see that using "Show Tables;" Command. But when I go to /tmp directory, I don't see my table. I tried searching but did not find the table anywhere in hdfs. Where is my external table data will be stored? Or is the file created only once I load the data into the table?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 02:36:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143630#M19729</guid>
      <dc:creator>deepakgirdher</dc:creator>
      <dc:date>2016-02-17T02:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143631#M19730</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2404/deepakgirdher.html" nodeid="2404"&gt;@Deepak Girdher&lt;/A&gt;&lt;P&gt;You ended up giving whole /tmp as your table location. What do you see when you run select * from table;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 02:41:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143631#M19730</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T02:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143632#M19731</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2404/deepakgirdher.html" nodeid="2404" target="_blank"&gt;@Deepak Girdher&lt;/A&gt;  run this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;show create table tablename;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; create external table ns1 (name string) location '/tmp/';
OK
Time taken: 0.597 seconds
hive&amp;gt; show create table ns1;
OK
CREATE EXTERNAL TABLE `ns1`(
  `name` string)
ROW FORMAT SERDE 
  'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' 
STORED AS INPUTFORMAT 
  'org.apache.hadoop.mapred.TextInputFormat' 
OUTPUTFORMAT 
  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
  'hdfs://phdns01.cloud.hortonworks.com:8020/tmp'
TBLPROPERTIES (
  'COLUMN_STATS_ACCURATE'='false', 
  'numFiles'='0', 
  'numRows'='-1', 
  'rawDataSize'='-1', 
  'totalSize'='0', 
  'transient_lastDdlTime'='1455648183')
Time taken: 0.354 seconds, Fetched: 17 row(s)&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2182-screen-shot-2016-02-16-at-14404-pm.png" style="width: 1426px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21623i2C810E64D65253A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2182-screen-shot-2016-02-16-at-14404-pm.png" alt="2182-screen-shot-2016-02-16-at-14404-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:02:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143632#M19731</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2019-08-19T08:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143633#M19732</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; Thanks For the quick reply. &lt;/P&gt;&lt;P&gt;I got the solution to my problem. &lt;/P&gt;&lt;P&gt;1. I figured out that once the data is loaded into the External Table, Only then the file will appear in HDFS as create table just stores the metadata and data is not present for HDFS.&lt;/P&gt;&lt;P&gt;2. My root was not having write access to /tmp . When I tried to load the data I got the error. That is how it stuck my mind that there could be some permission issue. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Once I gave the path for which my root had the access i.e. /user/root in my case which i created and loaded the data into the table, I could see the file and its contents.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 03:03:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143633#M19732</guid>
      <dc:creator>deepakgirdher</dc:creator>
      <dc:date>2016-02-17T03:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143634#M19733</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2404/deepakgirdher.html" nodeid="2404"&gt;@Deepak Girdher&lt;/A&gt; &lt;/P&gt;&lt;P&gt;1. I figured out that once the data is loaded into the External Table, Only then the file will appear in HDFS as create table just stores the metadata and data is not present for HDFS.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Incorrect :  Data resides in HDFS. HCatalog stores the data &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. My root was not having write access to /tmp . When I tried to load the data I got the error. That is how it stuck my mind that there could be some permission issue. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You never point a table to /tmp ---&amp;gt; Permission issue is there because you are trying to read other users directries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once I gave the path for which my root had the access i.e. /user/root in my case which i created and loaded the data into the table, I could see the file and its contents.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;That's correct&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 03:42:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143634#M19733</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T03:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143635#M19734</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; :  I did not get the first point  &lt;STRONG&gt;: "Incorrect: Data resides in HDFS. HCatalog stores the data"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since my data is in local file system, And I have just created an external table in Hive(Still data is not loaded). At this moment data is in local file system and no file exists at the path which I have mentioned in Create table. As Hive does not know which data to load how will it store the data in HDFS? Little confused on this part. 
&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 12:28:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143635#M19734</guid>
      <dc:creator>deepakgirdher</dc:creator>
      <dc:date>2016-02-17T12:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143636#M19735</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2404/deepakgirdher.html" nodeid="2404"&gt;@Deepak Girdher&lt;/A&gt;  That's correct...Data will show up in HDFS after loading into Hive table. &lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:26:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143636#M19735</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T20:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143637#M19736</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2404/deepakgirdher.html" nodeid="2404"&gt;@Deepak Girdher&lt;/A&gt;  Now , answering your original question: You never point a  table to a location like /tmp or /user or / anything ...You want to point table location to particular directory structure not landing/root of mounts&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:27:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143637#M19736</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-17T20:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143638#M19737</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;. Got It.. Thanks a lot. &lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:42:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143638#M19737</guid>
      <dc:creator>deepakgirdher</dc:creator>
      <dc:date>2016-02-17T21:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: External Table Not Present At the Specified Location in Hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143639#M19738</link>
      <description>&lt;P&gt;I have created external table in hive. I am able to see the path when i use describe formatted table_name; &lt;/P&gt;&lt;P&gt;But when i look at HDFS, I am not able to see the table&lt;/P&gt;&lt;P&gt;Can any one please explain why this has happend ?&lt;/P&gt;,&lt;P&gt;I created external table in hive. When i use describe formatted table_name; i am able to see the location where it has stored. But when i look at HDFS, i am not able to see external table. &lt;/P&gt;&lt;P&gt;Can any one please explain why it has happened like this ??&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 20:10:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/External-Table-Not-Present-At-the-Specified-Location-in-Hive/m-p/143639#M19738</guid>
      <dc:creator>srichandan_chin</dc:creator>
      <dc:date>2018-03-13T20:10:59Z</dc:date>
    </item>
  </channel>
</rss>

