<?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: how we can get the data from dropped external table of Hive? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128177#M55653</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15911/satycse06.html" nodeid="15911"&gt;@satya gaurav&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Directory path is where, your hive data resides, if you give empty folder then table will be empty, so you cannot change if you want the same data to be loaded to the table. The columns with will null is due to the number columns you defined in schema may more than the delimited data.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 19:06:15 GMT</pubDate>
    <dc:creator>rajsyrus</dc:creator>
    <dc:date>2017-02-28T19:06:15Z</dc:date>
    <item>
      <title>how we can get the data from dropped external table of Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128174#M55650</link>
      <description>&lt;P&gt;suppose I have dropped an external table(EMP) the table was stored at /user/hive/satya/.&lt;/P&gt;&lt;P&gt;As we know the metadata will be deleted if we will drop the external table and actual data will be there.&lt;/P&gt;&lt;P&gt;So my Question is that how we can restore the external table(EMP) how we will get the data.&lt;/P&gt;&lt;P&gt;would anyone give me the steps need to perform to get the data?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 21:43:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128174#M55650</guid>
      <dc:creator>satyap</dc:creator>
      <dc:date>2017-02-27T21:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: how we can get the data from dropped external table of Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128175#M55651</link>
      <description>&lt;P&gt;Use a create external table syntax on top of your data. Main thing to remember is create external and location in the syntax below, the rest depends on your file type and delimiter. &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/moving_data_from_hdfs_to_hive_external_table_method.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/moving_data_from_hdfs_to_hive_external_table_method.html&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;CREATE EXTERNAL TABLE IF NOT EXISTS Cars(
 	Name STRING, 
        Miles_per_Gallon INT,
        Cylinders INT,
        Displacement INT,
        Horsepower INT, 
        Weight_in_lbs INT,
        Acceleration DECIMAL,
        Year DATE,
        Origin CHAR(1))
    COMMENT 'Data about cars from a public database'
    ROW FORMAT DELIMITED
    FIELDS TERMINATED BY ','
    STORED AS TEXTFILE
    location '/user/&amp;lt;username&amp;gt;/visdata';&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Feb 2017 22:08:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128175#M55651</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2017-02-27T22:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: how we can get the data from dropped external table of Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128176#M55652</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/393/aervits.html"&gt;Artem Ervits&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi Artem,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I did the same thing and I am able to get back the data. The most surprising thing I got, I have created 2-3 tables even with different schema it's showing the same data whatever the data was in an old table for extra column it's showing the null.&lt;/P&gt;&lt;P&gt;So every time when we have to create an external table we should give the different directory path?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 14:35:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128176#M55652</guid>
      <dc:creator>satyap</dc:creator>
      <dc:date>2017-02-28T14:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: how we can get the data from dropped external table of Hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128177#M55653</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15911/satycse06.html" nodeid="15911"&gt;@satya gaurav&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Directory path is where, your hive data resides, if you give empty folder then table will be empty, so you cannot change if you want the same data to be loaded to the table. The columns with will null is due to the number columns you defined in schema may more than the delimited data.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 19:06:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-we-can-get-the-data-from-dropped-external-table-of-Hive/m-p/128177#M55653</guid>
      <dc:creator>rajsyrus</dc:creator>
      <dc:date>2017-02-28T19:06:15Z</dc:date>
    </item>
  </channel>
</rss>

