git - Bluemix spark jazzhub addjar -


i trying add jar in spark scala notebook on bluemix. examples speak using public github url. have code in jazzhub git repository. problem run jazzhub don't have public url without user , password access jar file.

i tried several url's userid:password etc did not succeed load jar file.

is there example jar file jazzhub loaded spark scala notebook?

first, ensure project publicly available reviewing settings in jazzhub. please go project's settings , go options. next, uncheck private if checked. lastly, click save apply changes.

the project publicly available

second, since project jazzhub git repo, there git repo link provided. find link, go project's settings , go general. next, note url next git url.

git url

third, construct complete download url.

the complete url have following format:

[git url]/contents/[git_branch]/[jar_location] 

for example, download psclnt.jar within master branch of sample project, following url used:

https://hub.jazz.net/git/hobert/libtest/contents/master/dep-jar/psclnt.jar 

fourth, add following urls spark scala notebook:

option 1:

%addjar https://hub.jazz.net/git/hobert/libtest/contents/master/dep-jar/psclnt.jar -f

option 2:

`kernel.magics.addjar("https://hub.jazz.net/git/hobert/libtest/contents/master/dep-jar/psclnt.jar -f")` 

configure scala notebook add external jars


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -