<?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: Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151717#M28603</link>
    <description>&lt;P&gt;You are perfectly correct. I tired with out warehouse and with a different part for warehouse,both worked just fine, Thanks for your explanation.&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2016 03:21:03 GMT</pubDate>
    <dc:creator>nuson_fretz</dc:creator>
    <dc:date>2016-05-19T03:21:03Z</dc:date>
    <item>
      <title>Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151711#M28597</link>
      <description>&lt;P&gt;I am using HDP 2.4 sandbox. I created a few tables in mysql ( in a new database ) and i am trying to import into hive database called "cards". But is i failing with below error after creating first table. Same command works fine in HDP 2.3 sandbox.&lt;/P&gt;&lt;P&gt;I had given 777 permission  for all the folders as mentioned in below post , but still i get the error&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/9984/permission-denied-using-sqoop-from-mysql-on-sandbo.html" target="_blank"&gt;https://community.hortonworks.com/questions/9984/permission-denied-using-sqoop-from-mysql-on-sandbo.html&lt;/A&gt;
&lt;A href="https://community.hortonworks.com/questions/10949/permission-denied-for-user-while-creating-a-hive-t.html" target="_blank"&gt;https://community.hortonworks.com/questions/10949/permission-denied-for-user-while-creating-a-hive-t.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;SQOOP command: sqoop import-all-tables --connect  "jdbc:mysql://sandbox.hortonworks.com:3306/retail_db" --username retail_dba  --hive-database cards -m 1 --warehouse-dir /apps/hive/warehouse/cards.db --hive-import --create-hive-table --hive-overwrite --compress --driver com.mysql.jdbc.Driver --password hadoop;&lt;/P&gt;&lt;P&gt;Error Message:&lt;/P&gt;&lt;PRE&gt;16/05/17 07:20:42 INFO mapreduce.ImportJobBase: Transferred 576 bytes in 20.5035 seconds (28.0928 bytes/sec)
16/05/17 07:20:42 INFO mapreduce.ImportJobBase: Retrieved 58 records.
16/05/17 07:20:42 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM categories AS t WHERE 1=0
16/05/17 07:20:42 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM categories AS t WHERE 1=0
16/05/17 07:20:42 INFO hive.HiveImport: Loading uploaded data into Hive
Logging initialized using configuration in jar:file:/usr/hdp/2.4.0.0-169/hive/lib/hive-common-1.2.1000.2.4.0.0-169.jar!/hive-log4j.properties
OK
Time taken: 8.528 seconds
Loading data to table cards.categories
Moved: 'hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/cards.db/categories/part-m-00000.gz' to trash at: hdfs://sandbox.hortonworks.com:8020/user/root/.Trash/Current
Failed with exception Unable to move source hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/cards.db/categories/part-m-00000.gz to destination hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/cards.db/categories/part-m-00000.gz
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2016 14:31:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151711#M28597</guid>
      <dc:creator>nuson_fretz</dc:creator>
      <dc:date>2016-05-17T14:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151712#M28598</link>
      <description>&lt;P&gt;Just curious. How did you conclude that it is a permission issue:&lt;/P&gt;&lt;P&gt;The error shows that "Unable to move sourcehdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/cards.db/categories/part-m-00000.gz to destinationhdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/cards.db/categories/part-m-00000.gz FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask"&lt;/P&gt;&lt;P&gt;That says nothing about permission. Did you take a look at yarn app log?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 04:56:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151712#M28598</guid>
      <dc:creator>tsaito</dc:creator>
      <dc:date>2016-05-18T04:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151713#M28599</link>
      <description>&lt;P&gt;Remove --warehouse-dir from your  Sqoop command or move it to some neutral location, for example under your home directory in hdfs. Note that /apps/hive/warehouse is the place where Hive keeps its managed (internal) tables. Nobody else is supposed to write anything there. On the other hand, warehouse-dir in Sqoop is a temporary location used during Hive import; it's also used as the default location for Sqoop hdfs import when --target-dir is not provided.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 05:05:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151713#M28599</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-18T05:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151714#M28600</link>
      <description>&lt;P&gt;org.apache.hadoop.hive.ql.exec.MoveTask , this error is using associated with permission. But i will check yarn logs too &lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 19:16:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151714#M28600</guid>
      <dc:creator>nuson_fretz</dc:creator>
      <dc:date>2016-05-18T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151715#M28601</link>
      <description>&lt;P&gt;i am trying to import tables to a specific database created in hive called 'cards'. it works just fine if i import to hdfs , but fails when try to create a table in hive in cards database.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 19:17:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151715#M28601</guid>
      <dc:creator>nuson_fretz</dc:creator>
      <dc:date>2016-05-18T19:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151716#M28602</link>
      <description>&lt;P&gt;You have already told Sqoop about your intention using the "--hive-database" option. By your choice of --warehouse-dir location you are trying to "assist" Sqoop in doing it, but you are actually obstructing it. Because when importing into Hive, Sqoop first imports table files into --warehouse-dir and from there into Hive warehouse. So, in your case files are already there but Sqoop is unaware of that and tries to move them into the same location, which by default causes a failure in hdfs. As a solution, as I mentioned above, just drop your --warehouse-dir option and retry.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 22:01:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151716#M28602</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-18T22:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Permission error in HDP 2.4 when trying to import mySQL table to Hive using SQOOP</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151717#M28603</link>
      <description>&lt;P&gt;You are perfectly correct. I tired with out warehouse and with a different part for warehouse,both worked just fine, Thanks for your explanation.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 03:21:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-error-in-HDP-2-4-when-trying-to-import-mySQL/m-p/151717#M28603</guid>
      <dc:creator>nuson_fretz</dc:creator>
      <dc:date>2016-05-19T03:21:03Z</dc:date>
    </item>
  </channel>
</rss>

