<?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 creating two column familes with one sqoop command in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/creating-two-column-familes-with-one-sqoop-command/m-p/158815#M49184</link>
    <description>&lt;P&gt;the command below creates one column family successfully , how can I add another column family to this command ?&lt;/P&gt;&lt;PRE&gt;sqoop import --connect "jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))" --username PATRON --password xxxx --table PATRON.AUDIT_TOUR_SMALL --hbase-table AUDIT_TOUR --column-family TOUR --hbase-row-key "TOUR_ID" --hbase-create-table --columns "TOUR_ID,HOST_TOUR_ID,PLAZA_ID,REV_DAY_ID,LANE_ID,HOST_EMP_ID" -m 1
&lt;/PRE&gt;</description>
    <pubDate>Sat, 17 Dec 2016 06:01:45 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2016-12-17T06:01:45Z</dc:date>
    <item>
      <title>creating two column familes with one sqoop command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/creating-two-column-familes-with-one-sqoop-command/m-p/158815#M49184</link>
      <description>&lt;P&gt;the command below creates one column family successfully , how can I add another column family to this command ?&lt;/P&gt;&lt;PRE&gt;sqoop import --connect "jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))" --username PATRON --password xxxx --table PATRON.AUDIT_TOUR_SMALL --hbase-table AUDIT_TOUR --column-family TOUR --hbase-row-key "TOUR_ID" --hbase-create-table --columns "TOUR_ID,HOST_TOUR_ID,PLAZA_ID,REV_DAY_ID,LANE_ID,HOST_EMP_ID" -m 1
&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Dec 2016 06:01:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/creating-two-column-familes-with-one-sqoop-command/m-p/158815#M49184</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-17T06:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: creating two column familes with one sqoop command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/creating-two-column-familes-with-one-sqoop-command/m-p/158816#M49185</link>
      <description>&lt;P&gt;You import into hbase column family one at a time.  if you have 2 column families you import into each with two sqoop run.  if you have 3 CF then it takes 3 sqoop runs.&lt;/P&gt;&lt;P&gt;Here is good examples from &lt;A href="http://www.dummies.com/programming/big-data/hadoop/importing-data-into-hbase-with-sqoop/"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;$ sqoop import 
    --connect jdbc:mysql://localhost/serviceorderdb 
    --username root -P 
    --table customercontactinfo 
    --columns "customernum,customername" 
    --hbase-table customercontactinfo 
    --column-family CustomerName 
    --hbase-row-key customernum -m 1
Enter password:
...
13/08/17 16:53:01 INFO mapreduce.ImportJobBase: Retrieved 5 records.
$ sqoop import 
    --connect jdbc:mysql://localhost/serviceorderdb 
    --username root -P 
    --table customercontactinfo 
    --columns "customernum,contactinfo" 
    --hbase-table customercontactinfo 
    --column-family ContactInfo 
    --hbase-row-key customernum -m 1
Enter password:
...
13/08/17 17:00:59 INFO mapreduce.ImportJobBase: Retrieved 5 records.
$ sqoop import 
    --connect jdbc:mysql://localhost/serviceorderdb 
    --username root -P 
    --table customercontactinfo 
    --columns "customernum,productnums" 
    --hbase-table customercontactinfo 
    --column-family ProductNums 
    --hbase-row-key customernum -m 1
Enter password:
...
13/08/17 17:05:54 INFO mapreduce.ImportJobBase: Retrieved 5 records.&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Dec 2016 10:21:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/creating-two-column-familes-with-one-sqoop-command/m-p/158816#M49185</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-12-17T10:21:24Z</dc:date>
    </item>
  </channel>
</rss>

