If you use the path /irisdataorig.csv in your html file, then the path is
relative to the web server (file is expected to be reachable by anybody so
on the webserver.

So you have a few ways:
1) The csv file is hosted somewhere so public access (
http://mydomain.com/myfile.csv)
2) The csv file is in the zeppelin-web webserver folder (copied through
shell interpreter for example)
3) The csv content is injected in the HTML somehow, for example:
println(s”””%html”””+
file1 + datacsv + file2)
(you can look at this example that is doing something similar:
https://beta.zeppelinhub.com/#/notebook/dcorneau/2AW72S1F8

On Tue, Aug 4, 2015 at 9:10 PM, Wood, Dean Jr (GE Oil & Gas) <
dean1.w...@ge.com> wrote:

> I have a html chart that I want to present in zeppelin. I do this by using
> println(s”””%html”””+text) where text is a html file that has been put into
> a string using java.io. This works when the data can be put in a string
> in the html string in the text variable. However, when the html file wants
> to pull data from a file it doesn’t work because I don’t know where to put
> it. I get the error
> <h2>HTTP ERROR 404</h2>
> <p>Problem accessing /irisdataorig.csv. Reason:
> <pre>    Not Found</pre></p><hr /><i><small>Powered by
> Jetty://</small></i><br/>
>
> So the question is, where do I put my data file, and what string goes into
> the html so that it can be loaded by the html string in zeppelin?
>
> Thanks
>
> Dean
>
>

Reply via email to