<?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: hive issue while renaming location in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219352#M77351</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i have done this poc successfully actually because of some configurations issue i was getting issue but usually it works if you create external table in source cluster and load the data then you create external data with same schema as in source in destination cluster . and then with the help of distcp move data from source to destination and rename folder to the one where hive table in destination pointing . &lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 15:59:54 GMT</pubDate>
    <dc:creator>amol_08</dc:creator>
    <dc:date>2018-04-18T15:59:54Z</dc:date>
    <item>
      <title>hive issue while renaming location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219347#M77346</link>
      <description>&lt;P&gt;I am doing one activity in which I have created external table in one cluster say source cluster and created same table in destination table with different hdfs location, Then I have moved hdfs folder of  source location (hive data) to destination and then renamed this folder to the destination hive location path , but when I am trying to select data in destination cluster, I am getting below error:&lt;/P&gt;&lt;P&gt;FAILED: SemanticException Unable to determine if hdfs://&amp;lt;namenode&amp;gt;:8020/apps/hive/warehouse/test_ext is encrypted: java.lang.IllegalArgumentException: Wrong FS: hdfs://&amp;lt;namenode&amp;gt;:8020/apps/hive/warehouse/test_ext, expected: hdfs://&amp;lt;namenode&amp;gt;:8020&lt;/P&gt;&lt;P&gt;Please find below details on above :&lt;/P&gt;&lt;P&gt;1. created hive table in source cluster:&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE IF NOT EXISTS test_ext
 (ID int,
 DEPT int,
 NAME string
  )
  ROW FORMAT DELIMITED
  FIELDS TERMINATED BY ','
  STORED AS TEXTFILE
  LOCATION '/poc_hive';&lt;/P&gt;&lt;P&gt;2.loading data into table :&lt;/P&gt;&lt;P&gt;load data local inpath '/tmp/hive_data.txt' into table test_ext;&lt;/P&gt;&lt;P&gt;3. Destination cluster :&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE IF NOT EXISTS test_ext
 (ID int,
 DEPT int,
 NAME string
  )
  ROW FORMAT DELIMITED
  FIELDS TERMINATED BY ','
  STORED AS TEXTFILE
  LOCATION '/old_hive';&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;but here did not load any data .&lt;/P&gt;&lt;P&gt;4. distcp from source to destination&lt;/P&gt;&lt;P&gt;hadoop distcp hdfs://&amp;lt;namenode&amp;gt;:8020/poc_hive  hdfs://&amp;lt;namenode&amp;gt;:8020/&lt;/P&gt;&lt;P&gt;5. renamed /poc_hive to /old_hive&lt;/P&gt;&lt;P&gt;6. when I try to fetch data in destination cluster I get error :&lt;/P&gt;&lt;P&gt;select *from test_ext;&lt;/P&gt;&lt;P&gt;error :&lt;/P&gt;&lt;PRE&gt;FAILED: SemanticException Unable to determine if hdfs://&amp;lt;namenode&amp;gt;:8020/apps/hive/warehouse/test_ext is encrypted: java.lang.IllegalArgumentException: Wrong FS: hdfs://&amp;lt;namenode&amp;gt;:8020/apps/hive/warehouse/test_ext, expected: hdfs://&amp;lt;namenode&amp;gt;:8020&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:30:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219347#M77346</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-04-17T13:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: hive issue while renaming location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219348#M77347</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your error "&lt;STRONG&gt;table is encrypted: java.lang.IllegalArgumentException: Wrong FS"&lt;/STRONG&gt; " looks similar to the one described in the following Support KB article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/48759/javalangillegalargumentexception-wrong-fs-running.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/48759/javalangillegalargumentexception-wrong-fs-running.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:34:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219348#M77347</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-04-17T13:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: hive issue while renaming location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219349#M77348</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt; @&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt; @&lt;A href="https://community.hortonworks.com/users/5019/ssubhas.html"&gt;Sindhu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi anyone please help me on this , what is other way to get it done ?&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:35:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219349#M77348</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-04-17T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: hive issue while renaming location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219350#M77349</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi jay ,&lt;/P&gt;&lt;P&gt;thanks for you reply , I have gone trough above link and I have some queries please help me on the same . As article explains&lt;/P&gt;&lt;P&gt;"If you have data in some directories outside of the normal warehouse directory (e.g. /apps/hive/warehouse), you must run the metatool with updateLocations to get those other paths in the FS Roots output."&lt;/P&gt;&lt;P&gt;but When we give LOCATION ( hdfs path other than /apps/hive/warehouse)  while creating external table  I do not encounter any issue while fetching the records , but when I move the external table to some to some other cluster and then rename it to folder what I have given to location filed during creating table in destination end , and then I try to fetch the data this error comes.&lt;/P&gt;&lt;P&gt;My point is what mentioned in the article is if I have data in some other directories outside of the normal warehouse directory I must run metatool to get those path in FS roots output , but If i create table and provide data folder out of warehouse , I do not get any issue while fetching the records but when i move it some other cluster and rename the folder to location what I have given there then it throws error while fetching the record .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 14:06:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219350#M77349</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-04-17T14:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: hive issue while renaming location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219351#M77350</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;&lt;P&gt;Can you post DESCRIBE FORMATTED test_ext from destination cluster. And also try to DROP and recreate external table command.&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE IF NOT EXISTS test_ext (ID int, DEPT int, NAME string ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE LOCATION '/old_hive';&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 00:58:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219351#M77350</guid>
      <dc:creator>bmasna</dc:creator>
      <dc:date>2018-04-18T00:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: hive issue while renaming location</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219352#M77351</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i have done this poc successfully actually because of some configurations issue i was getting issue but usually it works if you create external table in source cluster and load the data then you create external data with same schema as in source in destination cluster . and then with the help of distcp move data from source to destination and rename folder to the one where hive table in destination pointing . &lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 15:59:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hive-issue-while-renaming-location/m-p/219352#M77351</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2018-04-18T15:59:54Z</dc:date>
    </item>
  </channel>
</rss>

