Sqoop custom PasswordLoaderJava: how to import a jar file from command lineSetting additional classpath for a hadoop toolHow to use Sqoop libjars option?import mysql query to hbase using sqoopError while trying to transfer data from Cassandra to Hadoop using SqoopRun oraoop without installationSqoop 1.99.7 Installation on Centos 7Passing libjars in sqoop jobsqoop action with hcatalog in oozie workflow has problem

Why do players in the past play much longer tournaments than today's top players?

Is there a word for a message that is intended to be intercepted by an adversary?

What is the best way to stacked subscripts for a matrix?

Does throwing a penny at a train stop the train?

How does a Potion of Poison work?

Did any of the founding fathers anticipate Lysander Spooner's criticism of the constitution?

Was I subtly told to resign?

What does it mean that the mass of a propellant tank is at premium?

references on the empirical study on the practice of OR

How is angular momentum conserved for the orbiting body if the centripetal force disappears?

The monorail explodes before I can get on it

Print the last, middle and first character of your code

Is Trump personally blocking people on Twitter?

Is "take care'n of" correct?

Why isn't there research to build a standard lunar, or Martian mobility platform?

If your plane is out-of-control, why does military training instruct releasing the joystick to neutralize controls?

Professor falsely accusing me of cheating in a class he does not teach, two months after end of the class. What precautions should I take?

How to find the shape parameters of of a beta distribution given the position of two quantiles?

Flatten array with OPENJSON: OPENJSON on a value that may not be an array? [ [1] ], vs [1]

Cops: The Hidden OEIS Substring

Can fluent English speakers distinguish “steel”, “still” and “steal”?

Is lack of functional requirements agile?

How can an advanced civilization forget how to manufacture its technology?

A pyramid from a square



Sqoop custom PasswordLoader


Java: how to import a jar file from command lineSetting additional classpath for a hadoop toolHow to use Sqoop libjars option?import mysql query to hbase using sqoopError while trying to transfer data from Cassandra to Hadoop using SqoopRun oraoop without installationSqoop 1.99.7 Installation on Centos 7Passing libjars in sqoop jobsqoop action with hcatalog in oozie workflow has problem






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am trying to create a custom PasswordLoader
I created a class:



package custom.password.loader 
class CustomPasswordLoader extends FilePasswordLoader
override def loadPassword(p: String, conf: Configuration): String = ???



calling the following sqoop call:



sqoop export -libjars /path/to/jar/the.jar -Dorg.apache.sqoop.credentials.loader.class=custom.password.loader.CustomPasswordLoader --password-file some_file ...


I get:



java.io.IOException: java.lang.ClassNotFoundException


Meaning sqoop couldn't find this class on class path. how could I add this to jar to sqoop classpath without installing it in $SQOOP_HOME/lib



Sqoop version: 1.4.6-cdh5.12.1










share|improve this question






























    0















    I am trying to create a custom PasswordLoader
    I created a class:



    package custom.password.loader 
    class CustomPasswordLoader extends FilePasswordLoader
    override def loadPassword(p: String, conf: Configuration): String = ???



    calling the following sqoop call:



    sqoop export -libjars /path/to/jar/the.jar -Dorg.apache.sqoop.credentials.loader.class=custom.password.loader.CustomPasswordLoader --password-file some_file ...


    I get:



    java.io.IOException: java.lang.ClassNotFoundException


    Meaning sqoop couldn't find this class on class path. how could I add this to jar to sqoop classpath without installing it in $SQOOP_HOME/lib



    Sqoop version: 1.4.6-cdh5.12.1










    share|improve this question


























      0












      0








      0








      I am trying to create a custom PasswordLoader
      I created a class:



      package custom.password.loader 
      class CustomPasswordLoader extends FilePasswordLoader
      override def loadPassword(p: String, conf: Configuration): String = ???



      calling the following sqoop call:



      sqoop export -libjars /path/to/jar/the.jar -Dorg.apache.sqoop.credentials.loader.class=custom.password.loader.CustomPasswordLoader --password-file some_file ...


      I get:



      java.io.IOException: java.lang.ClassNotFoundException


      Meaning sqoop couldn't find this class on class path. how could I add this to jar to sqoop classpath without installing it in $SQOOP_HOME/lib



      Sqoop version: 1.4.6-cdh5.12.1










      share|improve this question
















      I am trying to create a custom PasswordLoader
      I created a class:



      package custom.password.loader 
      class CustomPasswordLoader extends FilePasswordLoader
      override def loadPassword(p: String, conf: Configuration): String = ???



      calling the following sqoop call:



      sqoop export -libjars /path/to/jar/the.jar -Dorg.apache.sqoop.credentials.loader.class=custom.password.loader.CustomPasswordLoader --password-file some_file ...


      I get:



      java.io.IOException: java.lang.ClassNotFoundException


      Meaning sqoop couldn't find this class on class path. how could I add this to jar to sqoop classpath without installing it in $SQOOP_HOME/lib



      Sqoop version: 1.4.6-cdh5.12.1







      classpath sqoop






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 26 at 3:24









      Cœur

      21.5k10 gold badges123 silver badges169 bronze badges




      21.5k10 gold badges123 silver badges169 bronze badges










      asked Dec 13 '17 at 15:00









      Noam ShaishNoam Shaish

      9892 gold badges9 silver badges28 bronze badges




      9892 gold badges9 silver badges28 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Since PasswordLoader is needed at the actual sqoop call classpath it have to be at $SQQOP_HOME/lib



          -libjar and --files are arguments that pass to the underlying MR job.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47796130%2fsqoop-custom-passwordloader%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Since PasswordLoader is needed at the actual sqoop call classpath it have to be at $SQQOP_HOME/lib



            -libjar and --files are arguments that pass to the underlying MR job.






            share|improve this answer



























              0














              Since PasswordLoader is needed at the actual sqoop call classpath it have to be at $SQQOP_HOME/lib



              -libjar and --files are arguments that pass to the underlying MR job.






              share|improve this answer

























                0












                0








                0







                Since PasswordLoader is needed at the actual sqoop call classpath it have to be at $SQQOP_HOME/lib



                -libjar and --files are arguments that pass to the underlying MR job.






                share|improve this answer













                Since PasswordLoader is needed at the actual sqoop call classpath it have to be at $SQQOP_HOME/lib



                -libjar and --files are arguments that pass to the underlying MR job.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 14 '17 at 13:31









                Noam ShaishNoam Shaish

                9892 gold badges9 silver badges28 bronze badges




                9892 gold badges9 silver badges28 bronze badges


















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47796130%2fsqoop-custom-passwordloader%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript