<?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: Error loading csv file using hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205450#M167416</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;That that the initial loads works for me - what are the parquet format pros and cons? Is the creating new table and copying data from the text based table into it worth the trouble?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2017 11:42:47 GMT</pubDate>
    <dc:creator>yogen</dc:creator>
    <dc:date>2017-10-03T11:42:47Z</dc:date>
    <item>
      <title>Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205439#M167405</link>
      <description>&lt;P&gt;I created a table using java client:&lt;/P&gt;&lt;PRE&gt;CREATE TABLE csvdemo (id Int, name String, email String) STORED AS PARQUET&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;I use the java hadoop file system to copy the csv file from local into hdfs&lt;/P&gt;&lt;P&gt;When I run this load command it looks successful (running from ambari):&lt;/P&gt;&lt;PRE&gt;load data inpath '/user/admin/MOCK_DATA.csv' into table csvdemo;&lt;/PRE&gt;&lt;P&gt;But when I try to read from it using:&lt;/P&gt;&lt;PRE&gt;select * from csvdemo limit 1;&lt;/PRE&gt;&lt;P&gt;I get this error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;org.apache.hive.service.cli.HiveSQLException: java.io.IOException: java.lang.RuntimeException: hdfs://my-host:8020/apps/hive/warehouse/csvdemo/MOCK_DATA.csv is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [103, 111, 118, 10]


org.apache.hive.service.cli.HiveSQLException: java.io.IOException: java.lang.RuntimeException: hdfs://my-host:8020/apps/hive/warehouse/csvdemo/MOCK_DATA.csv is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [103, 111, 118, 10]
	at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:264)
	at org.apache.hive.jdbc.Utils.verifySuccessWithInfo(Utils.java:250)
	at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:373)
	at org.apache.ambari.view.hive20.actor.ResultSetIterator.getNext(ResultSetIterator.java:119)
	at org.apache.ambari.view.hive20.actor.ResultSetIterator.handleMessage(ResultSetIterator.java:78)
	at org.apache.ambari.view.hive20.actor.HiveActor.onReceive(HiveActor.java:38)
	at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
	at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
	at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:97)
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
	at akka.actor.ActorCell.invoke(ActorCell.scala:487)
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
	at akka.dispatch.Mailbox.run(Mailbox.scala:220)
	at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: org.apache.hive.service.cli.HiveSQLException: java.io.IOException: java.lang.RuntimeException: hdfs://my-host:8020/apps/hive/warehouse/csvdemo/MOCK_DATA.csv is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [103, 111, 118, 10]
	at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:414)
	at org.apache.hive.service.cli.operation.OperationManager.getOperationNextRowSet(OperationManager.java:233)
	at org.apache.hive.service.cli.session.HiveSessionImpl.fetchResults(HiveSessionImpl.java:784)
	at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:78)
	at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(HiveSessionProxy.java:36)
	at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSessionProxy.java:63)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
	at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSessionProxy.java:59)
	at com.sun.proxy.$Proxy29.fetchResults(Unknown Source)
	at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java:520)
	at org.apache.hive.service.cli.thrift.ThriftCLIService.FetchResults(ThriftCLIService.java:709)
	at org.apache.hive.service.cli.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.java:1557)
	at org.apache.hive.service.cli.thrift.TCLIService$Processor$FetchResults.getResult(TCLIService.java:1542)
	at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
	at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
	at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: java.lang.RuntimeException: hdfs://my-host:8020/apps/hive/warehouse/csvdemo/MOCK_DATA.csv is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [103, 111, 118, 10]
	at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:520)
	at org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:427)
	at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:146)
	at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1765)
	at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:409)
	... 24 more
Caused by: java.lang.RuntimeException: hdfs://my-host:8020/apps/hive/warehouse/csvdemo/MOCK_DATA.csv is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [103, 111, 118, 10]
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:423)
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:386)
	at org.apache.parquet.hadoop.ParquetFileReader.readFooter(ParquetFileReader.java:372)
	at org.apache.hadoop.hive.ql.io.parquet.read.ParquetRecordReaderWrapper.getSplit(ParquetRecordReaderWrapper.java:255)
	at org.apache.hadoop.hive.ql.io.parquet.read.ParquetRecordReaderWrapper.&amp;lt;init&amp;gt;(ParquetRecordReaderWrapper.java:97)
	at org.apache.hadoop.hive.ql.io.parquet.read.ParquetRecordReaderWrapper.&amp;lt;init&amp;gt;(ParquetRecordReaderWrapper.java:83)
	at org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat.getRecordReader(MapredParquetInputFormat.java:71)
	at org.apache.hadoop.hive.ql.exec.FetchOperator$FetchInputFormatSplit.getRecordReader(FetchOperator.java:694)
	at org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:332)
	at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:458)
	... 28 more

&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Oct 2017 20:47:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205439#M167405</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-01T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205440#M167406</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Right now csvdemo table is a parquet table and expects the data that is loading to csvdemo table should be in parquet format data but you are loading csv data to parquet table.&lt;/P&gt;&lt;P&gt;1.create table a normal text table.&lt;/P&gt;&lt;PRE&gt;CREATE TABLE csvdemo (id Int, name String, email String) 
row format delimited 
fields terminated by ',' 
STORED AS TEXTFILE;&lt;/PRE&gt;&lt;P&gt;2.load the data into text table&lt;/P&gt;&lt;PRE&gt;load data inpath '/user/admin/MOCK_DATA.csv'into table csvdemo;&lt;/PRE&gt;&lt;P&gt;3.then create an another table as parquet format.&lt;/P&gt;&lt;PRE&gt;CREATE TABLE csvdemo_prq (id Int, name String, email String) stored as parquet;&lt;/PRE&gt;&lt;P&gt;4.insert into parquet table select from text table&lt;/P&gt;&lt;PRE&gt;insert into csvdemo_prq select * from csvdemo;&lt;/PRE&gt;&lt;P&gt;then your &lt;STRONG&gt;csvdemo_prq&lt;/STRONG&gt; table is in parquet format, hive doesn't convert csv data directly into parquet.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 20:57:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205440#M167406</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-01T20:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205441#M167407</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;. Is the parquet worth the double load? I mean If I run just the first load it seems to work fine - so what am I loosing here?&lt;BR /&gt;&lt;BR /&gt;Also - I have an issue running this load from java client (permissions issue?)&lt;BR /&gt; &lt;/P&gt;&lt;PRE&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask
	at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:283) ~[hive-jdbc-2.0.0.jar:2.0.0]
&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Oct 2017 21:07:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205441#M167407</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-01T21:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205442#M167408</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/44271/yogen.html"&gt;Yair Ogen&lt;/A&gt;, &lt;BR /&gt;Can you do &lt;/P&gt;&lt;PRE&gt;desc formatted csvdemo;&lt;/PRE&gt;&lt;P&gt;You can get the location of the table where it is stored in hdfs and change permissions to that parent directory.&lt;/P&gt;&lt;P&gt;Remove recursive -r and try to run the below command.&lt;/P&gt;&lt;PRE&gt;hadoop fs -chmod 777 &amp;lt;table location directory&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Oct 2017 21:54:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205442#M167408</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-01T21:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205443#M167409</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; &lt;BR /&gt;I run &lt;/P&gt;&lt;PRE&gt;hadoop fs -chmod 777 /apps/hive/warehouse/csvdemo&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Still ,same error in my java client:&lt;/P&gt;&lt;PRE&gt;java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MoveTask&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 01 Oct 2017 22:02:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205443#M167409</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-01T22:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205444#M167410</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;&lt;P&gt;can you once share screenshot after executing the below command&lt;/P&gt;&lt;PRE&gt;hadoop fs -ls /apps/hive/warehouse/&lt;/PRE&gt;&lt;P&gt;and attach the hive logs from directory.&lt;/P&gt;&lt;PRE&gt;/var/log/hive/&lt;/PRE&gt;&lt;P&gt;(or)&lt;/P&gt;&lt;P&gt;Go to resource manager UI and attach the error logs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for reference:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/49759/viewing-logs-for-hive-query-executions.html" target="_blank"&gt;https://community.hortonworks.com/questions/49759/viewing-logs-for-hive-query-executions.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 23:29:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205444#M167410</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-01T23:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205445#M167411</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the ls output:&lt;/P&gt;&lt;PRE&gt;Found 1 items
drwxrwxrwx   - hive hadoop          0 2017-10-01 18:01 /apps/hive/warehouse/csvdemo
&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;which of these do you need?&lt;/P&gt;&lt;PRE&gt;drwxr-xr-x  2 hive hadoop     4096 Oct  2 00:00 ./
drwxrwxr-x 40 root syslog     4096 Oct  2 06:25 ../
-rw-r--r--  1 hive hadoop        0 Oct  1 13:51 atlas_hook_failed_messages.log
-rw-r--r--  1 hive hadoop      312 Oct  1 14:36 hive.err
-rw-r--r--  1 hive hadoop   581226 Oct  2 11:51 hivemetastore.log
-rw-r--r--  1 hive hadoop   290424 Sep 28 23:57 hivemetastore.log.2017-09-28
-rw-r--r--  1 hive hadoop  1195294 Sep 29 23:57 hivemetastore.log.2017-09-29
-rw-r--r--  1 hive hadoop  1173882 Sep 30 23:57 hivemetastore.log.2017-09-30
-rw-r--r--  1 hive hadoop  1309208 Oct  1 23:57 hivemetastore.log.2017-10-01
-rw-r--r--  1 hive hadoop       31 Oct  1 14:36 hive.out
-rw-r--r--  1 hive hadoop   112944 Oct  1 18:02 hive-server2.err
-rw-r--r--  1 hive hadoop  1189192 Oct  2 11:51 hiveserver2.log
-rw-r--r--  1 hive hadoop 32095865 Sep 27 16:30 hiveserver2.log.2017-09-27
-rw-r--r--  1 hive hadoop 88093181 Sep 28 23:57 hiveserver2.log.2017-09-28
-rw-r--r--  1 hive hadoop  2368106 Sep 29 23:57 hiveserver2.log.2017-09-29
-rw-r--r--  1 hive hadoop  2368598 Sep 30 23:57 hiveserver2.log.2017-09-30
-rw-r--r--  1 hive hadoop 23657102 Oct  1 23:57 hiveserver2.log.2017-10-01
-rw-r--r--  1 hive hadoop        0 Oct  1 14:37 hive-server2.out


&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 15:53:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205445#M167411</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-02T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205446#M167412</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;1.Please share the output of below command&lt;/P&gt;&lt;PRE&gt;hadoop fs -ls /apps/hive/&lt;/PRE&gt;&lt;P&gt;2.Run &lt;STRONG&gt;insert statement again&lt;/STRONG&gt; and attach &lt;STRONG&gt;hiveserver2.log&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hiveserver2.log&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 19:34:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205446#M167412</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-02T19:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205447#M167413</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; &lt;/P&gt;&lt;PRE&gt;hadoop fs -ls /apps/hive/&lt;/PRE&gt;&lt;P&gt;Yields&lt;/P&gt;&lt;PRE&gt;Found 1 items
drwxrwxrwx   - hive hadoop          0 2017-10-02 14:00 /apps/hive/warehouse&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;You mean the Load statement and not the insert, right? &lt;/P&gt;&lt;P&gt;Attached is the error and last lines from log.&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 20:10:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205447#M167413</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-02T20:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205448#M167414</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In this case we see that user "hive" is actually trying to write data inside the "" directory&lt;/P&gt;&lt;PRE&gt;Permission denied: user=hive, access=WRITE, inode="/user/admin/MOCK_DATA.csv":admin:hadoop:drwxr-xr-x&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;So either you should give write access to the "&lt;STRONG&gt;hive&lt;/STRONG&gt;" user on the mentioned directory  "/user/admin/" As we see that it does not have the "WRITE" permission Or you should run the job using "admin" user with the following setup:&lt;/P&gt;&lt;P&gt;If you want to run as "admin"&lt;/P&gt;&lt;PRE&gt;# hdfs dfs -chown admin:hadoop /user/admin
# hdfs dfs -chmod 777 /user/admin&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Or else if you want to run the hive job using "hive" user then you should  change the ownership to "hive" user and the permission accordingly.&lt;/P&gt;&lt;PRE&gt;# hdfs dfs -chown hive:hadoop /user/admin
# hdfs dfs -chmod 777 /user/admin&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 11:27:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205448#M167414</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-03T11:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205449#M167415</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So - now it works. I just connected to the admin user instead of hive user and now it all works fine.&lt;BR /&gt;&lt;BR /&gt;Thanks for you help.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 11:36:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205449#M167415</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-03T11:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205450#M167416</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;That that the initial loads works for me - what are the parquet format pros and cons? Is the creating new table and copying data from the text based table into it worth the trouble?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 11:42:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205450#M167416</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-03T11:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205451#M167417</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;&lt;P&gt;Good to know that it works now. It will be great if you can mark this HCC Thread as "Accepted" (Answered) so that other HCC users can quickly find the solution for this issue , instead of reading the whole thread.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 11:59:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205451#M167417</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-03T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205452#M167418</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;If you are using Hortonworks distribution then its better to use &lt;STRONG&gt;ORC&lt;/STRONG&gt; format as it is optimized for &lt;STRONG&gt;TEZ &lt;/STRONG&gt;execution engine and if you are considering about file size then ORC is more compressed than Parquet.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best Practices of ORC in HCC :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/75501/orc-creation-best-practices.html" target="_blank"&gt;https://community.hortonworks.com/articles/75501/orc-creation-best-practices.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pros and Cons of Parquet format:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/36822224/what-are-the-pros-and-cons-of-parquet-format-compared-to-other-formats" target="_blank"&gt;https://stackoverflow.com/questions/36822224/what-are-the-pros-and-cons-of-parquet-format-compared-to-other-formats&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Orc vs Parquet:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/2067/orc-vs-parquet-when-to-use-one-over-the-other.html" target="_blank"&gt;https://community.hortonworks.com/questions/2067/orc-vs-parquet-when-to-use-one-over-the-other.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:11:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205452#M167418</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2017-10-03T19:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error loading csv file using hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205453#M167419</link>
      <description>&lt;P&gt;Super, Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:21:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-loading-csv-file-using-hive/m-p/205453#M167419</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-03T19:21:18Z</dc:date>
    </item>
  </channel>
</rss>

