Skip to content

[ZEPPELIN-1258] Add Spark packages support to Livy interpreter - #1255

Closed
mfelgamal wants to merge 5 commits into
apache:masterfrom
novelari:feature/modifying-livy-doc
Closed

[ZEPPELIN-1258] Add Spark packages support to Livy interpreter#1255
mfelgamal wants to merge 5 commits into
apache:masterfrom
novelari:feature/modifying-livy-doc

Conversation

@mfelgamal

@mfelgamalmfelgamal commented Jul 31, 2016

Copy link
Copy Markdown
Contributor

What is this PR for?

Adding extra libraries to livy interpreter which isn't exist by default.

What type of PR is it?

[ Improvement ]

Todos

  • [Test case ] - Task

What is the Jira issue?

How should this be tested?

  • Create new livy interpreter or modify the default.
  • Set livy.spark.jars.packages to list of maven coordinates of jars. The format for the coordinates should be groupId:artifactId:version.

Screenshots (if appropriate)


Questions:

  • Does the licenses files need update? no
  • Is there breaking changes for older versions? no
  • Does this needs documentation? yes

@zjffdu

zjffdu commented Jul 31, 2016

Copy link
Copy Markdown
Contributor

I would not recommend user to do that to add extra library. Because most of time zeppelin user don't know the cluster details like which/where extra library are located in the cluster machines. I would suggest livy to support dynamic library loading as native spark interpreter.

@jimdowling

jimdowling commented Aug 1, 2016

Copy link
Copy Markdown

@zjffdu - Livy doesn't support dynamic library loading right now. So, I don't think there's a ZeppelinContext available in Livy. Would this be acceptable until dynamic library loading is added to Livy and a Zeppelin Context becomes available? As of now, Livy is not that much use if you cannot add libraries to your Spark app.

@zjffdu

Copy link
Copy Markdown
Contributor

@jimdowling Right, there's no ZeppelinContext in livy right now. Would allowing user to specify jars/packages when creating livy session more general ? (like --jars/--packages in spark-submit)

@jimdowling

Copy link
Copy Markdown

Do you mean by modifying the UI on notebook creation or using a param to selecting the interpreter like
'%livy --jars [path]

@zjffdu

zjffdu commented Aug 2, 2016

Copy link
Copy Markdown
Contributor

No, I mean adding interpreter property to allow user to specify jars/packages.

@mfelgamal

Copy link
Copy Markdown
ContributorAuthor

I think that the livy itself doesn't support add (--jars/--packages property in spark-submit)

@zjffdu

zjffdu commented Aug 2, 2016

Copy link
Copy Markdown
Contributor

You can use --conf spark.jars=<jars> and --conf spark.jars.packages=<packages> instead

@mfelgamal

Copy link
Copy Markdown
ContributorAuthor

@zjffdu I added spark.jars.packages property in the recent commit, and it works correctly.

@mfelgamal

Copy link
Copy Markdown
ContributorAuthor

@zjffdu do you have any further comments ?

Comment threaddocs/interpreter/livy.md Outdated
<table class="table-configuration">
<tr>
<th>Property</th>
<th>Default</th>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wouldn't be the "Default" right?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, it's just example.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change it to Example?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixcheung

Copy link
Copy Markdown
Member

could you update the title of this PR and JIRA ZEPPELIN-1258, if we are changing how we would approach this?

@mfelgamal

Copy link
Copy Markdown
ContributorAuthor

@felixcheung I suggests this title "Adding packages to livy interpreter", Is it Ok ?

@felixcheung

Copy link
Copy Markdown
Member

how about "Add Spark packages support to Livy interpreter"?

@mfelgamalmfelgamal changed the title Adding extra libraries to livyAdd Spark packages support to Livy interpreterAug 7, 2016
@mfelgamal

Copy link
Copy Markdown
ContributorAuthor

@felixcheung done.

@mfelgamalmfelgamal changed the title Add Spark packages support to Livy interpreter[ZEPPELIN-1258] Add Spark packages support to Livy interpreterAug 9, 2016
@mfelgamal

Copy link
Copy Markdown
ContributorAuthor

@felixcheung do you have any further comments ?

@felixcheung

Copy link
Copy Markdown
Member

There is a test failure?

@mfelgamal

Copy link
Copy Markdown
ContributorAuthor

@felixcheung : This PR does not change the code. It is just a change in the configurations. So, it should not affect the tests

@felixcheung

Copy link
Copy Markdown
Member

That's a fair point.

I'll merge if there is no more discussion.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@mfelgamal@zjffdu@jimdowling@felixcheung