<?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: Custom shared lib for Sqoop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-shared-lib-for-Sqoop/m-p/16944#M2539</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can definately do this. &amp;nbsp;I'd have to see the actual exception to be sure, but I'm guessing by "&lt;SPAN&gt;it doesn't find the main method&amp;nbsp;of Sqoop." you were getting a ClassNotFoundException on SqoopMain? &amp;nbsp;SqoopMain is actually an Oozie class and is in the oozie-sharelib-sqoop-4.0.0-cdh5.0.2.jar in the sqoop sharelib. &amp;nbsp;You'll need to copy this jar into your sqoopPatched sharelib. &amp;nbsp;You may also need some of the other jars from the Sqoop sharelib. &amp;nbsp;The safest thing is to copy the "sqoop" sharelib to "sqoopPatched" and then just replace your custom sqoop-1.4.4-cdh5.0.2.jar in there; this way, you'll be sure to have everything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Robert&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2014 17:14:39 GMT</pubDate>
    <dc:creator>Robert K</dc:creator>
    <dc:date>2014-08-14T17:14:39Z</dc:date>
    <item>
      <title>Custom shared lib for Sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-shared-lib-for-Sqoop/m-p/16832#M2538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;due to the bug reported here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/SQOOP-1420" target="_blank"&gt;https://issues.apache.org/jira/browse/SQOOP-1420&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have created a custom version of Sqoop forcing the timezone to be GMT when converting epoch to String. Now, I need to use the custom jar in Oozie, when launching the Sqoop action.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at this:&amp;nbsp;&lt;A href="http://blog.cloudera.com/blog/2012/12/how-to-use-the-sharelib-in-apache-oozie/" target="_blank"&gt;http://blog.cloudera.com/blog/2012/12/how-to-use-the-sharelib-in-apache-oozie/&lt;/A&gt; I choose to override the shared lib for the Sqoop action adding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;configuration&amp;gt;
  &amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;oozie.action.sharelib.for.sqoop&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;sqoopPatched&amp;lt;/value&amp;gt;
  &amp;lt;/property&amp;gt;  
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the Sqoop action (and creating the "sqoopPatched" folder in the shared lib path "/user/oozie/share/lib/lib_20140625170654/sqoopPatched" with the modified "sqoop-1.4.4-cdh5.0.2.jar"). However, the workflow fails because it doesn't find the main method&amp;nbsp;of Sqoop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone knows how to solve this? May be that with the new version of the shared lib (&lt;A href="http://blog.cloudera.com/blog/2014/05/how-to-use-the-sharelib-in-apache-oozie-cdh-5/)" target="_blank"&gt;http://blog.cloudera.com/blog/2014/05/how-to-use-the-sharelib-in-apache-oozie-cdh-5/)&lt;/A&gt; is it not possible anymore to override libs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michele&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I do not want to change&amp;nbsp;the standard sqoop&amp;nbsp;in the shared lib because I am not sure that the modified jar is right for any kind of timestamp column/database.&amp;nbsp;But I still need it in 10 jobs, so I prefer to create a custom shared lib instead of adding a lib folder in each&amp;nbsp;workflow folder.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:04:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-shared-lib-for-Sqoop/m-p/16832#M2538</guid>
      <dc:creator>mgiusto</dc:creator>
      <dc:date>2022-09-16T09:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom shared lib for Sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-shared-lib-for-Sqoop/m-p/16944#M2539</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can definately do this. &amp;nbsp;I'd have to see the actual exception to be sure, but I'm guessing by "&lt;SPAN&gt;it doesn't find the main method&amp;nbsp;of Sqoop." you were getting a ClassNotFoundException on SqoopMain? &amp;nbsp;SqoopMain is actually an Oozie class and is in the oozie-sharelib-sqoop-4.0.0-cdh5.0.2.jar in the sqoop sharelib. &amp;nbsp;You'll need to copy this jar into your sqoopPatched sharelib. &amp;nbsp;You may also need some of the other jars from the Sqoop sharelib. &amp;nbsp;The safest thing is to copy the "sqoop" sharelib to "sqoopPatched" and then just replace your custom sqoop-1.4.4-cdh5.0.2.jar in there; this way, you'll be sure to have everything.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Robert&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 17:14:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-shared-lib-for-Sqoop/m-p/16944#M2539</guid>
      <dc:creator>Robert K</dc:creator>
      <dc:date>2014-08-14T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom shared lib for Sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-shared-lib-for-Sqoop/m-p/17126#M2540</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;thanks for the answer.&amp;nbsp;You are right, that one is my exception. I had&amp;nbsp;it even copying the entire "sqoop" dir in "sqoop2" dir without replacing any&amp;nbsp;jar. However, doing tests I had changed permissions and restarted the Oozie server and now it is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michele&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 13:16:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Custom-shared-lib-for-Sqoop/m-p/17126#M2540</guid>
      <dc:creator>mgiusto</dc:creator>
      <dc:date>2014-08-18T13:16:32Z</dc:date>
    </item>
  </channel>
</rss>

