lockwobr / zeppelin-examples

This project is for examples of how to use Zeppelin. https://github.com/apache/incubator-zeppelin
MIT License
25 stars 9 forks source link

update d3 on zeppelin example with external json #1

Open stillalex opened 7 years ago

stillalex commented 7 years ago

First off, thanks for the examples! for me it was a perfect way of building a small POC.

It would be nice if you could update the d3 zeppelin example to show how to use an external json, I found that to be a bit tricky to get right (even though it's a 2 liner):

val dataS3 = spark.read.json("s3://bucket/file.json")
val data = dataS3.toJSON.head

I could also go for a pull request if you want.

thanks again, alex

nelsonjiao commented 7 years ago

I am running trouble with d3 zappelin example too. (error of non recognized json) And I am not sure how to use the two lines. Can you please give more detail steps?

Thanks

Nelson