<?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 implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159628#M45004</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/12747/swathidataengineer.html" nodeid="12747"&gt;@swathi thukkaraju&lt;/A&gt;&lt;P&gt;Try using the option --password-file to remove the possibility of entering / exposing the password. Below is the link for creating the password file (&lt;A href="http://blog.ervits.com/2015/03/running-saved-sqoop-144-jobs-with.html"&gt;link&lt;/A&gt;)&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2016 13:01:22 GMT</pubDate>
    <dc:creator>ssubhas</dc:creator>
    <dc:date>2016-11-09T13:01:22Z</dc:date>
    <item>
      <title>how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159620#M44996</link>
      <description>&lt;DIV&gt;In below command each and every job i have to mentioned connection,username,password,driver i need dynamically change when we change the database connection
&lt;/DIV&gt;&lt;P&gt;i need to use same job for other SQL databases or NOSQL databases&lt;/P&gt;&lt;P&gt;without creation new job only i have passing  the parameters in the sqoop job (parameter are connection,driver connection,username,target directory)&lt;/P&gt;&lt;P&gt;sqoop job --create incjob12 --import--connect &lt;EM&gt;&lt;STRONG&gt;jdbc:mysql://localhost&lt;/STRONG&gt;&lt;/EM&gt;/&lt;STRONG&gt;test&lt;/STRONG&gt;
--&lt;STRONG&gt;driver com.mysql.jdbc.Drive&lt;/STRONG&gt;r --&lt;STRONG&gt;username it1 &lt;/STRONG&gt;--&lt;STRONG&gt;password hadoop&lt;/STRONG&gt; -&lt;STRONG&gt;-table st1&lt;/STRONG&gt;
--incremental lastmodified -check-column ts -&lt;STRONG&gt;-target-dir&lt;/STRONG&gt; &lt;STRONG&gt;sqin&lt;/STRONG&gt; -m 1 --merge-key id&lt;/P&gt;&lt;P&gt;what all the thing i highlighted  above i have to enter  dynamically  parameters to connect different databases&lt;/P&gt;&lt;P&gt;please share me how to create sqoop framework by passing our own parameters&lt;/P&gt;&lt;P&gt;please suggest me how to complete this frame work to connect different client connectors&lt;/P&gt;&lt;P&gt;today i need to complete this task please suggest me&lt;/P&gt;&lt;P&gt;thanks in advance &lt;/P&gt;&lt;P&gt;swathi.T&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 15:09:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159620#M44996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-01T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159621#M44997</link>
      <description>&lt;P&gt;I am not sure exactly what your requirements are, but here goes...&lt;/P&gt;&lt;P&gt;1. You can set these parameters as OS environment variables for each of your db connections.  For example, MYSQL_CONN=xx, MYSQL_DRIVER=xx, MYSQL_UU=xx, MYSQL_PWD=xx, MYSQL_TARGDIR=xx, ORA_CONN=xx, ORA_DRIVER=xx, ORA_UU=xx, etc.  &lt;/P&gt;&lt;P&gt;Set these by using the export command, eg. export MYSQL_CONN=xx&lt;/P&gt;&lt;P&gt;Then you simply call the db params you want on the command line, eg.&lt;/P&gt;&lt;PRE&gt;sqoop job --create incjob12 --import--connect $MYSQL_CONN --driver $MYSQL_DRIVER --username $MYSQL_UU --password $MYSQL_PWD  ...&lt;/PRE&gt;&lt;P&gt;2. You can do the same thing but with all params related to a db set as a single OS environment variable.  Eg. &lt;/P&gt;&lt;PRE&gt;set $MYSQL="--connect jdbc:mysql://localhost/test --driver com.mysql.jdbc.Driver --username it1 --password hadoop"&lt;/PRE&gt;&lt;P&gt;and then run your sqoop job as&lt;/P&gt;&lt;PRE&gt;sqoop job --create incjob12 --import "$MYSQL" --table st1 --incremental lastmodified -check-column ts --target-dirsqin -m 1 --merge-key id&lt;/PRE&gt;&lt;P&gt;Note the quotes in both setting and invoking the OS environment variable MYSQL.  This is because there are spaces in the value.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If I am not understanding your requirements, let me know.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 19:28:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159621#M44997</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-11-01T19:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159622#M44998</link>
      <description>&lt;P&gt;thanks for giving reply &lt;/P&gt;&lt;P&gt;1. but i need to call dynamically this following parameter for oracle/sql means&lt;/P&gt;&lt;P&gt;"--connect jdbc:mysql://localhost/test --driver com.mysql.jdbc.Driver --username it1 --password hadoop" can i able to get the input from the user as like entering the details in the pop up box or as a input parameter &lt;/P&gt;&lt;P&gt;2. also if i has ten tables(t1,t2,t3,...t10) but i need to load only t1, t3, t5, t6, t10 table alone , is their any possibilities to do this&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 20:04:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159622#M44998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-01T20:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159623#M44999</link>
      <description>&lt;P&gt;[answer #2]&lt;/P&gt;&lt;P&gt;In this case I would put your sqoop command in a shell script and then pass parameters to that.  It is similar to the question above, but everyone uses the same shell script but passes different parameters to it, which are picked up by the sqoop command text in the script.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Script name: sqoop_job.sh&lt;/P&gt;&lt;P&gt;To run script: &lt;/P&gt;&lt;PRE&gt;./sqoop_job.sh   "$MYSQL"  st1  ts  sqi &lt;/PRE&gt;&lt;P&gt;Script body: &lt;/P&gt;&lt;PRE&gt;sqoop job --create incjob12 --import ${1} --table ${2} --incremental lastmodified -check-column ${3} --target-dir ${4} -m 1 --merge-key id&lt;/PRE&gt;&lt;P&gt;For more on shell scripting and passing parameters:&lt;/P&gt;&lt;P&gt;&lt;A href="http://linuxcommand.org/writing_shell_scripts.php" target="_blank"&gt;http://linuxcommand.org/writing_shell_scripts.php&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 01:53:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159623#M44999</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-11-02T01:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159624#M45000</link>
      <description>&lt;P&gt;thank u greg &lt;/P&gt;&lt;P&gt;but i am not clear about this, if i has ten tables(t1,t2,t3,...t10) but i need to load only t1, t3, t5, t6, t10 table alone from a single script, is their any possibilities to do this&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 11:20:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159624#M45000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-02T11:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159625#M45001</link>
      <description>&lt;P&gt;i did the same what u mention &lt;/P&gt;&lt;P&gt;first created the one script     &lt;STRONG&gt;vi c1.sh &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;#!/bin/sh &lt;/P&gt;&lt;P&gt;MYSQL ="--connect jdbc:mysql://xxxxxx/sama --driver com.mysql.jdbc.Driver --username root" &lt;/P&gt;&lt;P&gt;export MYSQL&lt;/P&gt;&lt;P&gt;./c2.sh&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;then created the &lt;STRONG&gt;vi c2.sh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#!/bin/sh &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sqoop  import "$MYSQL" --table st1 --target-dir /tmp/sample222 -m 1 &lt;/P&gt;&lt;P&gt;and running the &lt;STRONG&gt;./c1.sh&lt;/STRONG&gt; but it shows the folowing error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="9061-123.png" style="width: 656px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20755i3A476CC3CEFE99F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="9061-123.png" alt="9061-123.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;please tell how to solve this pblm &lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:03:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159625#M45001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-08-18T12:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159626#M45002</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12747/swathidataengineer.html" nodeid="12747"&gt;@swathi thukkaraju&lt;/A&gt; I have made a minor correction to my code example above.  Each input param in the sqoop_job.sh must be ${1}, ${2} etc instead of $1, $2 etc.&lt;/P&gt;&lt;P&gt;So, use &lt;/P&gt;&lt;PRE&gt;sqoop job --create incjob12 --import ${1} --table ${2} --incremental lastmodified -check-column ${3} --target-dir ${4} --m 1--merge-key id&lt;/PRE&gt;&lt;P&gt;and be sure to pass in  "$MYSQL" in quotes because the value has spaces in it.&lt;/P&gt;&lt;P&gt;(I just tested this and it works)&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 19:18:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159626#M45002</guid>
      <dc:creator>gkeys</dc:creator>
      <dc:date>2016-11-04T19:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159627#M45003</link>
      <description>&lt;P&gt;how to remove password while executing sqoop job ????&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/8213i8A312F5ED01159B4/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="password.png" title="password.png" /&gt;</description>
      <pubDate>Wed, 09 Nov 2016 12:43:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159627#M45003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-09T12:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to implement and deploying  our own sqoop framework to connect databases dynamically(reusing same framework for importing and exporting  data from /to different databases like oracle,casandra,mysql etc)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159628#M45004</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12747/swathidataengineer.html" nodeid="12747"&gt;@swathi thukkaraju&lt;/A&gt;&lt;P&gt;Try using the option --password-file to remove the possibility of entering / exposing the password. Below is the link for creating the password file (&lt;A href="http://blog.ervits.com/2015/03/running-saved-sqoop-144-jobs-with.html"&gt;link&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 13:01:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-implement-and-deploying-our-own-sqoop-framework-to/m-p/159628#M45004</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-11-09T13:01:22Z</dc:date>
    </item>
  </channel>
</rss>

