<?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 Fail to load data from HDFS into Apachi Hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Fail-to-load-data-from-HDFS-into-Apachi-Hive/m-p/314797#M226195</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;After I tried to load data from a file in HDFS into Hive, I ran into a permission error as show below. Could you please help to let me know what I did wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I uploaded a csv file: EMP.csv from my laptop into HDFS folder: /user/admin using admin credential.&lt;/P&gt;&lt;P&gt;2) I use Data Analytic studio to load the csv file into an external table in Hive using the code below:&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE IF NOT EXISTS emp(&lt;BR /&gt;EmployeeID STRING,&lt;BR /&gt;FirstName STRING,&lt;BR /&gt;LastName STRING,&lt;BR /&gt;Email STRING,&lt;BR /&gt;PhoneNumber STRING,&lt;BR /&gt;HireDate STRING,&lt;BR /&gt;JobID STRING,&lt;BR /&gt;Salary STRING,&lt;BR /&gt;ManagerID STRING,&lt;BR /&gt;DepartmentID STRING&lt;BR /&gt;)&lt;BR /&gt;COMMENT 'My first Hive table'&lt;BR /&gt;ROW FORMAT DELIMITED FIELDS TERMINATED BY ','&lt;BR /&gt;STORED AS TEXTFILE&lt;BR /&gt;LOCATION '/user/admin/EMP.csv'&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the error:&lt;/P&gt;&lt;P&gt;"org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [hive] does not have [ALL] privilege on [hdfs://sandbox-hdp.hortonworks.com:8020/user/admin/EMP.csv]"&lt;/P&gt;</description>
    <pubDate>Sat, 17 Apr 2021 00:15:13 GMT</pubDate>
    <dc:creator>TDStephanieSoft</dc:creator>
    <dc:date>2021-04-17T00:15:13Z</dc:date>
  </channel>
</rss>

