Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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("")
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 ?



@Karan Alang

i guess you forgot to give what its printing

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.