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;
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
add a comment |
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
add a comment |
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
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
classpath sqoop
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
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 14 '17 at 13:31
Noam ShaishNoam Shaish
9892 gold badges9 silver badges28 bronze badges
9892 gold badges9 silver badges28 bronze badges
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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