<?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: How to insert data into this table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189130#M151223</link>
    <description>&lt;P&gt;so is there no way to load the data automatically from the files coming into a particular directory in hdfs?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 22:58:55 GMT</pubDate>
    <dc:creator>vtpcnk</dc:creator>
    <dc:date>2018-09-12T22:58:55Z</dc:date>
    <item>
      <title>How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189120#M151213</link>
      <description>&lt;P&gt;I have this table with what I believe is a nested column.&lt;/P&gt;&lt;P&gt;I created this table with the statement : &lt;/P&gt;&lt;P&gt;create table testtbl stored as AVRO TBLPROPERTIES ('avro.schema.url'='hdfs://testhost:8020/tmp/avroschemas/testtbl.json');&lt;/P&gt;&lt;P&gt;testtbl.json looks like :&lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P&gt;  "type" : "record", &lt;/P&gt;&lt;P&gt;  "name" : "testtbl", &lt;/P&gt;&lt;P&gt;  "namespace" : "orgn.data.domain", &lt;/P&gt;&lt;P&gt;  "fields" : [ { &lt;/P&gt;&lt;P&gt;    "name" : "id", &lt;/P&gt;&lt;P&gt;    "type" : { &lt;/P&gt;&lt;P&gt;      "type" : "record", &lt;/P&gt;&lt;P&gt;      "name" : "Key", &lt;/P&gt;&lt;P&gt;      "fields" : [ { &lt;/P&gt;&lt;P&gt;        "name" : "TId", &lt;/P&gt;&lt;P&gt;        "type" : "string" &lt;/P&gt;&lt;P&gt;      }, { &lt;/P&gt;&lt;P&gt;        "name" : "action", &lt;/P&gt;&lt;P&gt;        "type" : "string" &lt;/P&gt;&lt;P&gt;      }, { &lt;/P&gt;&lt;P&gt;        "name" : "createdTS", &lt;/P&gt;&lt;P&gt;        "type" : { &lt;/P&gt;&lt;P&gt;          "type" : "long", &lt;/P&gt;&lt;P&gt;          "logicalType" : "timestamp-millis" &lt;/P&gt;&lt;P&gt;        } &lt;/P&gt;&lt;P&gt;      } ] &lt;/P&gt;&lt;P&gt;    } &lt;/P&gt;&lt;P&gt;  }, { &lt;/P&gt;&lt;P&gt;    "name" : "CId", &lt;/P&gt;&lt;P&gt;    "type" : "string" &lt;/P&gt;&lt;P&gt;  }, { &lt;/P&gt;&lt;P&gt;    "name" : "ANumber", &lt;/P&gt;&lt;P&gt;    "type" : "string" &lt;/P&gt;&lt;P&gt;} ] &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Can somebody give me a valid insert statement to insert one row into the table.&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:27:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189120#M151213</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-12T19:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189121#M151214</link>
      <description>&lt;P&gt;Try below insert statement&lt;/P&gt;&lt;PRE&gt;0: jdbc:hive2://abcd:10000&amp;gt; with t as (select NAMED_STRUCT('tid','1','action','success', 'createdts',current_timestamp) as id ,'1' as cid,'12345' as anumber)
0: jdbc:hive2://abcd:10000&amp;gt; insert into testtbl select * from t;
No rows affected (20.464 seconds)
0: jdbc:hive2://abcd:10000&amp;gt; select * from testtbl;
+-----------------------------------------------------------------------+--------------+------------------+--+
|                              testtbl.id                               | testtbl.cid  | testtbl.anumber  |
+-----------------------------------------------------------------------+--------------+------------------+--+
| {"tid":"1","action":"success","createdts":"2018-09-12 15:06:27.075"}  | 1            | 12345            |
+-----------------------------------------------------------------------+--------------+------------------+--+
&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:10:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189121#M151214</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-09-12T20:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189122#M151215</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1485/vtpcnk.html" nodeid="1485"&gt;@n c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you are having struct type for your first column in the table we need to use &lt;STRONG&gt;named_struct&lt;/STRONG&gt;  function while inserting the data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Table definition:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; desc testtbl;
+-----------+-------------------------------------------------------+----------+--+
| col_name  |                       data_type                       | comment  |
+-----------+-------------------------------------------------------+----------+--+
| id        | struct&amp;lt;tid:string,action:string,createdts:timestamp&amp;gt;  |          |
| cid       | string                                                |          |
| anumber   | string                                                |          |
+-----------+-------------------------------------------------------+----------+--+&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Inserting data into testtbl:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; insert into testtbl select named_struct('tid',"1",'action',"post",'createdts',timestamp(150987427)),string("1241"),string("124") from(select '1')t;
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Selecting data from the table:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; select * from testtbl;
+--------------------------------------------------------------------+--------------+------------------+--+
|                             testtbl.id                             | testtbl.cid  | testtbl.anumber  |
+--------------------------------------------------------------------+--------------+------------------+--+
| {"tid":"1","action":"post","createdts":"1970-01-02 12:56:27.427"}  | 1241         | 124              |
+--------------------------------------------------------------------+--------------+------------------+--+
&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer, &lt;/STRONG&gt;That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:12:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189122#M151215</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-09-12T20:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189123#M151216</link>
      <description>&lt;P&gt;naresh and shu, thanks so much - both the statements worked!&lt;/P&gt;&lt;P&gt;one more question : if i have data files (for similar avro tables) being sent to a directory in hdfs (through kafka/flume) what is the best way to load it into the table?&lt;/P&gt;&lt;P&gt;is there any way that i can configure it such that data is picked up automatically from the directory path?&lt;/P&gt;&lt;P&gt;appreciate the feedback.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:31:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189123#M151216</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-12T21:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189124#M151217</link>
      <description>&lt;P&gt;and is it not possible to insert values without another table (t) like :&lt;/P&gt;&lt;P&gt;hive&amp;gt; insert into testtbl values NAMED_STRUCT('tid','3','action','success', 'createdts',150987428888) as id ,'3' as cid,'12345' as anumber;&lt;/P&gt;&lt;P&gt;
FAILED: ParseException line 1:27 extraneous input 'NAMED_STRUCT' expecting ( near ')'
line 1:107 missing EOF at 'as' near ')'&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:38:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189124#M151217</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-12T21:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189125#M151218</link>
      <description>&lt;P&gt;Its not possible to use functions in insert into table values statement.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:01:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189125#M151218</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-09-12T22:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189126#M151219</link>
      <description>&lt;P&gt;I assume raw data is in text &amp;amp; u want to convert &amp;amp; load the data into avro tables.&lt;/P&gt;&lt;P&gt;If so, u can create another identical text table &amp;amp; specifiy the delimiter in data..&lt;/P&gt;&lt;P&gt;i.e., &lt;/P&gt;&lt;P&gt;create table staging(id  struct&amp;lt;tid:string,action:string,createdts:timestamp&amp;gt;, cid string, anumber string) row format delimited fields terminated by ',' collection items terminated by '|' stored as textfile;&lt;/P&gt;&lt;P&gt;sample text data can be as below&lt;/P&gt;&lt;P&gt;1|success|150987428888,3,12345&lt;/P&gt;&lt;P&gt;insert into testtbl select * from staging;&lt;/P&gt;&lt;P&gt;If kafka or flume is generating avro files directly, then those files can be written into table path directly. Its better to create external table if source files are written directly on table path. &lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:09:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189126#M151219</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-09-12T22:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189127#M151220</link>
      <description>&lt;P&gt;&amp;gt;create table staging(id struct&amp;lt;tid:string,action:string,createdts:timestamp&amp;gt;, cid string, anumber string) row format delimited fields &amp;gt;terminated by ',' collection items terminated by '|' stored as textfile;&lt;/P&gt;&lt;P&gt;&amp;gt;sample text data can be as below&lt;/P&gt;&lt;P&gt;&amp;gt;1|success|150987428888,3,12345&lt;/P&gt;&lt;P&gt;&amp;gt;insert into testtbl select * from staging;&lt;/P&gt;&lt;P&gt;how is the text data loaded into the staging table?&lt;/P&gt;&lt;P&gt;Also is it possible to use the 'load data' command in this context : load data inpath '/tmp/test.csv' into table testtbl;&lt;/P&gt;&lt;P&gt;Appreciate the clarification.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:36:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189127#M151220</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-12T22:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189128#M151221</link>
      <description>&lt;P&gt;Yes. File content will be &lt;/P&gt;&lt;PRE&gt;# hadoop fs -cat /tmp/data1.txt&lt;BR /&gt;1|success|2018-09-12 17:45:39.69,3,12345&lt;/PRE&gt;&lt;P&gt;Then you need to load the content into staging table using below command&lt;/P&gt;&lt;P&gt;load data inpath '/tmp/data1.txt' into table staging;&lt;/P&gt;&lt;P&gt;Then from staging, you need to load it into actual avro table using below command&lt;/P&gt;&lt;P&gt;insert into testtbl select * from staging;&lt;/P&gt;&lt;P&gt;If my answer helped you to resolve your issue, you can accept it. It will be helpful for others.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:55:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189128#M151221</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-09-12T22:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189129#M151222</link>
      <description>&lt;P&gt;ok, i used the "load data" command to load the data into the staging table. selecting from the table i can see below output :&lt;/P&gt;&lt;P&gt;hive&amp;gt; select * from staging; &lt;/P&gt;&lt;P&gt;OK &lt;/P&gt;&lt;P&gt;{"tid":"1","action":"success","createdts":null}312345 &lt;/P&gt;&lt;P&gt;Time taken: 0.398 seconds, Fetched: 1 row(s)&lt;/P&gt;&lt;P&gt;Is that good? I am kind of concerned with the flower braces and the column names in the resultant data.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:57:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189129#M151222</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-12T22:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189130#M151223</link>
      <description>&lt;P&gt;so is there no way to load the data automatically from the files coming into a particular directory in hdfs?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 22:58:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189130#M151223</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-12T22:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189131#M151224</link>
      <description>&lt;P&gt;you can create external table with location &amp;amp; write the text files directly on that path.&lt;/P&gt;&lt;P&gt;eg., create external table staging1(id struct&amp;lt;tid:string,action:string,createdts:timestamp&amp;gt;, cid string, anumber string) row format delimited fields terminated by ',' collection items terminated by '|' stored as textfile LOCATION '/tmp/staging/';&lt;/P&gt;&lt;P&gt;All text files can be directly written at /tmp/staging/ by kafka or flume&lt;/P&gt;&lt;P&gt;If Kafka or flume will be able to generate Avro files, then you can skip the staging table &amp;amp; create external avro table &amp;amp; write avro files directly on to external table location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 23:06:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189131#M151224</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-09-12T23:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189132#M151225</link>
      <description>&lt;P&gt;naresh, you are the man!!! thanks so much!!!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 00:02:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189132#M151225</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-13T00:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189133#M151226</link>
      <description>&lt;P&gt;any idea what is wrong with this :&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE staging3 &lt;/P&gt;&lt;P&gt;
ROW FORMAT SERDE 'org.apache.hadoop.hive.serd2.avro.AvroSerDe' &lt;/P&gt;&lt;P&gt;STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat' &lt;/P&gt;&lt;P&gt;OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat' &lt;/P&gt;&lt;P&gt;TBLPROPERTIES ('avro.schema.url'='hdfs:///tmp/avroschemas/testtbl.json') &lt;/P&gt;&lt;P&gt;LOCATION '/tmp/staging';&lt;/P&gt;&lt;P&gt;I am getting : &lt;/P&gt;&lt;P&gt;FAILED: ParseException line 7:0 missing EOF at 'LOCATION' near ')'&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 01:53:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189133#M151226</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-13T01:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189134#M151227</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1485/vtpcnk.html" nodeid="1485"&gt;@n c&lt;/A&gt; &lt;/P&gt;&lt;P&gt;its because that TBLPROPERTIES should the last one, use the below and it should help:&lt;/P&gt;&lt;P&gt;+++++++++++++++++&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE staging3&lt;/P&gt;&lt;P&gt;ROW FORMAT SERDE 'org.apache.hadoop.hive.serd2.avro.AvroSerDe'&lt;/P&gt;&lt;P&gt;STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'&lt;/P&gt;&lt;P&gt;OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'&lt;/P&gt;&lt;P&gt;LOCATION '/tmp/staging'&lt;/P&gt;&lt;P&gt;TBLPROPERTIES ('avro.schema.url'='hdfs:///tmp/avroschemas/testtbl.json');&lt;/P&gt;&lt;P&gt;+++++++++++++++++&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 01:58:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189134#M151227</guid>
      <dc:creator>quadoss</dc:creator>
      <dc:date>2018-09-13T01:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189135#M151228</link>
      <description>&lt;P&gt;so with a table created as above, how should the data be to be able to load it in? in what format that is? because i am not specifying any delimiters etc. appreciate the insights.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 02:38:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189135#M151228</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-13T02:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189136#M151229</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/716/mbalakrishnan.html" nodeid="716"&gt;@Mahesh Balakrishnan&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/37152/nramanaiah.html" nodeid="37152"&gt;@Naresh P R&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;can i have feedback on how the data should be formatted to be loaded (load inpath command) into a table created as :&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE staging3&lt;/P&gt;&lt;P&gt;ROW FORMAT SERDE 'org.apache.hadoop.hive.serd2.avro.AvroSerDe'&lt;/P&gt;&lt;P&gt;STORED AS INPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat'&lt;/P&gt;&lt;P&gt;OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.avro.AvroContainerOutputFormat'&lt;/P&gt;&lt;P&gt;LOCATION '/tmp/staging'&lt;/P&gt;&lt;P&gt;TBLPROPERTIES ('avro.schema.url'='hdfs:///tmp/avroschemas/testtbl.json');&lt;/P&gt;&lt;P&gt;The schema is the same as described earlier. But there is no delimiter specified. &lt;/P&gt;&lt;P&gt;Appreciate if you could provide a sample piece of data for this.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 19:54:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189136#M151229</guid>
      <dc:creator>vtpcnk</dc:creator>
      <dc:date>2018-09-13T19:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert data into this table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189137#M151230</link>
      <description>&lt;P&gt;There are multiple ways to populate avro tables.&lt;/P&gt;&lt;P&gt;1) Insert into avro_table values(&amp;lt;col1&amp;gt;,&amp;lt;col2&amp;gt;..,&amp;lt;colN&amp;gt;) -- This way hive will write avro files.&lt;/P&gt;&lt;P&gt;2) Generating avro files &amp;amp; copying directly to '/tmp/staging', You can read avro &lt;A href="https://avro.apache.org/docs/1.8.1/gettingstartedjava.html"&gt;documentation&lt;/A&gt; to write avro files directly into hdfs path. Avro Reader/Writer APIs will take care of storing &amp;amp; retrieving records, we don't need to explicitly specify delimiters for avro files.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 22:00:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-insert-data-into-this-table/m-p/189137#M151230</guid>
      <dc:creator>nramanaiah</dc:creator>
      <dc:date>2018-09-13T22:00:32Z</dc:date>
    </item>
  </channel>
</rss>

