Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

reading an Avro schema from url

Highlighted

reading an Avro schema from url

Expert Contributor

hello - i'm trying to read an avro schema stored in a location ..

here is the code i tried -

val html = Source.fromURL("https://drive.google.com/open?id=1evVW9bTy5bOqq6h_oCyhXDFv9Fuz6zUn")
val s = html.mkString
println("schema is => " + s) 

This seems to be printing contents shown below, instead of reading the schema stored in the file.

How do i read just the schema ?

1 REPLY 1

Re: reading an Avro schema from url

Contributor

@Karan Alang

i guess you forgot to give what its printing