[SPARK-2783][SQL] Basic support for analyze in HiveContext

JIRA: https://issues.apache.org/jira/browse/SPARK-2783
I think I would actually disagree here.  When users get this error it may be helpful to know what type of relation they are trying to analyze so you can explain why thats not yet possible.  Avoiding toString is probably reasonable since for treeNodes it can be quite verbose.

Perhaps: `s"Analyze has only been implemented for Hive MetaStore relations, but $tableName is a ${otherRelation.nodeName}."`