Skip to content

Conversation

@doanduyhai
Copy link
Contributor

This is the follow up of #80

Warning: this PR should be merged before https://issues.apache.org/jira/browse/ZEPPELIN-148

The source code of ZeppelinContext has been converted to Scala to make the integration easier.

Now it is possible to do:

z.show(rdd)

z.display(rdd,"Header1","Header2",...)

z.display(rdd, limit, "Header1","Header2",...)

z.html(...)

z.img(...)

z.img64(...)

Of course, all the implicits developed in the previous pull request are also back-ported

I also added unit tests to have a decent code coverage

Example of z.display() with limit manually set to 2:

image

Example of z.display() using default limit (zeppelin.spark.maxResult = 100):

image

Example of calling display() directly on RDD with limit set to 3:

image

Example of calling display() directly on a Scala traversable:

image

Example of calling html():

image

We can also call z.html() on the ZeppelinContext instance itself:

image

Example of calling img(url):

image

Of course, calling z.img(url) is also possible. The same remarks also apply to img64(...) and z.img64(...)

Last but not least, z.show(...) has been refactored to display SchemaRDD/DataFrame

image

@doanduyhai doanduyhai force-pushed the Scala_ZeppelinContext branch 2 times, most recently from 137b198 to f6e5e7b Compare July 3, 2015 22:11
@doanduyhai doanduyhai force-pushed the Scala_ZeppelinContext branch 2 times, most recently from 5bd3c52 to fb97233 Compare August 4, 2015 18:08
spark/pom.xml Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Please fix this incorrect indentation.

@doanduyhai doanduyhai force-pushed the Scala_ZeppelinContext branch from dc840ac to 91cd286 Compare August 5, 2015 14:03
@doanduyhai doanduyhai force-pushed the Scala_ZeppelinContext branch 5 times, most recently from 9325125 to 06a50ba Compare August 6, 2015 14:20
@corneadoug
Copy link
Contributor

@doanduyhai
I'm going around old PRs,
What should we do about that one?

@asfgit asfgit closed this in c38a0a0 May 9, 2018
asfgit pushed a commit that referenced this pull request May 9, 2018
close #83
close #86
close #125
close #133
close #139
close #146
close #193
close #203
close #246
close #262
close #264
close #273
close #291
close #299
close #320
close #347
close #389
close #413
close #423
close #543
close #560
close #658
close #670
close #728
close #765
close #777
close #782
close #783
close #812
close #822
close #841
close #843
close #878
close #884
close #918
close #989
close #1076
close #1135
close #1187
close #1231
close #1304
close #1316
close #1361
close #1385
close #1390
close #1414
close #1422
close #1425
close #1447
close #1458
close #1466
close #1485
close #1492
close #1495
close #1497
close #1536
close #1545
close #1561
close #1577
close #1600
close #1603
close #1678
close #1695
close #1739
close #1748
close #1765
close #1767
close #1776
close #1783
close #1799
ajgoade pushed a commit to ajgoade/zeppelin that referenced this pull request Jun 10, 2021
MZEP-182 Install git package in DSR images
Sign up for free to 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.

3 participants