Member since
01-04-2016
7
Posts
0
Kudos Received
0
Solutions
05-18-2016
08:21 PM
You are perfectly correct. I tired with out warehouse and with a different part for warehouse,both worked just fine, Thanks for your explanation.
... View more
05-18-2016
12:17 PM
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.
... View more
05-18-2016
12:16 PM
org.apache.hadoop.hive.ql.exec.MoveTask , this error is using associated with permission. But i will check yarn logs too
... View more
05-17-2016
07:31 AM
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. I had given 777 permission for all the folders as mentioned in below post , but still i get the error https://community.hortonworks.com/questions/9984/permission-denied-using-sqoop-from-mysql-on-sandbo.html
https://community.hortonworks.com/questions/10949/permission-denied-for-user-while-creating-a-hive-t.html 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; Error Message: 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
... View more
Labels:
- Labels:
-
Apache Hive
-
Apache Sqoop