remove the shark thread
detect the schema automatically from shark
To handle the sharkcontext casting failure