Hadoop Hive unable to move source to destination

24,385

Solution 1

As mentioned by Rio, the issue involved lack of permissions to load data into hive table. I figures out the following command solves my problems:

hadoop fs -chmod g+w /user/hive/warehouse

Solution 2

See the permission for the HDFS directory:

hdfs dfs -ls /user/hive/warehouse/employee/employeedetails_copy_1

Seems like you may not have permission to load data into hive table.

Share:
24,385
sgp
Author by

sgp

IIT Bombay Undergrad. Just another random coding enthusiast. Python is life.

Updated on January 23, 2021

Comments

  • sgp
    sgp over 3 years

    I am trying to use Hive 1.2.0 over Hadoop 2.6.0. I have created an employee table. However, when I run the following query:

    hive> load data local inpath '/home/abc/employeedetails' into table employee;
    

    I get the following error:

    Failed with exception Unable to move source file:/home/abc/employeedetails to destination hdfs://localhost:9000/user/hive/warehouse/employee/employeedetails_copy_1
    FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask
    

    What wrong am I doing here? Are there any specific permissions that I need to set? Thanks in advance!